@Override
  public List<String> getAllDataConnectorNames() throws MetaException {
    boolean commited = false;
    List<String> connectors = null;
    Query query = null;
    try {
      openTransaction();
      query = pm.newQuery(MDataConnector.class);
      query.setResult("name");
      query.setOrdering("name ascending");
      Collection<String> names = (Collection<String>) query.executeWithArray();
      connectors = new ArrayList<>(names);
      commited = commitTransaction();
    } finally {
      rollbackAndCleanup(commited, query);
    }
    return connectors;
  }
Alter the database object in metastore. Currently only the parameters
of the database or the owner can be changed.
@param dbName the database name
@param db the Hive Database object
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java