@Override
  public SQLAllTableConstraints getAllTableConstraints(AllTableConstraintsRequest request)
      throws MetaException, NoSuchObjectException {
    String catName = StringUtils.normalizeIdentifier(request.getCatName());
    String dbName = StringUtils.normalizeIdentifier(request.getDbName());
    String tblName = StringUtils.normalizeIdentifier(request.getTblName());
    if (shouldGetConstraintFromRawStore(catName, dbName, tblName)) {
      return rawStore.getAllTableConstraints(request);
    }
    return sharedCache.listCachedAllTableConstraints(catName, dbName, tblName);
  }
Method to fetch all table constraints at once
@param catName catalog name
@param dbName database name
@param tblName table name
@return list of all table constraints
@throws MetaException
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/CachedStore.java