@Override public void dropConstraint(String catName, String dbName, String tableName, String constraintName,
      boolean missingOk) throws NoSuchObjectException {
    rawStore.dropConstraint(catName, dbName, tableName, constraintName, missingOk);

    if (!canUseEvents) {
      catName = normalizeIdentifier(catName);
      dbName = normalizeIdentifier(dbName);
      tableName = normalizeIdentifier(tableName);
      if (shouldCacheTable(catName, dbName, tableName)) {
        sharedCache.removeConstraintFromCache(catName, dbName, tableName, constraintName);
      }
    }
  }
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