java.lang.Object | +--java.sql.DatabaseMetaData
static short | attributeNoNulls |
static short | attributeNullable |
static short | attributeNullableUnknown |
static int | bestRowNotPseudo The best row identifier is not a pseudo-column. |
static int | bestRowPseudo The best row identifier is a pseudo-column. |
static int | bestRowSession The best row identifier is valid to the end of the session. |
static int | bestRowTemporary The best row's scope is only guaranteed to be valid so long as the row is actually being used. |
static int | bestRowTransaction The best row identifier is valid to the end of the transaction. |
static int | bestRowUnknown The best row may or may not be a pseudo-column. |
static int | columnNoNulls The column does not allow NULL |
static int | columnNullable The column does allow NULL |
static int | columnNullableUnknown It is unknown whether or not the column allows NULL |
static int | importedKeyCascade Foreign key changes are cascaded in updates or deletes. |
static int | importedKeyInitiallyDeferred Wish I knew what this meant. |
static int | importedKeyInitiallyImmediate Wish I knew what this meant. |
static int | importedKeyNoAction If the primary key is a foreign key, it cannot be udpated or deleted. |
static int | importedKeyNotDeferrable Wish I knew what this meant. |
static int | importedKeyRestrict Column may not be updated or deleted in use as a foreign key. |
static int | importedKeySetDefault If the primary key is updated or deleted, the foreign key is set to a default value. |
static int | importedKeySetNull When primary key is updated or deleted, the foreign key is set to NULL. |
static int | procedureColumnIn The column type is input. |
static int | procedureColumnInOut The column type is input/output. |
static int | procedureColumnOut The column type is output |
static int | procedureColumnResult The column is used for storing results |
static int | procedureColumnReturn The column is used for return values. |
static int | procedureColumnUnknown The column type is unknown. |
static int | procedureNoNulls NULL values are not allowed. |
static int | procedureNoResult The procedure does not return a result. |
static int | procedureNullable NULL values are allowed. |
static int | procedureNullableUnknown It is unknown whether or not NULL values are allowed. |
static int | procedureResultUnknown It is unknown whether or not the procedure returns a result. |
static int | procedureReturnsResult The procedure returns a result. |
static int | sqlStateSQL99 |
static int | sqlStateXOpen |
static short | tableIndexClustered This table index is clustered. |
static short | tableIndexHashed This table index is hashed. |
static short | tableIndexOther This table index is of another type. |
static short | tableIndexStatistic This column contains table statistics. |
static int | typeNoNulls A NULL value is not allowed for this data type. |
static int | typeNullable A NULL value is allowed for this data type. |
static int | typeNullableUnknown It is unknown whether or not NULL values are allowed for this data type. |
static int | typePredBasic All WHERE clauses except "WHERE..LIKE" style are allowed on this data type. |
static int | typePredChar Only "WHERE..LIKE" style WHERE clauses are allowed on this data type. |
static int | typePredNone Where clauses are not supported for this type. |
static int | typeSearchable Any type of WHERE clause is allowed for this data type. |
static int | versionColumnNotPseudo The version column is not a pseudo-column |
static int | versionColumnPseudo The version column is a pseudo-column |
static int | versionColumnUnknown It is unknown whether or not the version column is a pseudo-column. |
boolean | allProceduresAreCallable() This method tests whether or not all the procedures returned by
the |
boolean | allTablesAreSelectable() This method tests whether or not all the table returned by the
|
boolean | dataDefinitionCausesTransactionCommit() This method tests whether or not a DDL statement will cause the current transaction to be automatically committed. |
boolean | dataDefinitionIgnoredInTransactions() This method tests whether or not DDL statements are ignored in transactions. |
boolean | deletesAreDetected(int type) This method tests whether or not the specified result set type can detect
a visible delete by calling the |
boolean | doesMaxRowSizeIncludeBlobs() This method tests whether or not the maximum row size includes BLOB's |
java.sql.ResultSet | getAttributes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, java.lang.String attributeNamePattern) |
java.sql.ResultSet | getBestRowIdentifier(java.lang.String catalog, java.lang.String schema, java.lang.String table, int scope, boolean nullable) This method returns the best set of columns for uniquely identifying a row. |
java.lang.String | getCatalogSeparator() This method returns the separator between the catalog name and the table name. |
java.lang.String | getCatalogTerm() This method returns the vendor's term for "catalog". |
java.sql.ResultSet | getCatalogs() This method returns the list of database catalogs as a
|
java.sql.ResultSet | getColumnPrivileges(java.lang.String catalog, java.lang.String schema, java.lang.String table, java.lang.String columnNamePattern) This method returns the access rights that have been granted to the requested columns. |
java.sql.ResultSet | getColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern) This method returns a list of the tables columns for the requested tables. |
java.sql.Connection | getConnection() This method returns the |
java.sql.ResultSet | getCrossReference(java.lang.String primaryCatalog, java.lang.String primarySchema, java.lang.String primaryTable, java.lang.String foreignCatalog, java.lang.String foreignSchema, java.lang.String foreignTable) This method returns a description of how one table imports another table's primary key as a foreign key. |
int | getDatabaseMajorVersion() |
int | getDatabaseMinorVersion() |
java.lang.String | getDatabaseProductName() This method returns the name of the database product. |
java.lang.String | getDatabaseProductVersion() This method returns the version of the database product. |
int | getDefaultTransactionIsolation() This method returns the default transaction isolation level of the database. |
int | getDriverMajorVersion() This method returns the major version number of the JDBC driver. |
int | getDriverMinorVersion() This method returns the minor version number of the JDBC driver. |
java.lang.String | getDriverName() This method returns the name of the JDBC driver. |
java.lang.String | getDriverVersion() This method returns the version of the JDBC driver. |
java.sql.ResultSet | getExportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table) This method returns a list of the table's which use this table's primary key as a foreign key. |
java.lang.String | getExtraNameCharacters() This methods returns non-standard characters that can appear in unquoted identifiers. |
java.lang.String | getIdentifierQuoteString() This metohd returns the quote string for SQL identifiers. |
java.sql.ResultSet | getImportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table) This method returns a list of the table's foreign keys. |
java.sql.ResultSet | getIndexInfo(java.lang.String catalog, java.lang.String schema, java.lang.String table, boolean unique, boolean approximate) This method returns information about a tables indices and statistics. |
int | getJDBCMajorVersion() |
int | getJDBCMinorVersion() |
int | getMaxBinaryLiteralLength() This method returns the number of hex characters allowed in an inline binary literal. |
int | getMaxCatalogNameLength() This method returns the maximum length of a catalog name. |
int | getMaxCharLiteralLength() This method returns the maximum length of a character literal. |
int | getMaxColumnNameLength() This method returns the maximum length of a column name. |
int | getMaxColumnsInGroupBy() This method returns the maximum number of columns in a GROUP BY statement. |
int | getMaxColumnsInIndex() This method returns the maximum number of columns in an index. |
int | getMaxColumnsInOrderBy() This method returns the maximum number of columns in an ORDER BY statement. |
int | getMaxColumnsInSelect() This method returns the maximum number of columns in a SELECT statement. |
int | getMaxColumnsInTable() This method returns the maximum number of columns in a table. |
int | getMaxConnections() This method returns the maximum number of connections this client can have to the database. |
int | getMaxCursorNameLength() This method returns the maximum length of a cursor name. |
int | getMaxIndexLength() This method returns the maximum length of an index. |
int | getMaxProcedureNameLength() This method returns the maximum length of a procedure name. |
int | getMaxRowSize() This method returns the maximum size of a row in bytes. |
int | getMaxSchemaNameLength() This method returns the maximum length of a schema name. |
int | getMaxStatementLength() This method includes the maximum length of a SQL statement. |
int | getMaxStatements() This method returns the maximum number of statements that can be active at any time. |
int | getMaxTableNameLength() This method returns the maximum length of a table name. |
int | getMaxTablesInSelect() This method returns the maximum number of tables that may be referenced in a SELECT statement. |
int | getMaxUserNameLength() This method returns the maximum length of a user name. |
java.lang.String | getNumericFunctions() This method returns a comma separated list of math functions. |
java.sql.ResultSet | getPrimaryKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table) This method returns a list of a table's primary key columns. |
java.sql.ResultSet | getProcedureColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern, java.lang.String columnNamePattern) This method returns a list of the parameter and result columns for the requested stored procedures. |
java.lang.String | getProcedureTerm() This method returns the vendor's term for "procedure". |
java.sql.ResultSet | getProcedures(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern) This method returns a list of all the stored procedures matching the specified pattern in the given schema and catalog. |
int | getResultSetHoldability() |
java.lang.String | getSQLKeywords() This method returns a comma separated list of all the SQL keywords in the database that are not in SQL92. |
int | getSQLStateType() |
java.lang.String | getSchemaTerm() This method returns the vendor's term for "schema". |
java.sql.ResultSet | getSchemas() This method returns the list of database schemas as a
|
java.lang.String | getSearchStringEscape() This method returns the string used to escape wildcards in search strings. |
java.lang.String | getStringFunctions() This method returns a comma separated list of string functions. |
java.sql.ResultSet | getSuperTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern) |
java.sql.ResultSet | getSuperTypes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern) |
java.lang.String | getSystemFunctions() This method returns a comma separated list of of system functions. |
java.sql.ResultSet | getTablePrivileges(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern) This method returns the access rights that have been granted to the requested tables. |
java.sql.ResultSet | getTableTypes() This method returns the list of database table types as a
|
java.sql.ResultSet | getTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String[] types) This method returns a list of the requested table as a |
java.lang.String | getTimeDateFunctions() This method returns comma separated list of time/date functions. |
java.sql.ResultSet | getTypeInfo() This method returns a list of the SQL types supported by this database. |
java.sql.ResultSet | getUDTs(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, int[] types) This method returns the list of user defined data types in use. |
java.lang.String | getURL() This method returns the URL for this database. |
java.lang.String | getUserName() This method returns the database username for this connection. |
java.sql.ResultSet | getVersionColumns(java.lang.String catalog, java.lang.String schema, java.lang.String table) This method returns the set of columns that are automatically updated when the row is update. |
boolean | insertsAreDetected(int type) This method tests whether or not the specified result set type can detect
a visible insert by calling the |
boolean | isCatalogAtStart() This method tests whether a catalog name appears at the beginning of a fully qualified table name. |
boolean | isReadOnly() This method tests whether or not the database is in read only mode. |
boolean | locatorsUpdateCopy() |
boolean | nullPlusNonNullIsNull() This method tests whether the concatenation of a NULL and non-NULL value results in a NULL. |
boolean | nullsAreSortedAtEnd() This method test whether or not NULL's are sorted to the end of the list regardless of ascending or descending sort order. |
boolean | nullsAreSortedAtStart() This method tests whether or not NULL's sort as high values. |
boolean | nullsAreSortedHigh() This method tests whether or not NULL's sort as high values. |
boolean | nullsAreSortedLow() This method tests whether or not NULL's sort as low values. |
boolean | othersDeletesAreVisible(int type) This method tests whether or not the specified result set type sees deletes committed by others. |
boolean | othersInsertsAreVisible(int type) This method tests whether or not the specified result set type sees inserts committed by others. |
boolean | othersUpdatesAreVisible(int type) This method tests whether or not the specified result set type sees updates committed by others. |
boolean | ownDeletesAreVisible(int type) This method tests whether or not the specified result set type sees its own deletes. |
boolean | ownInsertsAreVisible(int type) This method tests whether or not the specified result set type sees its own inserts. |
boolean | ownUpdatesAreVisible(int type) This method tests whether or not the specified result set type sees its own updates. |
boolean | storesLowerCaseIdentifiers() This method tests whether or not the database treats mixed case identifiers as all lower case. |
boolean | storesLowerCaseQuotedIdentifiers() This method tests whether or not the database treats mixed case quoted identifiers as all lower case. |
boolean | storesMixedCaseIdentifiers() This method tests whether or not the database stores mixed case identifers even if it treats them as case insensitive. |
boolean | storesMixedCaseQuotedIdentifiers() This method tests whether or not the database stores mixed case quoted identifers even if it treats them as case insensitive. |
boolean | storesUpperCaseIdentifiers() This method tests whether or not the database treats mixed case identifiers as all upper case. |
boolean | storesUpperCaseQuotedIdentifiers() This method tests whether or not the database treats mixed case quoted identifiers as all upper case. |
boolean | supportsANSI92EntryLevelSQL() This method tests whether or not the ANSI92 entry level SQL grammar is supported. |
boolean | supportsANSI92FullSQL() This method tests whether or not the ANSI92 full SQL grammar is supported. |
boolean | supportsANSI92IntermediateSQL() This method tests whether or not the ANSI92 intermediate SQL grammar is supported. |
boolean | supportsAlterTableWithAddColumn() This method tests whether or not the database supports "ALTER TABLE ADD COLUMN" |
boolean | supportsAlterTableWithDropColumn() This method tests whether or not the database supports "ALTER TABLE DROP COLUMN" |
boolean | supportsBatchUpdates() This method tests whether or not the database supports batch updates. |
boolean | supportsCatalogsInDataManipulation() This method tests whether a catalog name can appear in a data manipulation statement. |
boolean | supportsCatalogsInIndexDefinitions() This method tests whether a catalog name can appear in an index definition. |
boolean | supportsCatalogsInPrivilegeDefinitions() This method tests whether a catalog name can appear in privilege definitions. |
boolean | supportsCatalogsInProcedureCalls() This method tests whether a catalog name can appear in a procedure call |
boolean | supportsCatalogsInTableDefinitions() This method tests whether a catalog name can appear in a table definition. |
boolean | supportsColumnAliasing() This method tests whether or not column aliasing is supported. |
boolean | supportsConvert() Tests whether or not CONVERT is supported. |
boolean | supportsConvert(int fromType, int toType) This method tests whether or not CONVERT can be performed between the specified types. |
boolean | supportsCoreSQLGrammar() This method tests whether or not the core grammer for ODBC is supported. |
boolean | supportsCorrelatedSubqueries() This method test whether or not correlated subqueries are allowed. |
boolean | supportsDataDefinitionAndDataManipulationTransactions() This method tests whether or not DDL and DML statements allowed within the same transaction. |
boolean | supportsDataManipulationTransactionsOnly() This method tests whether or not only DML statement are allowed inside a transaction. |
boolean | supportsDifferentTableCorrelationNames() This method tests whether correlation names must be different from the name of the table. |
boolean | supportsExpressionsInOrderBy() This method tests whether or not expressions are allowed in an ORDER BY lists. |
boolean | supportsExtendedSQLGrammar() This method tests whether or not the extended grammer for ODBC is supported. |
boolean | supportsFullOuterJoins() This method tests whether or not the database supports full outer joins. |
boolean | supportsGetGeneratedKeys() |
boolean | supportsGroupBy() This method tests whether or not GROUP BY is supported. |
boolean | supportsGroupByBeyondSelect() This method tests whether or not a GROUP BY can add columns not in the select if it includes all the columns in the select. |
boolean | supportsGroupByUnrelated() This method tests whether GROUP BY on a non-selected column is allowed. |
boolean | supportsIntegrityEnhancementFacility() This method tests whether or not the SQL integrity enhancement facility is supported. |
boolean | supportsLikeEscapeClause() This method tests whether or not the escape character is supported in LIKE expressions. |
boolean | supportsLimitedOuterJoins() This method tests whether or not the database supports limited outer joins. |
boolean | supportsMinimumSQLGrammar() This method tests whether or not the minimum grammer for ODBC is supported. |
boolean | supportsMixedCaseIdentifiers() This method tests whether or not the database supports identifiers with mixed case. |
boolean | supportsMixedCaseQuotedIdentifiers() This method tests whether or not the database supports quoted identifiers with mixed case. |
boolean | supportsMultipleOpenResults() |
boolean | supportsMultipleResultSets() This method tests whether multiple result sets for a single statement are supported. |
boolean | supportsMultipleTransactions() This method test whether or not multiple transactions may be open at once, as long as they are on different connections. |
boolean | supportsNamedParameters() |
boolean | supportsNonNullableColumns() This method tests whether or not columns can be defined as NOT NULL. |
boolean | supportsOpenCursorsAcrossCommit() This method tests whether or not the database supports cursors remaining open across commits. |
boolean | supportsOpenCursorsAcrossRollback() This method tests whether or not the database supports cursors remaining open across rollbacks. |
boolean | supportsOpenStatementsAcrossCommit() This method tests whether or not the database supports statements remaining open across commits. |
boolean | supportsOpenStatementsAcrossRollback() This method tests whether or not the database supports statements remaining open across rollbacks. |
boolean | supportsOrderByUnrelated() This method tests whether or ORDER BY on a non-selected column is allowed. |
boolean | supportsOuterJoins() This method tests whether or not the database supports outer joins. |
boolean | supportsPositionedDelete() This method tests whether or not that database supports positioned deletes. |
boolean | supportsPositionedUpdate() This method tests whether or not that database supports positioned updates. |
boolean | supportsResultSetConcurrency(int type, int concurrency) This method tests whether the specified result set type and result set concurrency type are supported by the database. |
boolean | supportsResultSetHoldability(int holdability) |
boolean | supportsResultSetType(int type) This method tests whether or not the datbase supports the specified result type. |
boolean | supportsSavepoints() |
boolean | supportsSchemasInDataManipulation() This method tests whether a catalog name can appear in a data manipulation statement. |
boolean | supportsSchemasInIndexDefinitions() This method tests whether a catalog name can appear in an index definition. |
boolean | supportsSchemasInPrivilegeDefinitions() This method tests whether a catalog name can appear in privilege definitions. |
boolean | supportsSchemasInProcedureCalls() This method tests whether a catalog name can appear in a procedure call |
boolean | supportsSchemasInTableDefinitions() This method tests whether a catalog name can appear in a table definition. |
boolean | supportsSelectForUpdate() This method tests whether or not SELECT FOR UPDATE is supported by the database. |
boolean | supportsStatementPooling() |
boolean | supportsStoredProcedures() This method tests whether or not stored procedures are supported on this database. |
boolean | supportsSubqueriesInComparisons() This method tests whether or not subqueries are allowed in comparisons. |
boolean | supportsSubqueriesInExists() This method tests whether or not subqueries are allowed in exists expressions. |
boolean | supportsSubqueriesInIns() This method tests whether subqueries are allowed in IN statements. |
boolean | supportsSubqueriesInQuantifieds() This method tests whether or not subqueries are allowed in quantified expressions. |
boolean | supportsTableCorrelationNames() This method tests whether or not table correlation names are supported. |
boolean | supportsTransactionIsolationLevel(int level) This method tests whether or not the database supports the specified transaction isolation level. |
boolean | supportsTransactions() This method tests whether or not the database supports transactions. |
boolean | supportsUnion() This method tests whether or not the UNION statement is supported. |
boolean | supportsUnionAll() This method tests whether or not the UNION ALL statement is supported. |
boolean | updatesAreDetected(int type) This method tests whether or not the specified result set type can detect
a visible update by calling the |
boolean | usesLocalFilePerTable() This method tests whether or not the database uses a separate file for each table. |
boolean | usesLocalFiles() This method tests whether or not the database uses local files to store tables. |
public static final short attributeNoNulls
public static final short attributeNullable
public static final short attributeNullableUnknown
public static final int bestRowNotPseudo
public static final int bestRowPseudo
public static final int bestRowSession
public static final int bestRowTemporary
public static final int bestRowTransaction
public static final int bestRowUnknown
public static final int columnNoNulls
public static final int columnNullable
public static final int columnNullableUnknown
public static final int importedKeyCascade
public static final int importedKeyInitiallyDeferred
public static final int importedKeyInitiallyImmediate
public static final int importedKeyNoAction
public static final int importedKeyNotDeferrable
public static final int importedKeyRestrict
public static final int importedKeySetDefault
public static final int importedKeySetNull
public static final int procedureColumnIn
public static final int procedureColumnInOut
public static final int procedureColumnOut
public static final int procedureColumnResult
public static final int procedureColumnReturn
public static final int procedureColumnUnknown
public static final int procedureNoNulls
public static final int procedureNoResult
public static final int procedureNullable
public static final int procedureNullableUnknown
public static final int procedureResultUnknown
public static final int procedureReturnsResult
public static final int sqlStateSQL99
public static final int sqlStateXOpen
public static final short tableIndexClustered
public static final short tableIndexHashed
public static final short tableIndexOther
public static final short tableIndexStatistic
public static final int typeNoNulls
public static final int typeNullable
public static final int typeNullableUnknown
public static final int typePredBasic
public static final int typePredChar
public static final int typePredNone
public static final int typeSearchable
public static final int versionColumnNotPseudo
public static final int versionColumnPseudo
public static final int versionColumnUnknown
public boolean allProceduresAreCallable()
getProcedures
method can be called by this user.
true
if all the procedures can be called,
false
otherwise.SQLException
- If an error occurs.public boolean allTablesAreSelectable()
getTables
method can be selected by this user.
true
if all the procedures can be called,
false
otherwise.SQLException
- If an error occurs.public boolean dataDefinitionCausesTransactionCommit()
true
if DDL causes an immediate transaction commit,
false
otherwise.SQLException
- If an error occurs.public boolean dataDefinitionIgnoredInTransactions()
true
if DDL statements are ignored in transactions,
false
otherwise.SQLException
- If an error occurs.public boolean deletesAreDetected(int type)
rowUpdated
method.
type
- The desired result type, which is one of the constants
defined in ResultSet
.true
if the result set type can detect visible deletes
using rowUpdated
, false
otherwise.SQLException
- If an error occurs.public boolean doesMaxRowSizeIncludeBlobs()
true
if the maximum row size includes BLOB's,
false
otherwise.SQLException
- If an error occurs.public ResultSet getAttributes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, java.lang.String attributeNamePattern)
Since:catalog
- schemaPattern
- typeNamePattern
- attributeNamePattern
- public ResultSet getBestRowIdentifier(java.lang.String catalog, java.lang.String schema, java.lang.String table, int scope, boolean nullable)
ResultSet
with
the following columns:
bestRowTemporary
,
bestRowTransaction
, or bestRowSession
).
Types
.
bestRowUnknown
, bestRowNotPseudo
, or
bestRowPseudo
).
catalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or null
to return information from all catalogs.schema
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema.table
- The table name to return information for.scope
- A pattern of column names to return information for.nullable
- One of the best row id scope constants from this class.ResultSet
with the best row identifier.SQLException
- If an error occurs.public String getCatalogSeparator()
SQLException
- If an error occurs.public String getCatalogTerm()
SQLException
- if an error occurs.public ResultSet getCatalogs()
ResultSet
with one column - TABLE_CAT - that is the
name of the catalog.
ResultSet
with all the requested catalogs.SQLException
- If an error occurs.public ResultSet getColumnPrivileges(java.lang.String catalog, java.lang.String schema, java.lang.String table, java.lang.String columnNamePattern)
ResultSet
with the following columns:
null
.
null
.
null
if unknown.
catalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or null
to return information from all catalogs.schema
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema.table
- The table name to return information for.columnNamePattern
- A pattern of column names to return information for.ResultSet
with all the requested privileges.SQLException
- If an error occurs.public ResultSet getColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern)
ResultSet
with the following columns:
null
.
null
.
Types
.
tableNoNulls
,
tableNullable
, or tableNullableUnknown
)
null
.
catalog
- The name of the catalog to return table from,
or "" to return tables from all catalogs.schemaPattern
- A schema pattern for the schemas to return
tables from, or "" to return tables from all schemas.tableNamePattern
- The pattern of tables names to return.columnNamePattern
- The pattern of column names to return.SQLException
- If an error occurs.public Connection getConnection()
Connection
object that was used
to generate the metadata in this object.
SQLException
- If an error occurs.public ResultSet getCrossReference(java.lang.String primaryCatalog, java.lang.String primarySchema, java.lang.String primaryTable, java.lang.String foreignCatalog, java.lang.String foreignSchema, java.lang.String foreignTable)
ResultSet
with the following columns:
importedNoAction
, importedKeyCascade
,
importedKeySetNull
, importedKeySetDefault
, or
importedKeyRestrict
).
importedNoAction
, importedKeyCascade
,
importedKeySetNull
, or importedKeySetDefault
)
importedKeyInitiallyDeferred
,
importedKeyInitiallyImmediate
, or
importedKeyNotDeferrable
).
primaryCatalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or null
to return information from all catalogs, on the exporting side.primarySchema
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema, on the exporting side.primaryTable
- The table name to return information for, on the exporting
side.foreignCatalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or null
to return information from all catalogs, on the importing side.foreignSchema
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema on the importing side.foreignTable
- The table name to return information for on the importing
side.ResultSet
with the requested informationSQLException
- If an error occurs.public int getDatabaseMajorVersion()
Since:public int getDatabaseMinorVersion()
Since:public String getDatabaseProductName()
SQLException
- If an error occurs.public String getDatabaseProductVersion()
SQLException
- If an error occurs.public int getDefaultTransactionIsolation()
SQLException
- If an error occurs.public int getDriverMajorVersion()
public int getDriverMinorVersion()
public String getDriverName()
SQLException
- If an error occurs.public String getDriverVersion()
SQLException
- If an error occurs.public ResultSet getExportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
ResultSet
with the following columns:
importedNoAction
, importedKeyCascade
,
importedKeySetNull
, importedKeySetDefault
, or
importedKeyRestrict
).
importedNoAction
, importedKeyCascade
,
importedKeySetNull
, or importedKeySetDefault
)
importedKeyInitiallyDeferred
,
importedKeyInitiallyImmediate
, or
importedKeyNotDeferrable
).
catalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or null
to return information from all catalogs.schema
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema.table
- The table name to return information for.ResultSet
with the requested informationSQLException
- If an error occurs.public String getExtraNameCharacters()
SQLException
- If an error occurs.public String getIdentifierQuoteString()
SQLException
- If an error occurs.public ResultSet getImportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
ResultSet
with the following columns:
importedNoAction
, importedKeyCascade
,
importedKeySetNull
, importedKeySetDefault
, or
importedKeyRestrict
).
importedNoAction
, importedKeyCascade
,
importedKeySetNull
, or importedKeySetDefault
)
importedKeyInitiallyDeferred
,
importedKeyInitiallyImmediate
, or
importedKeyNotDeferrable
).
catalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or null
to return information from all catalogs.schema
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema.table
- The table name to return information for.ResultSet
with the foreign key columns.SQLException
- If an error occurs.public ResultSet getIndexInfo(java.lang.String catalog, java.lang.String schema, java.lang.String table, boolean unique, boolean approximate)
ResultSet
with the following columns:
null
.
null
.
null
tableIndexStatistic
,
tableIndexClustered
, tableIndexHashed
, or
tableIndexOther
).
tableIndexStatistic
.
null
if a sort sequence is not
supported.
tableIndexStatistic
.
tableIndexStatistic
.
null
.
catalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or
null
to return information from all catalogs.schema
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema.table
- The table name to return information for.unique
- true to return only unique indexes,
false
otherwise.approximate
- true if data values can be approximations,
false
otherwise.ResultSet
with the requested index informationSQLException
- If an error occurs.public int getJDBCMajorVersion()
Since:public int getJDBCMinorVersion()
Since:public int getMaxBinaryLiteralLength()
SQLException
- If an error occurs.public int getMaxCatalogNameLength()
SQLException
- If an error occurs.public int getMaxCharLiteralLength()
SQLException
- If an error occurs.public int getMaxColumnNameLength()
SQLException
- If an error occurs.public int getMaxColumnsInGroupBy()
SQLException
- If an error occurs.public int getMaxColumnsInIndex()
SQLException
- If an error occurs.public int getMaxColumnsInOrderBy()
SQLException
- If an error occurs.public int getMaxColumnsInSelect()
SQLException
- If an error occurs.public int getMaxColumnsInTable()
SQLException
- If an error occurs.public int getMaxConnections()
public int getMaxCursorNameLength()
SQLException
- If an error occurs.public int getMaxIndexLength()
SQLException
- If an error occurs.public int getMaxProcedureNameLength()
SQLException
- If an error occurs.public int getMaxRowSize()
SQLException
- If an error occurs.public int getMaxSchemaNameLength()
SQLException
- If an error occurs.public int getMaxStatementLength()
SQLException
- If an error occurs.public int getMaxStatements()
SQLException
- If an error occurs.public int getMaxTableNameLength()
SQLException
- If an error occurs.public int getMaxTablesInSelect()
SQLException
- If an error occurs.public int getMaxUserNameLength()
SQLException
- If an error occurs.public String getNumericFunctions()
SQLException
- If an error occurs.public ResultSet getPrimaryKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
ResultSet
with the following columns.
null
.
null
.
null
.
catalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or null
to return information from all catalogs.schema
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema.table
- The table name to return information for.ResultSet
with the primary key columns.SQLException
- If an error occurs.public ResultSet getProcedureColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern, java.lang.String columnNamePattern)
ResultSet
with the following columns:
null
.
null
.
procedureColumnUnknown
,
procedureColumnIn
, procedureColumnInOut
,
procedureColumnOut
, procedureColumnReturn
,
or procedureColumnResult
).
Types
.
procedureNoNulls
,
procedureNullable
, or procedureNullableUnknown
)
catalog
- The name of the catalog to return stored procedured from,
or "" to return procedures from all catalogs.schemaPattern
- A schema pattern for the schemas to return stored
procedures from, or "" to return procedures from all schemas.procedureNamePattern
- The pattern of procedures names to return.columnNamePattern
- The pattern of column names to return.SQLException
- If an error occurs.public String getProcedureTerm()
SQLException
- if an error occurs.public ResultSet getProcedures(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern)
ResultSet
with the following columns:
null
.
null
.
procedureResultUnknown
, procedureNoResult
, or
procedureReturnsResult
).
catalog
- The name of the catalog to return stored procedured from,
or "" to return procedures from all catalogs.schemaPattern
- A schema pattern for the schemas to return stored
procedures from, or "" to return procedures from all schemas.procedureNamePattern
- The pattern of procedures names to return.SQLException
- If an error occurs.public int getResultSetHoldability()
Since:public String getSQLKeywords()
SQLException
- If an error occurs.public int getSQLStateType()
Since:public String getSchemaTerm()
SQLException
- if an error occurs.public ResultSet getSchemas()
ResultSet
, with one column - TABLE_SCHEM - that is the
name of the schema.
ResultSet
with all the requested schemas.SQLException
- If an error occurs.public String getSearchStringEscape()
SQLException
- If an error occurs.public String getStringFunctions()
SQLException
- If an error occurs.public ResultSet getSuperTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern)
Since:catalog
- schemaPattern
- tableNamePattern
- public ResultSet getSuperTypes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern)
Since:catalog
- schemaPattern
- typeNamePattern
- public String getSystemFunctions()
SQLException
- If an error occurs.public ResultSet getTablePrivileges(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern)
ResultSet
with the following columns:
null
.
null
.
null
if unknown.
catalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or null
to return information from all catalogs.schemaPattern
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema.tableNamePattern
- The table name pattern of tables to return
information for.ResultSet
with all the requested privileges.SQLException
- If an error occurs.public ResultSet getTableTypes()
ResultSet
with one column - TABLE_TYPE - that is the
name of the table type.
ResultSet
with all the requested table types.SQLException
- If an error occurs.public ResultSet getTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String[] types)
ResultSet
with the following columns:
null
.
null
.
getTableTypes()
method.
catalog
- The name of the catalog to return tables from,
or "" to return tables from all catalogs.schemaPattern
- A schema pattern for the schemas to return tables
from, or "" to return tables from all schemas.tableNamePattern
- The pattern of table names to return.types
- The list of table types to include; null returns all types.SQLException
- If an error occurs.public String getTimeDateFunctions()
SQLException
- If an error occurs.public ResultSet getTypeInfo()
ResultSet
with the following columns:
Types
for this
type.
null
.
null
.
null
.
typeNoNulls
, typeNullable
, or
typeNullableUnknown
).
typePredNone
, typePredChar
,
typePredBasic
, or typeSearchable
).
ResultSet
with the list of available data types.SQLException
- If an error occurs.public ResultSet getUDTs(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, int[] types)
ResultSet
with the following columns:
null
.
null
.
Types
for this type.
This will be one of JAVA_OBJECT
, STRUCT
, or
DISTINCT
.
catalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or null
to return information from all catalogs.schemaPattern
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema.typeNamePattern
- The type name pattern to match.types
- The type identifier patterns (from Types
) to
match.ResultSet
with the requested type informationSQLException
- If an error occurs.public String getURL()
null
if it
is not known.SQLException
- If an error occurs.public String getUserName()
SQLException
- If an error occurs.public ResultSet getVersionColumns(java.lang.String catalog, java.lang.String schema, java.lang.String table)
ResultSet
with the following columns:
Types
.
versionRowUnknown
, versionRowNotPseudo
, or
versionRowPseudo
).
catalog
- The catalog to retrieve information from, or the empty string
to return entities not associated with a catalog, or null
to return information from all catalogs.schema
- The schema to retrieve information from, or the empty string
to return entities not associated with a schema.table
- The table name to return information for.ResultSet
with the version columns.SQLException
- If an error occurs.public boolean insertsAreDetected(int type)
rowUpdated
method.
type
- The desired result type, which is one of the constants
defined in ResultSet
.true
if the result set type can detect visible inserts
using rowUpdated
, false
otherwise.SQLException
- If an error occurs.public boolean isCatalogAtStart()
true
if the catalog name appears at the beginning,
false
if it appears at the end.SQLException
- If an error occurs.public boolean isReadOnly()
true
if the database is in read only mode,
false
otherwise.SQLException
- If an error occurs.public boolean locatorsUpdateCopy()
Since:public boolean nullPlusNonNullIsNull()
true
if concatenating NULL and a non-NULL value
returns a NULL, false
otherwise.SQLException
- If an error occurs.public boolean nullsAreSortedAtEnd()
true
if NULL's always sort to the end,
false
otherwise.SQLException
- If an error occurs.public boolean nullsAreSortedAtStart()
true
if NULL's sort as high values, false
otherwise.SQLException
- If an error occurs.public boolean nullsAreSortedHigh()
true
if NULL's sort as high values, false
otherwise.SQLException
- If an error occurs.public boolean nullsAreSortedLow()
true
if NULL's sort as low values, false
otherwise.SQLException
- If an error occurs.public boolean othersDeletesAreVisible(int type)
type
- The desired result type, which is one of the constants
defined in ResultSet
.true
if the result set type sees other deletes,
false
otherwise.SQLException
- If an error occurs.public boolean othersInsertsAreVisible(int type)
type
- The desired result type, which is one of the constants
defined in ResultSet
.true
if the result set type sees other inserts,
false
otherwise.SQLException
- If an error occurs.public boolean othersUpdatesAreVisible(int type)
type
- The desired result type, which is one of the constants
defined in ResultSet
.true
if the result set type sees other updates,
false
otherwise.SQLException
- If an error occurs.public boolean ownDeletesAreVisible(int type)
type
- The desired result type, which is one of the constants
defined in ResultSet
.true
if the result set type sees its own deletes,
false
otherwise.SQLException
- If an error occurs.public boolean ownInsertsAreVisible(int type)
type
- The desired result type, which is one of the constants
defined in ResultSet
.true
if the result set type sees its own inserts,
false
otherwise.SQLException
- If an error occurs.public boolean ownUpdatesAreVisible(int type)
type
- The desired result type, which is one of the constants
defined in ResultSet
.true
if the result set type sees its own updates,
false
otherwise.SQLException
- If an error occurs.public boolean storesLowerCaseIdentifiers()
- if the database treats all identifiers as
lower case, false
otherwise.SQLException
- If an error occurs.public boolean storesLowerCaseQuotedIdentifiers()
- if the database treats all quoted identifiers
as lower case, false
otherwise.SQLException
- If an error occurs.public boolean storesMixedCaseIdentifiers()
true
if the database stores mixed case identifiers,
false
otherwise.SQLException
- If an error occurs.public boolean storesMixedCaseQuotedIdentifiers()
true
if the database stores mixed case quoted
identifiers, false
otherwise.SQLException
- If an error occurs.public boolean storesUpperCaseIdentifiers()
- if the database treats all identifiers as
upper case, false
otherwise.SQLException
- If an error occurs.public boolean storesUpperCaseQuotedIdentifiers()
- if the database treats all quoted identifiers
as upper case, false
otherwise.SQLException
- If an error occurs.public boolean supportsANSI92EntryLevelSQL()
true
.
true
if the ANSI92 entry level SQL grammar is
supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsANSI92FullSQL()
true
if the ANSI92 full SQL grammar is
supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsANSI92IntermediateSQL()
true
if the ANSI92 intermediate SQL grammar is
supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsAlterTableWithAddColumn()
true
if column add supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsAlterTableWithDropColumn()
true
if column drop supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsBatchUpdates()
true
if batch updates are supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsCatalogsInDataManipulation()
true
if a catalog name can appear in a data
manipulation statement, false
otherwise.SQLException
- If an error occurs.public boolean supportsCatalogsInIndexDefinitions()
true
if a catalog name can appear in an index
definition, false
otherwise.SQLException
- If an error occurs.public boolean supportsCatalogsInPrivilegeDefinitions()
true
if a catalog name can appear in privilege
definition, false
otherwise.SQLException
- If an error occurs.public boolean supportsCatalogsInProcedureCalls()
true
if a catalog name can appear in a procedure
call, false
otherwise.SQLException
- If an error occurs.public boolean supportsCatalogsInTableDefinitions()
true
if a catalog name can appear in a table
definition, false
otherwise.SQLException
- If an error occurs.public boolean supportsColumnAliasing()
true
if column aliasing is supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsConvert()
true
if CONVERT is supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsConvert(int fromType, int toType)
Types
.
fromType
- The SQL type to convert from.toType
- The SQL type to convert to.true
if the conversion can be performed,
false
otherwise.public boolean supportsCoreSQLGrammar()
true
if the ODBC core grammar is supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsCorrelatedSubqueries()
true
.
true
if correlated subqueries are allowed,
false
otherwise.SQLException
- If an error occurs.public boolean supportsDataDefinitionAndDataManipulationTransactions()
true
if DDL and DML statements are allowed in the
same transaction, false
otherwise.SQLException
- If an error occurs.public boolean supportsDataManipulationTransactionsOnly()
true
if only DML statements are allowed in
transactions, false
otherwise.SQLException
- If an error occurs.public boolean supportsDifferentTableCorrelationNames()
true
if the correlation name must be different from
the table name, false
otherwise.SQLException
- If an error occurs.public boolean supportsExpressionsInOrderBy()
true
if expressions are allowed in ORDER BY
lists, false
otherwise.SQLException
- If an error occurs.public boolean supportsExtendedSQLGrammar()
true
if the ODBC extended grammar is supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsFullOuterJoins()
true
if full outer joins are supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsGetGeneratedKeys()
Since:public boolean supportsGroupBy()
true
if GROUP BY is supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsGroupByBeyondSelect()
true
if GROUP BY an add columns provided it includes
all columns in the select, false
otherwise.SQLException
- If an error occurs.public boolean supportsGroupByUnrelated()
true
if a non-selected column can be used in a
GROUP BY, false
otherwise.SQLException
- If an error occurs.public boolean supportsIntegrityEnhancementFacility()
true
if the integrity enhancement facility is
supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsLikeEscapeClause()
true
.
true
if escapes are supported in LIKE expressions,
false
otherwise.SQLException
- If an error occurs.public boolean supportsLimitedOuterJoins()
true
if limited outer joins are supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsMinimumSQLGrammar()
true
.
true
if the ODBC minimum grammar is supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsMixedCaseIdentifiers()
true
if the database supports mixed case identifiers,
false
otherwise.SQLException
- If an error occurs.public boolean supportsMixedCaseQuotedIdentifiers()
true
if the database supports mixed case quoted
identifiers, false
otherwise.SQLException
- If an error occurs.public boolean supportsMultipleOpenResults()
Since:public boolean supportsMultipleResultSets()
true
if multiple result sets are supported for a
single statement, false
otherwise.SQLException
- If an error occurs.public boolean supportsMultipleTransactions()
true
if multiple transactions on different
connections are supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsNamedParameters()
Since:public boolean supportsNonNullableColumns()
true
.
true
if NOT NULL columns are supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsOpenCursorsAcrossCommit()
true
if cursors can remain open across commits,
false
otherwise.SQLException
- If an error occurs.public boolean supportsOpenCursorsAcrossRollback()
true
if cursors can remain open across rollbacks,
false
otherwise.SQLException
- If an error occurs.public boolean supportsOpenStatementsAcrossCommit()
true
if statements can remain open across commits,
false
otherwise.SQLException
- If an error occurs.public boolean supportsOpenStatementsAcrossRollback()
true
if statements can remain open across rollbacks,
false
otherwise.SQLException
- If an error occurs.public boolean supportsOrderByUnrelated()
true
if a non-selected column can be used in an
ORDER BY, false
otherwise.SQLException
- If an error occurs.public boolean supportsOuterJoins()
true
if outer joins are supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsPositionedDelete()
true
if positioned deletes are supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsPositionedUpdate()
true
if positioned updates are supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsResultSetConcurrency(int type, int concurrency)
type
- The desired result type, which is one of the constants
defined in ResultSet
.concurrency
- The desired concurrency type, which is one of the constants
defined in ResultSet
.true
if the result set type is supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsResultSetHoldability(int holdability)
Since:holdability
- public boolean supportsResultSetType(int type)
type
- The desired result type, which is one of the constants
defined in ResultSet
.true
if the result set type is supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsSavepoints()
Since:public boolean supportsSchemasInDataManipulation()
true
if a catalog name can appear in a data
manipulation statement, false
otherwise.SQLException
- If an error occurs.public boolean supportsSchemasInIndexDefinitions()
true
if a catalog name can appear in an index
definition, false
otherwise.SQLException
- If an error occurs.public boolean supportsSchemasInPrivilegeDefinitions()
true
if a catalog name can appear in privilege
definition, false
otherwise.SQLException
- If an error occurs.public boolean supportsSchemasInProcedureCalls()
true
if a catalog name can appear in a procedure
call, false
otherwise.SQLException
- If an error occurs.public boolean supportsSchemasInTableDefinitions()
true
if a catalog name can appear in a table
definition, false
otherwise.SQLException
- If an error occurs.public boolean supportsSelectForUpdate()
true
if SELECT FOR UPDATE is supported
false
otherwise.SQLException
- If an error occurs.public boolean supportsStatementPooling()
Since:public boolean supportsStoredProcedures()
true
if stored procedures are supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsSubqueriesInComparisons()
true
.
true
if subqueries are allowed in comparisons,
false
otherwise.SQLException
- If an error occurs.public boolean supportsSubqueriesInExists()
true
.
true
if subqueries are allowed in exists
expressions, false
otherwise.SQLException
- If an error occurs.public boolean supportsSubqueriesInIns()
true
.
true
if the driver supports subqueries in IN
statements, false
otherwise.SQLException
- If an error occurs.public boolean supportsSubqueriesInQuantifieds()
true
.
true
if subqueries are allowed in quantified
expressions, false
otherwise.SQLException
- If an error occurs.public boolean supportsTableCorrelationNames()
true
in a fully JDBC
compliant driver.
true
if table correlation names are supported,
false
otherwise.SQLException
- If an error occurs.public boolean supportsTransactionIsolationLevel(int level)
level
- The transaction isolation level.true
if the specified transaction isolation level
is supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsTransactions()
true
if the database supports transactions,
false
otherwise.SQLException
- If an error occurs.public boolean supportsUnion()
true
if UNION is supported, false
otherwise.SQLException
- If an error occurs.public boolean supportsUnionAll()
true
if UNION ALL is supported, false
otherwise.SQLException
- If an error occurs.public boolean updatesAreDetected(int type)
rowUpdated
method.
type
- The desired result type, which is one of the constants
defined in ResultSet
.true
if the result set type can detect visible updates
using rowUpdated
, false
otherwise.SQLException
- If an error occurs.public boolean usesLocalFilePerTable()
true
if the database uses a separate file for each
table false otherwise.SQLException
- If an error occurs.public boolean usesLocalFiles()
true
if the database uses local files,
false
otherwise.SQLException
- If an error occurs.