DatabaseMetaData Members

DatabaseMetaData Members

Interface Overview | This Package | All Packages

Fields
Name Description
bestRowNotPseudo BEST ROW PSEUDO_COLUMN - is NOT a pseudo column.
bestRowPseudo BEST ROW PSEUDO_COLUMN - is a pseudo column.
bestRowSession BEST ROW SCOPE - valid for remainder of current session.
bestRowTemporary BEST ROW SCOPE - very temporary, while using row.
bestRowTransaction BEST ROW SCOPE - valid for remainder of current transaction.
bestRowUnknown BEST ROW PSEUDO_COLUMN - may or may not be pseudo column.
columnNoNulls COLUMN NULLABLE - might not allow NULL values.
columnNullable COLUMN NULLABLE - definitely allows NULL values.
columnNullableUnknown COLUMN NULLABLE - nullability unknown.
importedKeyCascade IMPORT KEY UPDATE_RULE and DELETE_RULE - for update, change imported key to agree with primary key update; for delete, delete rows that import a deleted key.
importedKeyInitiallyDeferred IMPORT KEY DEFERRABILITY - see SQL92 for definition
importedKeyInitiallyImmediate IMPORT KEY DEFERRABILITY - see SQL92 for definition
importedKeyNoAction IMPORT KEY UPDATE_RULE and DELETE_RULE - do not allow update or delete of primary key if it has been imported.
importedKeyNotDeferrable IMPORT KEY DEFERRABILITY - see SQL92 for definition
importedKeyRestrict IMPORT KEY UPDATE_RULE and DELETE_RULE - do not allow update or delete of primary key if it has been imported.
importedKeySetDefault IMPORT KEY UPDATE_RULE and DELETE_RULE - change imported key to default values if its primary key has been updated or deleted.
importedKeySetNull IMPORT KEY UPDATE_RULE and DELETE_RULE - change imported key to NULL if its primary key has been updated or deleted.
procedureColumnIn COLUMN_TYPE - IN parameter.
procedureColumnInOut COLUMN_TYPE - INOUT parameter.
procedureColumnOut COLUMN_TYPE - OUT parameter.
procedureColumnResult COLUMN_TYPE - result column in ResultSet.
procedureColumnReturn COLUMN_TYPE - procedure return value.
procedureColumnUnknown COLUMN_TYPE - nobody knows.
procedureNoNulls TYPE NULLABLE - does not allow NULL values.
procedureNoResult PROCEDURE_TYPE - Does not return a result.
procedureNullable TYPE NULLABLE - allows NULL values.
procedureNullableUnknown TYPE NULLABLE - nullability unknown.
procedureResultUnknown PROCEDURE_TYPE - May return a result.
procedureReturnsResult PROCEDURE_TYPE - Returns a result.
tableIndexClustered INDEX INFO TYPE - this identifies a clustered index
tableIndexHashed INDEX INFO TYPE - this identifies a hashed index
tableIndexOther INDEX INFO TYPE - this identifies some other form of index
tableIndexStatistic INDEX INFO TYPE - this identifies table statistics that are returned in conjuction with a table's index descriptions
typeNoNulls TYPE NULLABLE - does not allow NULL values.
typeNullable TYPE NULLABLE - allows NULL values.
typeNullableUnknown TYPE NULLABLE - nullability unknown.
typePredBasic TYPE INFO SEARCHABLE - Supported except for WHERE ..
typePredChar TYPE INFO SEARCHABLE - Only supported with WHERE ..
typePredNone TYPE INFO SEARCHABLE - No support.
typeSearchable TYPE INFO SEARCHABLE - Supported for all WHERE ...
versionColumnNotPseudo VERSION COLUMNS PSEUDO_COLUMN - is NOT a pseudo column.
versionColumnPseudo VERSION COLUMNS PSEUDO_COLUMN - is a pseudo column.
versionColumnUnknown VERSION COLUMNS PSEUDO_COLUMN - may or may not be pseudo column.

Methods
Name Description
allProceduresAreCallable() Can all the procedures returned by getProcedures be called by the current user?
allTablesAreSelectable() Can all the tables returned by getTable be SELECTed by the current user?
dataDefinitionCausesTransactionCommit() Does a data definition statement within a transaction force the transaction to commit?
dataDefinitionIgnoredInTransactions() Is a data definition statement within a transaction ignored?
doesMaxRowSizeIncludeBlobs() Did getMaxRowSize() include LONGVARCHAR and LONGVARBINARY blobs?
getBestRowIdentifier(String, String, String, int, boolean) Get a description of a table's optimal set of columns that uniquely identifies a row.
getCatalogs() Get the catalog names available in this database.
getCatalogSeparator() What's the separator between catalog and table name?
getCatalogTerm() What's the database vendor's preferred term for "catalog"?
getColumnPrivileges(String, String, String, String) Get a description of the access rights for a table's columns.
getColumns(String, String, String, String) Get a description of table columns available in a catalog.
getCrossReference(String, String, String, String, String, String) Get a description of the foreign key columns in the foreign key table that reference the primary key columns of the primary key table (describe how one table imports another's key.) This should normally return a single foreign key/primary key pair (most tables only import a foreign key from a table once.) They are ordered by FKTABLE_CAT, FKTABLE_SCHEM, FKTABLE_NAME, and KEY_SEQ.
getDatabaseProductName() What's the name of this database product?
getDatabaseProductVersion() What's the version of this database product?
getDefaultTransactionIsolation() What's the database's default transaction isolation level? The values are defined in java.sql.Connection.
getDriverMajorVersion() What's this JDBC driver's major version number?
getDriverMinorVersion() What's this JDBC driver's minor version number?
getDriverName() What's the name of this JDBC driver?
getDriverVersion() What's the version of this JDBC driver?
getExportedKeys(String, String, String) Get a description of the foreign key columns that reference a table's primary key columns (the foreign keys exported by a table).
getExtraNameCharacters() Get all the "extra" characters that can be used in unquoted identifier names (those beyond a-z, A-Z, 0-9 and _).
getIdentifierQuoteString() What's the string used to quote SQL identifiers? This returns a space " " if identifier quoting isn't supported.
getImportedKeys(String, String, String) Get a description of the primary key columns that are referenced by a table's foreign key columns (the primary keys imported by a table).
getIndexInfo(String, String, String, boolean, boolean) Get a description of a table's indices and statistics.
getMaxBinaryLiteralLength() How many hex characters can you have in an inline binary literal?
getMaxCatalogNameLength() What's the maximum length of a catalog name?
getMaxCharLiteralLength() What's the max length for a character literal?
getMaxColumnNameLength() What's the limit on column name length?
getMaxColumnsInGroupBy() What's the maximum number of columns in a "GROUP BY" clause?
getMaxColumnsInIndex() What's the maximum number of columns allowed in an index?
getMaxColumnsInOrderBy() What's the maximum number of columns in an "ORDER BY" clause?
getMaxColumnsInSelect() What's the maximum number of columns in a "SELECT" list?
getMaxColumnsInTable() What's the maximum number of columns in a table?
getMaxConnections() How many active connections can we have at a time to this database?
getMaxCursorNameLength() What's the maximum cursor name length?
getMaxIndexLength() What's the maximum length of an index (in bytes)?
getMaxProcedureNameLength() What's the maximum length of a procedure name?
getMaxRowSize() What's the maximum length of a single row?
getMaxSchemaNameLength() What's the maximum length allowed for a schema name?
getMaxStatementLength() What's the maximum length of a SQL statement?
getMaxStatements() How many active statements can we have open at one time to this database?
getMaxTableNameLength() What's the maximum length of a table name?
getMaxTablesInSelect() What's the maximum number of tables in a SELECT?
getMaxUserNameLength() What's the maximum length of a user name?
getNumericFunctions() Get a comma separated list of math functions.
getPrimaryKeys(String, String, String) Get a description of a table's primary key columns.
getProcedureColumns(String, String, String, String) Get a description of a catalog's stored procedure parameters and result columns.
getProcedures(String, String, String) Get a description of stored procedures available in a catalog.
getProcedureTerm() What's the database vendor's preferred term for "procedure"?
getSchemas() Get the schema names available in this database.
getSchemaTerm() What's the database vendor's preferred term for "schema"?
getSearchStringEscape() This is the string that can be used to escape '_' or '%' in the string pattern style catalog search parameters.
getSQLKeywords() Get a comma separated list of all a database's SQL keywords that are NOT also SQL92 keywords.
getStringFunctions() Get a comma separated list of string functions.
getSystemFunctions() Get a comma separated list of system functions.
getTablePrivileges(String, String, String) Get a description of the access rights for each table available in a catalog.
getTables(String, String, String, String[]) Get a description of tables available in a catalog.
getTableTypes() Get the table types available in this database.
getTimeDateFunctions() Get a comma separated list of time and date functions.
getTypeInfo() Get a description of all the standard SQL types supported by this database.
getURL() What's the url for this database?
getUserName() What's our user name as known to the database?
getVersionColumns(String, String, String) Get a description of a table's columns that are automatically updated when any value in a row is updated.
isCatalogAtStart() Does a catalog appear at the start of a qualified table name? (Otherwise it appears at the end)
isReadOnly() Is the database in read-only mode?
nullPlusNonNullIsNull() Are concatenations between NULL and non-NULL values NULL? A JDBC-Compliant driver always returns true.
nullsAreSortedAtEnd() Are NULL values sorted at the end regardless of sort order?
nullsAreSortedAtStart() Are NULL values sorted at the start regardless of sort order?
nullsAreSortedHigh() Are NULL values sorted high?
nullsAreSortedLow() Are NULL values sorted low?
storesLowerCaseIdentifiers() Does the database treat mixed case unquoted SQL identifiers as case insensitive and store them in lower case?
storesLowerCaseQuotedIdentifiers() Does the database treat mixed case quoted SQL identifiers as case insensitive and store them in lower case?
storesMixedCaseIdentifiers() Does the database treat mixed case unquoted SQL identifiers as case insensitive and store them in mixed case?
storesMixedCaseQuotedIdentifiers() Does the database treat mixed case quoted SQL identifiers as case insensitive and store them in mixed case?
storesUpperCaseIdentifiers() Does the database treat mixed case unquoted SQL identifiers as case insensitive and store them in upper case?
storesUpperCaseQuotedIdentifiers() Does the database treat mixed case quoted SQL identifiers as case insensitive and store them in upper case?
supportsAlterTableWithAddColumn() Is "ALTER TABLE" with add column supported?
supportsAlterTableWithDropColumn() Is "ALTER TABLE" with drop column supported?
supportsANSI92EntryLevelSQL() Is the ANSI92 entry level SQL grammar supported? All JDBC-Compliant drivers must return true.
supportsANSI92FullSQL() Is the ANSI92 full SQL grammar supported?
supportsANSI92IntermediateSQL() Is the ANSI92 intermediate SQL grammar supported?
supportsCatalogsInDataManipulation() Can a catalog name be used in a data manipulation statement?
supportsCatalogsInIndexDefinitions() Can a catalog name be used in an index definition statement?
supportsCatalogsInPrivilegeDefinitions() Can a catalog name be used in a privilege definition statement?
supportsCatalogsInProcedureCalls() Can a catalog name be used in a procedure call statement?
supportsCatalogsInTableDefinitions() Can a catalog name be used in a table definition statement?
supportsColumnAliasing() Is column aliasing supported?

If so, the SQL AS clause can be used to provide names for computed columns or to provide alias names for columns as required.

supportsConvert() Is the CONVERT function between SQL types supported?
supportsConvert(int, int) Is CONVERT between the given SQL types supported?
supportsCoreSQLGrammar() Is the ODBC Core SQL grammar supported?
supportsCorrelatedSubqueries() Are correlated subqueries supported? A JDBC-Compliant driver always returns true.
supportsDataDefinitionAndDataManipulationTransactions() Are both data definition and data manipulation statements within a transaction supported?
supportsDataManipulationTransactionsOnly() Are only data manipulation statements within a transaction supported?
supportsDifferentTableCorrelationNames() If table correlation names are supported, are they restricted to be different from the names of the tables?
supportsExpressionsInOrderBy() Are expressions in "ORDER BY" lists supported?
supportsExtendedSQLGrammar() Is the ODBC Extended SQL grammar supported?
supportsFullOuterJoins() Are full nested outer joins supported?
supportsGroupBy() Is some form of "GROUP BY" clause supported?
supportsGroupByBeyondSelect() Can a "GROUP BY" clause add columns not in the SELECT provided it specifies all the columns in the SELECT?
supportsGroupByUnrelated() Can a "GROUP BY" clause use columns not in the SELECT?
supportsIntegrityEnhancementFacility() Is the SQL Integrity Enhancement Facility supported?
supportsLikeEscapeClause() Is the escape character in "LIKE" clauses supported? A JDBC-Compliant driver always returns true.
supportsLimitedOuterJoins() Is there limited support for outer joins? (This will be true if supportFullOuterJoins is true.)
supportsMinimumSQLGrammar() Is the ODBC Minimum SQL grammar supported? All JDBC-Compliant drivers must return true.
supportsMixedCaseIdentifiers() Does the database treat mixed case unquoted SQL identifiers as case sensitive and as a result store them in mixed case? A JDBC-Compliant driver will always return false.
supportsMixedCaseQuotedIdentifiers() Does the database treat mixed case quoted SQL identifiers as case sensitive and as a result store them in mixed case? A JDBC-Compliant driver will always return true.
supportsMultipleResultSets() Are multiple ResultSets from a single execute supported?
supportsMultipleTransactions() Can we have multiple transactions open at once (on different connections)?
supportsNonNullableColumns() Can columns be defined as non-nullable? A JDBC-Compliant driver always returns true.
supportsOpenCursorsAcrossCommit() Can cursors remain open across commits?
supportsOpenCursorsAcrossRollback() Can cursors remain open across rollbacks?
supportsOpenStatementsAcrossCommit() Can statements remain open across commits?
supportsOpenStatementsAcrossRollback() Can statements remain open across rollbacks?
supportsOrderByUnrelated() Can an "ORDER BY" clause use columns not in the SELECT?
supportsOuterJoins() Is some form of outer join supported?
supportsPositionedDelete() Is positioned DELETE supported?
supportsPositionedUpdate() Is positioned UPDATE supported?
supportsSchemasInDataManipulation() Can a schema name be used in a data manipulation statement?
supportsSchemasInIndexDefinitions() Can a schema name be used in an index definition statement?
supportsSchemasInPrivilegeDefinitions() Can a schema name be used in a privilege definition statement?
supportsSchemasInProcedureCalls() Can a schema name be used in a procedure call statement?
supportsSchemasInTableDefinitions() Can a schema name be used in a table definition statement?
supportsSelectForUpdate() Is SELECT for UPDATE supported?
supportsStoredProcedures() Are stored procedure calls using the stored procedure escape syntax supported?
supportsSubqueriesInComparisons() Are subqueries in comparison expressions supported? A JDBC-Compliant driver always returns true.
supportsSubqueriesInExists() Are subqueries in 'exists' expressions supported? A JDBC-Compliant driver always returns true.
supportsSubqueriesInIns() Are subqueries in 'in' statements supported? A JDBC-Compliant driver always returns true.
supportsSubqueriesInQuantifieds() Are subqueries in quantified expressions supported? A JDBC-Compliant driver always returns true.
supportsTableCorrelationNames() Are table correlation names supported? A JDBC-Compliant driver always returns true.
supportsTransactionIsolationLevel(int) Does the database support the given transaction isolation level?
supportsTransactions() Are transactions supported? If not, commit is a noop and the isolation level is TRANSACTION_NONE.
supportsUnion() Is SQL UNION supported?
supportsUnionAll() Is SQL UNION ALL supported?
usesLocalFilePerTable() Does the database use a file for each table?
usesLocalFiles() Does the database store tables in a local file?