private String convertObjectName(String objectName) throws SQLException {
    //tolerate null names for proper usage in filters
    if (objectName == null) {
      return null;
    }
    DatabaseMetaData metaData = getDatabaseMetaData();
    if (metaData.storesLowerCaseIdentifiers()) {
      return objectName.toLowerCase();
    } else if (metaData.storesUpperCaseIdentifiers()) {
      return objectName.toUpperCase();
    }

    return objectName;
  }
Map SQL datatype to Java Class type

@param type  SQL datatype
@return Java class or null if no mapping found
ambari-server/src/main/java/org/apache/ambari/server/orm/DBAccessorImpl.java