public boolean supportsGetGeneratedKeys() throws MetaException {
    switch (dbType) {
    case DERBY:
    case CUSTOM:
    case SQLSERVER:
      // The getGeneratedKeys is not supported for multi line insert
      return false;
    case ORACLE:
    case MYSQL:
    case POSTGRES:
      return true;
    case UNDEFINED:
    default:
      String msg = "Unknown database product: " + dbType.toString();
      LOG.error(msg);
      throw new MetaException(msg);
    }
  }
Checks if the dbms supports the getGeneratedKeys for multiline insert statements.
@return true if supports
@throws MetaException
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DatabaseProduct.java