Java java.sql DatabaseMetaData fields, constructors, methods, implement or subclass

Example usage for Java java.sql DatabaseMetaData fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.sql DatabaseMetaData.

The text is from its open source code.

Implementation

java.sql.DatabaseMetaData has the following implementations.
Click this link to see all its implementation.

Field

intprocedureResultUnknown
Indicates that it is not known whether the procedure returns a result.
intprocedureNoResult
Indicates that the procedure does not return a result.
intprocedureReturnsResult
Indicates that the procedure returns a result.
intprocedureColumnUnknown
Indicates that type of the column is unknown.
intprocedureColumnIn
Indicates that the column stores IN parameters.
intprocedureColumnInOut
Indicates that the column stores INOUT parameters.
intprocedureColumnOut
Indicates that the column stores OUT parameters.
intprocedureColumnReturn
Indicates that the column stores return values.
intprocedureColumnResult
Indicates that the column stores results.
intprocedureNoNulls
Indicates that NULL values are not allowed.
intprocedureNullable
Indicates that NULL values are allowed.
intcolumnNoNulls
Indicates that the column might not allow NULL values.
intcolumnNullable
Indicates that the column definitely allows NULL values.
intcolumnNullableUnknown
Indicates that the nullability of columns is unknown.
intbestRowTemporary
Indicates that the scope of the best row identifier is very temporary, lasting only while the row is being used.
intbestRowSession
Indicates that the scope of the best row identifier is the remainder of the current session.
intbestRowNotPseudo
Indicates that the best row identifier is NOT a pseudo column.
intversionColumnNotPseudo
Indicates that this version column is NOT a pseudo column.
intversionColumnPseudo
Indicates that this version column is a pseudo column.
intimportedKeyCascade
For the column UPDATE_RULE, indicates that when the primary key is updated, the foreign key (imported key) is changed to agree with it.
intimportedKeyRestrict
For the column UPDATE_RULE, indicates that a primary key may not be updated if it has been imported by another table as a foreign key.
intimportedKeySetNull
For the columns UPDATE_RULE and DELETE_RULE, indicates that when the primary key is updated or deleted, the foreign key (imported key) is changed to NULL.
intimportedKeyNoAction
For the columns UPDATE_RULE and DELETE_RULE, indicates that if the primary key has been imported, it cannot be updated or deleted.
intimportedKeySetDefault
For the columns UPDATE_RULE and DELETE_RULE, indicates that if the primary key is updated or deleted, the foreign key (imported key) is set to the default value.
intimportedKeyInitiallyDeferred
Indicates deferrability.
intimportedKeyInitiallyImmediate
Indicates deferrability.
intimportedKeyNotDeferrable
Indicates deferrability.
inttypeNoNulls
Indicates that a NULL value is NOT allowed for this data type.
inttypeNullable
Indicates that a NULL value is allowed for this data type.
inttypeSearchable
Indicates that all WHERE search clauses can be based on this type.
shorttableIndexStatistic
Indicates that this column contains table statistics that are returned in conjunction with a table's index descriptions.
shorttableIndexClustered
Indicates that this table index is a clustered index.
shorttableIndexHashed
Indicates that this table index is a hashed index.
shorttableIndexOther
Indicates that this table index is not a clustered index, a hashed index, or table statistics; it is something other than these.
shortattributeNoNulls
Indicates that NULL values might not be allowed.
shortattributeNullable
Indicates that NULL values are definitely allowed.
shortattributeNullableUnknown
Indicates that whether NULL values are allowed is not known.
intsqlStateXOpen
A possible return value for the method DatabaseMetaData.getSQLStateType which is used to indicate whether the value returned by the method SQLException.getSQLState is an X/Open (now know as Open Group) SQL CLI SQLSTATE value.
intsqlStateSQL
A possible return value for the method DatabaseMetaData.getSQLStateType which is used to indicate whether the value returned by the method SQLException.getSQLState is an SQLSTATE value.
intsqlStateSQL99
A possible return value for the method DatabaseMetaData.getSQLStateType which is used to indicate whether the value returned by the method SQLException.getSQLState is an SQL99 SQLSTATE value.

Method

booleanallProceduresAreCallable()
Retrieves whether the current user can call all the procedures returned by the method getProcedures.
booleanallTablesAreSelectable()
Retrieves whether the current user can use all the tables returned by the method getTables in a SELECT statement.
booleandataDefinitionCausesTransactionCommit()
Retrieves whether a data definition statement within a transaction forces the transaction to commit.
booleandataDefinitionIgnoredInTransactions()
Retrieves whether this database ignores a data definition statement within a transaction.
booleandoesMaxRowSizeIncludeBlobs()
Retrieves whether the return value for the method getMaxRowSize includes the SQL data types LONGVARCHAR and LONGVARBINARY.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ResultSetgetBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable)
Retrieves a description of a table's optimal set of columns that uniquely identifies a row.
ResultSetgetCatalogs()
Retrieves the catalog names available in this database.
StringgetCatalogSeparator()
Retrieves the String that this database uses as the separator between a catalog and table name.
StringgetCatalogTerm()
Retrieves the database vendor's preferred term for "catalog".
ClassgetClass()
Returns the runtime class of this Object .
ResultSetgetColumnPrivileges(String catalog, String schema, String table, String columnNamePattern)
Retrieves a description of the access rights for a table's columns.
ResultSetgetColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
Retrieves a description of table columns available in the specified catalog.
ConnectiongetConnection()
Retrieves the connection that produced this metadata object.
ResultSetgetCrossReference(String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable)
Retrieves a description of the foreign key columns in the given foreign key table that reference the primary key or the columns representing a unique constraint of the parent table (could be the same or a different table).
intgetDatabaseMajorVersion()
Retrieves the major version number of the underlying database.
intgetDatabaseMinorVersion()
Retrieves the minor version number of the underlying database.
StringgetDatabaseProductName()
Retrieves the name of this database product.
StringgetDatabaseProductVersion()
Retrieves the version number of this database product.
intgetDefaultTransactionIsolation()
Retrieves this database's default transaction isolation level.
intgetDriverMajorVersion()
Retrieves this JDBC driver's major version number.
intgetDriverMinorVersion()
Retrieves this JDBC driver's minor version number.
StringgetDriverName()
Retrieves the name of this JDBC driver.
StringgetDriverVersion()
Retrieves the version number of this JDBC driver as a String.
ResultSetgetExportedKeys(String catalog, String schema, String table)
Retrieves a description of the foreign key columns that reference the given table's primary key columns (the foreign keys exported by a table).
StringgetExtraNameCharacters()
Retrieves all the "extra" characters that can be used in unquoted identifier names (those beyond a-z, A-Z, 0-9 and _).
ResultSetgetFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern)
Retrieves a description of the given catalog's system or user function parameters and return type.
ResultSetgetFunctions(String catalog, String schemaPattern, String functionNamePattern)
Retrieves a description of the system and user functions available in the given catalog.
StringgetIdentifierQuoteString()
Retrieves the string used to quote SQL identifiers.
ResultSetgetImportedKeys(String catalog, String schema, String table)
Retrieves a description of the primary key columns that are referenced by the given table's foreign key columns (the primary keys imported by a table).
ResultSetgetIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate)
Retrieves a description of the given table's indices and statistics.
intgetJDBCMajorVersion()
Retrieves the major JDBC version number for this driver.
intgetJDBCMinorVersion()
Retrieves the minor JDBC version number for this driver.
intgetMaxBinaryLiteralLength()
Retrieves the maximum number of hex characters this database allows in an inline binary literal.
intgetMaxCatalogNameLength()
Retrieves the maximum number of characters that this database allows in a catalog name.
intgetMaxCharLiteralLength()
Retrieves the maximum number of characters this database allows for a character literal.
intgetMaxColumnNameLength()
Retrieves the maximum number of characters this database allows for a column name.
intgetMaxColumnsInGroupBy()
Retrieves the maximum number of columns this database allows in a GROUP BY clause.
intgetMaxColumnsInIndex()
Retrieves the maximum number of columns this database allows in an index.
intgetMaxColumnsInOrderBy()
Retrieves the maximum number of columns this database allows in an ORDER BY clause.
intgetMaxColumnsInSelect()
Retrieves the maximum number of columns this database allows in a SELECT list.
intgetMaxColumnsInTable()
Retrieves the maximum number of columns this database allows in a table.
intgetMaxConnections()
Retrieves the maximum number of concurrent connections to this database that are possible.
intgetMaxCursorNameLength()
Retrieves the maximum number of characters that this database allows in a cursor name.
intgetMaxIndexLength()
Retrieves the maximum number of bytes this database allows for an index, including all of the parts of the index.
intgetMaxProcedureNameLength()
Retrieves the maximum number of characters that this database allows in a procedure name.
intgetMaxRowSize()
Retrieves the maximum number of bytes this database allows in a single row.
intgetMaxSchemaNameLength()
Retrieves the maximum number of characters that this database allows in a schema name.
intgetMaxStatementLength()
Retrieves the maximum number of characters this database allows in an SQL statement.
intgetMaxStatements()
Retrieves the maximum number of active statements to this database that can be open at the same time.
intgetMaxTableNameLength()
Retrieves the maximum number of characters this database allows in a table name.
intgetMaxTablesInSelect()
Retrieves the maximum number of tables this database allows in a SELECT statement.
intgetMaxUserNameLength()
Retrieves the maximum number of characters this database allows in a user name.
StringgetNumericFunctions()
Retrieves a comma-separated list of math functions available with this database.
ResultSetgetPrimaryKeys(String catalog, String schema, String table)
Retrieves a description of the given table's primary key columns.
ResultSetgetProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern)
Retrieves a description of the given catalog's stored procedure parameter and result columns.
ResultSetgetProcedures(String catalog, String schemaPattern, String procedureNamePattern)
Retrieves a description of the stored procedures available in the given catalog.
StringgetProcedureTerm()
Retrieves the database vendor's preferred term for "procedure".
ResultSetgetPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
Retrieves a description of the pseudo or hidden columns available in a given table within the specified catalog and schema.
intgetResultSetHoldability()
Retrieves this database's default holdability for ResultSet objects.
RowIdLifetimegetRowIdLifetime()
Indicates whether this data source supports the SQL ROWID type, and the lifetime for which a RowId object remains valid.
ResultSetgetSchemas()
Retrieves the schema names available in this database.
ResultSetgetSchemas(String catalog, String schemaPattern)
Retrieves the schema names available in this database.
StringgetSchemaTerm()
Retrieves the database vendor's preferred term for "schema".
StringgetSearchStringEscape()
Retrieves the string that can be used to escape wildcard characters.
StringgetSQLKeywords()
Retrieves a comma-separated list of all of this database's SQL keywords that are NOT also SQL:2003 keywords.
intgetSQLStateType()
Indicates whether the SQLSTATE returned by SQLException.getSQLState is X/Open (now known as Open Group) SQL CLI or SQL:2003.
StringgetStringFunctions()
Retrieves a comma-separated list of string functions available with this database.
StringgetSystemFunctions()
Retrieves a comma-separated list of system functions available with this database.
ResultSetgetTablePrivileges(String catalog, String schemaPattern, String tableNamePattern)
Retrieves a description of the access rights for each table available in a catalog.
ResultSetgetTables(String catalog, String schemaPattern, String tableNamePattern, String types[])
Retrieves a description of the tables available in the given catalog.
ResultSetgetTableTypes()
Retrieves the table types available in this database.
StringgetTimeDateFunctions()
Retrieves a comma-separated list of the time and date functions available with this database.
ResultSetgetTypeInfo()
Retrieves a description of all the data types supported by this database.
ResultSetgetUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types)
Retrieves a description of the user-defined types (UDTs) defined in a particular schema.
StringgetURL()
Retrieves the URL for this DBMS.
StringgetUserName()
Retrieves the user name as known to this database.
ResultSetgetVersionColumns(String catalog, String schema, String table)
Retrieves a description of a table's columns that are automatically updated when any value in a row is updated.
booleaninsertsAreDetected(int type)
Retrieves whether or not a visible row insert can be detected by calling the method ResultSet.rowInserted.
booleanisCatalogAtStart()
Retrieves whether a catalog appears at the start of a fully qualified table name.
booleanisReadOnly()
Retrieves whether this database is in read-only mode.
booleannullPlusNonNullIsNull()
Retrieves whether this database supports concatenations between NULL and non-NULL values being NULL.
booleannullsAreSortedAtEnd()
Retrieves whether NULL values are sorted at the end regardless of sort order.
booleannullsAreSortedAtStart()
Retrieves whether NULL values are sorted at the start regardless of sort order.
booleannullsAreSortedHigh()
Retrieves whether NULL values are sorted high.
booleannullsAreSortedLow()
Retrieves whether NULL values are sorted low.
booleanothersDeletesAreVisible(int type)
Retrieves whether deletes made by others are visible.
booleanothersInsertsAreVisible(int type)
Retrieves whether inserts made by others are visible.
booleanothersUpdatesAreVisible(int type)
Retrieves whether updates made by others are visible.
booleanownDeletesAreVisible(int type)
Retrieves whether a result set's own deletes are visible.
booleanownInsertsAreVisible(int type)
Retrieves whether a result set's own inserts are visible.
booleanownUpdatesAreVisible(int type)
Retrieves whether for the given type of ResultSet object, the result set's own updates are visible.
booleanstoresLowerCaseIdentifiers()
Retrieves whether this database treats mixed case unquoted SQL identifiers as case insensitive and stores them in lower case.
booleanstoresLowerCaseQuotedIdentifiers()
Retrieves whether this database treats mixed case quoted SQL identifiers as case insensitive and stores them in lower case.
booleanstoresMixedCaseIdentifiers()
Retrieves whether this database treats mixed case unquoted SQL identifiers as case insensitive and stores them in mixed case.
booleanstoresMixedCaseQuotedIdentifiers()
Retrieves whether this database treats mixed case quoted SQL identifiers as case insensitive and stores them in mixed case.
booleanstoresUpperCaseIdentifiers()
Retrieves whether this database treats mixed case unquoted SQL identifiers as case insensitive and stores them in upper case.
booleanstoresUpperCaseQuotedIdentifiers()
Retrieves whether this database treats mixed case quoted SQL identifiers as case insensitive and stores them in upper case.
booleansupportsAlterTableWithAddColumn()
Retrieves whether this database supports ALTER TABLE with add column.
booleansupportsAlterTableWithDropColumn()
Retrieves whether this database supports ALTER TABLE with drop column.
booleansupportsANSI92EntryLevelSQL()
Retrieves whether this database supports the ANSI92 entry level SQL grammar.
booleansupportsANSI92FullSQL()
Retrieves whether this database supports the ANSI92 full SQL grammar supported.
booleansupportsANSI92IntermediateSQL()
Retrieves whether this database supports the ANSI92 intermediate SQL grammar supported.
booleansupportsBatchUpdates()
Retrieves whether this database supports batch updates.
booleansupportsCatalogsInDataManipulation()
Retrieves whether a catalog name can be used in a data manipulation statement.
booleansupportsCatalogsInIndexDefinitions()
Retrieves whether a catalog name can be used in an index definition statement.
booleansupportsCatalogsInPrivilegeDefinitions()
Retrieves whether a catalog name can be used in a privilege definition statement.
booleansupportsCatalogsInProcedureCalls()
Retrieves whether a catalog name can be used in a procedure call statement.
booleansupportsCatalogsInTableDefinitions()
Retrieves whether a catalog name can be used in a table definition statement.
booleansupportsColumnAliasing()
Retrieves whether this database supports column aliasing.
booleansupportsConvert()
Retrieves whether this database supports the JDBC scalar function CONVERT for the conversion of one JDBC type to another.
booleansupportsConvert(int fromType, int toType)
Retrieves whether this database supports the JDBC scalar function CONVERT for conversions between the JDBC types fromType and toType.
booleansupportsCoreSQLGrammar()
Retrieves whether this database supports the ODBC Core SQL grammar.
booleansupportsCorrelatedSubqueries()
Retrieves whether this database supports correlated subqueries.
booleansupportsDataDefinitionAndDataManipulationTransactions()
Retrieves whether this database supports both data definition and data manipulation statements within a transaction.
booleansupportsDataManipulationTransactionsOnly()
Retrieves whether this database supports only data manipulation statements within a transaction.
booleansupportsDifferentTableCorrelationNames()
Retrieves whether, when table correlation names are supported, they are restricted to being different from the names of the tables.
booleansupportsExpressionsInOrderBy()
Retrieves whether this database supports expressions in ORDER BY lists.
booleansupportsExtendedSQLGrammar()
Retrieves whether this database supports the ODBC Extended SQL grammar.
booleansupportsFullOuterJoins()
Retrieves whether this database supports full nested outer joins.
booleansupportsGetGeneratedKeys()
Retrieves whether auto-generated keys can be retrieved after a statement has been executed
booleansupportsGroupBy()
Retrieves whether this database supports some form of GROUP BY clause.
booleansupportsGroupByBeyondSelect()
Retrieves whether this database supports using columns not included in the SELECT statement in a GROUP BY clause provided that all of the columns in the SELECT statement are included in the GROUP BY clause.
booleansupportsGroupByUnrelated()
Retrieves whether this database supports using a column that is not in the SELECT statement in a GROUP BY clause.
booleansupportsIntegrityEnhancementFacility()
Retrieves whether this database supports the SQL Integrity Enhancement Facility.
booleansupportsLikeEscapeClause()
Retrieves whether this database supports specifying a LIKE escape clause.
booleansupportsLimitedOuterJoins()
Retrieves whether this database provides limited support for outer joins.
booleansupportsMinimumSQLGrammar()
Retrieves whether this database supports the ODBC Minimum SQL grammar.
booleansupportsMixedCaseIdentifiers()
Retrieves whether this database treats mixed case unquoted SQL identifiers as case sensitive and as a result stores them in mixed case.
booleansupportsMixedCaseQuotedIdentifiers()
Retrieves whether this database treats mixed case quoted SQL identifiers as case sensitive and as a result stores them in mixed case.
booleansupportsMultipleOpenResults()
Retrieves whether it is possible to have multiple ResultSet objects returned from a CallableStatement object simultaneously.
booleansupportsMultipleResultSets()
Retrieves whether this database supports getting multiple ResultSet objects from a single call to the method execute.
booleansupportsMultipleTransactions()
Retrieves whether this database allows having multiple transactions open at once (on different connections).
booleansupportsNamedParameters()
Retrieves whether this database supports named parameters to callable statements.
booleansupportsNonNullableColumns()
Retrieves whether columns in this database may be defined as non-nullable.
booleansupportsOpenCursorsAcrossCommit()
Retrieves whether this database supports keeping cursors open across commits.
booleansupportsOpenCursorsAcrossRollback()
Retrieves whether this database supports keeping cursors open across rollbacks.
booleansupportsOpenStatementsAcrossCommit()
Retrieves whether this database supports keeping statements open across commits.
booleansupportsOpenStatementsAcrossRollback()
Retrieves whether this database supports keeping statements open across rollbacks.
booleansupportsOrderByUnrelated()
Retrieves whether this database supports using a column that is not in the SELECT statement in an ORDER BY clause.
booleansupportsOuterJoins()
Retrieves whether this database supports some form of outer join.
booleansupportsPositionedDelete()
Retrieves whether this database supports positioned DELETE statements.
booleansupportsPositionedUpdate()
Retrieves whether this database supports positioned UPDATE statements.
booleansupportsResultSetConcurrency(int type, int concurrency)
Retrieves whether this database supports the given concurrency type in combination with the given result set type.
booleansupportsResultSetHoldability(int holdability)
Retrieves whether this database supports the given result set holdability.
booleansupportsResultSetType(int type)
Retrieves whether this database supports the given result set type.
booleansupportsSavepoints()
Retrieves whether this database supports savepoints.
booleansupportsSchemasInDataManipulation()
Retrieves whether a schema name can be used in a data manipulation statement.
booleansupportsSchemasInIndexDefinitions()
Retrieves whether a schema name can be used in an index definition statement.
booleansupportsSchemasInPrivilegeDefinitions()
Retrieves whether a schema name can be used in a privilege definition statement.
booleansupportsSchemasInProcedureCalls()
Retrieves whether a schema name can be used in a procedure call statement.
booleansupportsSchemasInTableDefinitions()
Retrieves whether a schema name can be used in a table definition statement.
booleansupportsSelectForUpdate()
Retrieves whether this database supports SELECT FOR UPDATE statements.
booleansupportsStatementPooling()
Retrieves whether this database supports statement pooling.
booleansupportsStoredFunctionsUsingCallSyntax()
Retrieves whether this database supports invoking user-defined or vendor functions using the stored procedure escape syntax.
booleansupportsStoredProcedures()
Retrieves whether this database supports stored procedure calls that use the stored procedure escape syntax.
booleansupportsSubqueriesInComparisons()
Retrieves whether this database supports subqueries in comparison expressions.
booleansupportsSubqueriesInExists()
Retrieves whether this database supports subqueries in EXISTS expressions.
booleansupportsSubqueriesInIns()
Retrieves whether this database supports subqueries in IN expressions.
booleansupportsSubqueriesInQuantifieds()
Retrieves whether this database supports subqueries in quantified expressions.
booleansupportsTableCorrelationNames()
Retrieves whether this database supports table correlation names.
booleansupportsTransactionIsolationLevel(int level)
Retrieves whether this database supports the given transaction isolation level.
booleansupportsTransactions()
Retrieves whether this database supports transactions.
booleansupportsUnion()
Retrieves whether this database supports SQL UNION.
booleansupportsUnionAll()
Retrieves whether this database supports SQL UNION ALL.
booleanupdatesAreDetected(int type)
Retrieves whether or not a visible row update can be detected by calling the method ResultSet.rowUpdated.
booleanusesLocalFilePerTable()
Retrieves whether this database uses a file for each table.
booleanusesLocalFiles()
Retrieves whether this database stores tables in a local file.