java.sql
Interface DatabaseMetaData
java.lang.Object
|
+--java.sql.DatabaseMetaData
public interface DatabaseMetaData
boolean | allProceduresAreCallable()
|
boolean | allTablesAreSelectable()
|
boolean | dataDefinitionCausesTransactionCommit()
|
boolean | dataDefinitionIgnoredInTransactions()
|
boolean | deletesAreDetected(int type)
|
boolean | doesMaxRowSizeIncludeBlobs()
|
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)
|
java.lang.String | getCatalogSeparator()
|
java.lang.String | getCatalogTerm()
|
java.sql.ResultSet | getCatalogs()
|
java.sql.ResultSet | getColumnPrivileges(java.lang.String catalog, java.lang.String schema, java.lang.String table, java.lang.String columnNamePattern)
|
java.sql.ResultSet | getColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String columnNamePattern)
|
java.sql.Connection | getConnection()
|
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)
|
int | getDatabaseMajorVersion()
|
int | getDatabaseMinorVersion()
|
java.lang.String | getDatabaseProductName()
|
java.lang.String | getDatabaseProductVersion()
|
int | getDefaultTransactionIsolation()
|
int | getDriverMajorVersion()
|
int | getDriverMinorVersion()
|
java.lang.String | getDriverName()
|
java.lang.String | getDriverVersion()
|
java.sql.ResultSet | getExportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
|
java.lang.String | getExtraNameCharacters()
|
java.lang.String | getIdentifierQuoteString()
|
java.sql.ResultSet | getImportedKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
|
java.sql.ResultSet | getIndexInfo(java.lang.String catalog, java.lang.String schema, java.lang.String table, boolean unique, boolean approximate)
|
int | getJDBCMajorVersion()
|
int | getJDBCMinorVersion()
|
int | getMaxBinaryLiteralLength()
|
int | getMaxCatalogNameLength()
|
int | getMaxCharLiteralLength()
|
int | getMaxColumnNameLength()
|
int | getMaxColumnsInGroupBy()
|
int | getMaxColumnsInIndex()
|
int | getMaxColumnsInOrderBy()
|
int | getMaxColumnsInSelect()
|
int | getMaxColumnsInTable()
|
int | getMaxConnections()
|
int | getMaxCursorNameLength()
|
int | getMaxIndexLength()
|
int | getMaxProcedureNameLength()
|
int | getMaxRowSize()
|
int | getMaxSchemaNameLength()
|
int | getMaxStatementLength()
|
int | getMaxStatements()
|
int | getMaxTableNameLength()
|
int | getMaxTablesInSelect()
|
int | getMaxUserNameLength()
|
java.lang.String | getNumericFunctions()
|
java.sql.ResultSet | getPrimaryKeys(java.lang.String catalog, java.lang.String schema, java.lang.String table)
|
java.sql.ResultSet | getProcedureColumns(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern, java.lang.String columnNamePattern)
|
java.lang.String | getProcedureTerm()
|
java.sql.ResultSet | getProcedures(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String procedureNamePattern)
|
int | getResultSetHoldability()
|
java.lang.String | getSQLKeywords()
|
int | getSQLStateType()
|
java.lang.String | getSchemaTerm()
|
java.sql.ResultSet | getSchemas()
|
java.lang.String | getSearchStringEscape()
|
java.lang.String | getStringFunctions()
|
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()
|
java.sql.ResultSet | getTablePrivileges(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern)
|
java.sql.ResultSet | getTableTypes()
|
java.sql.ResultSet | getTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern, java.lang.String[] types)
|
java.lang.String | getTimeDateFunctions()
|
java.sql.ResultSet | getTypeInfo()
|
java.sql.ResultSet | getUDTs(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, int[] types)
|
java.lang.String | getURL()
|
java.lang.String | getUserName()
|
java.sql.ResultSet | getVersionColumns(java.lang.String catalog, java.lang.String schema, java.lang.String table)
|
boolean | insertsAreDetected(int type)
|
boolean | isCatalogAtStart()
|
boolean | isReadOnly()
|
boolean | locatorsUpdateCopy()
|
boolean | nullPlusNonNullIsNull()
|
boolean | nullsAreSortedAtEnd()
|
boolean | nullsAreSortedAtStart()
|
boolean | nullsAreSortedHigh()
|
boolean | nullsAreSortedLow()
|
boolean | othersDeletesAreVisible(int type)
|
boolean | othersInsertsAreVisible(int type)
|
boolean | othersUpdatesAreVisible(int type)
|
boolean | ownDeletesAreVisible(int type)
|
boolean | ownInsertsAreVisible(int type)
|
boolean | ownUpdatesAreVisible(int type)
|
boolean | storesLowerCaseIdentifiers()
|
boolean | storesLowerCaseQuotedIdentifiers()
|
boolean | storesMixedCaseIdentifiers()
|
boolean | storesMixedCaseQuotedIdentifiers()
|
boolean | storesUpperCaseIdentifiers()
|
boolean | storesUpperCaseQuotedIdentifiers()
|
boolean | supportsANSI92EntryLevelSQL()
|
boolean | supportsANSI92FullSQL()
|
boolean | supportsANSI92IntermediateSQL()
|
boolean | supportsAlterTableWithAddColumn()
|
boolean | supportsAlterTableWithDropColumn()
|
boolean | supportsBatchUpdates()
|
boolean | supportsCatalogsInDataManipulation()
|
boolean | supportsCatalogsInIndexDefinitions()
|
boolean | supportsCatalogsInPrivilegeDefinitions()
|
boolean | supportsCatalogsInProcedureCalls()
|
boolean | supportsCatalogsInTableDefinitions()
|
boolean | supportsColumnAliasing()
|
boolean | supportsConvert()
|
boolean | supportsConvert(int fromType, int toType)
|
boolean | supportsCoreSQLGrammar()
|
boolean | supportsCorrelatedSubqueries()
|
boolean | supportsDataDefinitionAndDataManipulationTransactions()
|
boolean | supportsDataManipulationTransactionsOnly()
|
boolean | supportsDifferentTableCorrelationNames()
|
boolean | supportsExpressionsInOrderBy()
|
boolean | supportsExtendedSQLGrammar()
|
boolean | supportsFullOuterJoins()
|
boolean | supportsGetGeneratedKeys()
|
boolean | supportsGroupBy()
|
boolean | supportsGroupByBeyondSelect()
|
boolean | supportsGroupByUnrelated()
|
boolean | supportsIntegrityEnhancementFacility()
|
boolean | supportsLikeEscapeClause()
|
boolean | supportsLimitedOuterJoins()
|
boolean | supportsMinimumSQLGrammar()
|
boolean | supportsMixedCaseIdentifiers()
|
boolean | supportsMixedCaseQuotedIdentifiers()
|
boolean | supportsMultipleOpenResults()
|
boolean | supportsMultipleResultSets()
|
boolean | supportsMultipleTransactions()
|
boolean | supportsNamedParameters()
|
boolean | supportsNonNullableColumns()
|
boolean | supportsOpenCursorsAcrossCommit()
|
boolean | supportsOpenCursorsAcrossRollback()
|
boolean | supportsOpenStatementsAcrossCommit()
|
boolean | supportsOpenStatementsAcrossRollback()
|
boolean | supportsOrderByUnrelated()
|
boolean | supportsOuterJoins()
|
boolean | supportsPositionedDelete()
|
boolean | supportsPositionedUpdate()
|
boolean | supportsResultSetConcurrency(int type, int concurrency)
|
boolean | supportsResultSetHoldability(int holdability)
|
boolean | supportsResultSetType(int type)
|
boolean | supportsSavepoints()
|
boolean | supportsSchemasInDataManipulation()
|
boolean | supportsSchemasInIndexDefinitions()
|
boolean | supportsSchemasInPrivilegeDefinitions()
|
boolean | supportsSchemasInProcedureCalls()
|
boolean | supportsSchemasInTableDefinitions()
|
boolean | supportsSelectForUpdate()
|
boolean | supportsStatementPooling()
|
boolean | supportsStoredProcedures()
|
boolean | supportsSubqueriesInComparisons()
|
boolean | supportsSubqueriesInExists()
|
boolean | supportsSubqueriesInIns()
|
boolean | supportsSubqueriesInQuantifieds()
|
boolean | supportsTableCorrelationNames()
|
boolean | supportsTransactionIsolationLevel(int level)
|
boolean | supportsTransactions()
|
boolean | supportsUnion()
|
boolean | supportsUnionAll()
|
boolean | updatesAreDetected(int type)
|
boolean | usesLocalFilePerTable()
|
boolean | usesLocalFiles()
|
attributeNoNulls
public static final short attributeNoNulls
attributeNullable
public static final short attributeNullable
attributeNullableUnknown
public static final short attributeNullableUnknown
bestRowNotPseudo
public static final int bestRowNotPseudo The best row identifier is not a pseudo-column.
bestRowPseudo
public static final int bestRowPseudo The best row identifier is a pseudo-column.
bestRowSession
public static final int bestRowSession The best row identifier is valid to the end of the session.
bestRowTemporary
public static final int bestRowTemporary The best row's scope is only guaranteed to be valid so long as the
row is actually being used.
bestRowTransaction
public static final int bestRowTransaction The best row identifier is valid to the end of the transaction.
bestRowUnknown
public static final int bestRowUnknown The best row may or may not be a pseudo-column.
columnNoNulls
public static final int columnNoNulls The column does not allow NULL
columnNullable
public static final int columnNullable The column does allow NULL
columnNullableUnknown
public static final int columnNullableUnknown It is unknown whether or not the column allows NULL
importedKeyCascade
public static final int importedKeyCascade Foreign key changes are cascaded in updates or deletes.
importedKeyInitiallyDeferred
public static final int importedKeyInitiallyDeferred Wish I knew what this meant.
importedKeyInitiallyImmediate
public static final int importedKeyInitiallyImmediate Wish I knew what this meant.
importedKeyNoAction
public static final int importedKeyNoAction If the primary key is a foreign key, it cannot be udpated or deleted.
importedKeyNotDeferrable
public static final int importedKeyNotDeferrable Wish I knew what this meant.
importedKeyRestrict
public static final int importedKeyRestrict Column may not be updated or deleted in use as a foreign key.
importedKeySetDefault
public static final int importedKeySetDefault If the primary key is updated or deleted, the foreign key is set to
a default value.
importedKeySetNull
public static final int importedKeySetNull When primary key is updated or deleted, the foreign key is set to NULL.
procedureColumnIn
public static final int procedureColumnIn The column type is input.
procedureColumnInOut
public static final int procedureColumnInOut The column type is input/output.
procedureColumnOut
public static final int procedureColumnOut The column type is output
procedureColumnResult
public static final int procedureColumnResult The column is used for storing results
procedureColumnReturn
public static final int procedureColumnReturn The column is used for return values.
procedureColumnUnknown
public static final int procedureColumnUnknown The column type is unknown.
procedureNoNulls
public static final int procedureNoNulls NULL values are not allowed.
procedureNoResult
public static final int procedureNoResult The procedure does not return a result.
procedureNullable
public static final int procedureNullable NULL values are allowed.
procedureNullableUnknown
public static final int procedureNullableUnknown It is unknown whether or not NULL values are allowed.
procedureResultUnknown
public static final int procedureResultUnknown It is unknown whether or not the procedure returns a result.
procedureReturnsResult
public static final int procedureReturnsResult The procedure returns a result.
sqlStateSQL99
public static final int sqlStateSQL99
sqlStateXOpen
public static final int sqlStateXOpen
tableIndexClustered
public static final short tableIndexClustered This table index is clustered.
tableIndexHashed
public static final short tableIndexHashed This table index is hashed.
tableIndexOther
public static final short tableIndexOther This table index is of another type.
tableIndexStatistic
public static final short tableIndexStatistic This column contains table statistics.
typeNoNulls
public static final int typeNoNulls A NULL value is not allowed for this data type.
typeNullable
public static final int typeNullable A NULL value is allowed for this data type.
typeNullableUnknown
public static final int typeNullableUnknown It is unknown whether or not NULL values are allowed for this data type.
typePredBasic
public static final int typePredBasic All WHERE clauses except "WHERE..LIKE" style are allowed on this data type.
typePredChar
public static final int typePredChar Only "WHERE..LIKE" style WHERE clauses are allowed on this data type.
typePredNone
public static final int typePredNone Where clauses are not supported for this type.
typeSearchable
public static final int typeSearchable Any type of WHERE clause is allowed for this data type.
versionColumnNotPseudo
public static final int versionColumnNotPseudo The version column is not a pseudo-column
versionColumnPseudo
public static final int versionColumnPseudo The version column is a pseudo-column
versionColumnUnknown
public static final int versionColumnUnknown It is unknown whether or not the version column is a pseudo-column.
allProceduresAreCallable
public boolean allProceduresAreCallable() This method tests whether or not all the procedures returned by
the getProcedures method can be called by this user.
Returns:
true if all the procedures can be called,
false otherwise.
Throws:
allTablesAreSelectable
public boolean allTablesAreSelectable() This method tests whether or not all the table returned by the
getTables method can be selected by this user.
Returns:
true if all the procedures can be called,
false otherwise.
Throws:
dataDefinitionCausesTransactionCommit
public boolean dataDefinitionCausesTransactionCommit() This method tests whether or not a DDL statement will cause the
current transaction to be automatically committed.
Returns:
true if DDL causes an immediate transaction commit,
false otherwise.
Throws:
dataDefinitionIgnoredInTransactions
public boolean dataDefinitionIgnoredInTransactions() This method tests whether or not DDL statements are ignored in
transactions.
Returns:
true if DDL statements are ignored in transactions,
false otherwise.
Throws:
deletesAreDetected
public boolean deletesAreDetected(int type) This method tests whether or not the specified result set type can detect
a visible delete by calling the rowUpdated method.
Parameters:
Returns:
true if the result set type can detect visible deletes
using rowUpdated, false otherwise.
Throws:
See Also:
doesMaxRowSizeIncludeBlobs
public boolean doesMaxRowSizeIncludeBlobs() This method tests whether or not the maximum row size includes BLOB's
Returns:
true if the maximum row size includes BLOB's,
false otherwise.
Throws:
getAttributes
public ResultSet getAttributes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, java.lang.String attributeNamePattern)Since:Parameters:
getBestRowIdentifier
public 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. It returns this information as a
ResultSet with
the following columns:
- SCOPE - The scope of the results returned. This is one of the
constants defined in this class (
bestRowTemporary,
bestRowTransaction, or bestRowSession).
- COLUMN_NAME - The name of the column.
- DATA_TYPE - The SQL type of the column. This is one of the constants
defined in
Types.
- TYPE_NAME - The string name of the data type for this column.
- COLUMN_SIZE - The precision of the columns
- BUFFER_LENGTH - Unused
- DECIMAL_DIGITS - The scale of the column.
- PSEUDO_COLUMN - Whether or not the best row identifier is a
pseudo_column. This is one of the constants defined in this class
(
bestRowUnknown, bestRowNotPseudo, or
bestRowPseudo).
Parameters:
Returns:
- A
ResultSet with the best row identifier.
Throws:
getCatalogSeparator
public String getCatalogSeparator() This method returns the separator between the catalog name and the
table name.
Returns:
- The separator between the catalog name and the table name.
Throws:
getCatalogTerm
public String getCatalogTerm() This method returns the vendor's term for "catalog".
Returns:
- The vendor's term for catalog.
Throws:
getCatalogs
public ResultSet getCatalogs() This method returns the list of database catalogs as a
ResultSet with one column - TABLE_CAT - that is the
name of the catalog.
Returns:
- A
ResultSet with all the requested catalogs.
Throws:
getColumnPrivileges
public 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. This information is returned as a
ResultSet
with the following columns:
- TABLE_CAT - The catalog the table is in, which may be
null.
- TABLE_SCHEM - The schema the tables is in, which may be
null.
- TABLE_NAME - The name of the table.
- COLUMN_NAME - The name of the column.
- GRANTOR - The entity that granted the access.
- GRANTEE - The entity granted the access.
- PRIVILEGE - The name of the privilege granted.
- IS_GRANTABLE - "YES" if the grantee can grant the privilege to
others, "NO" if not, and
null if unknown.
Parameters:
Returns:
- A
ResultSet with all the requested privileges.
Throws:
getColumns
public 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. This is returned in the form of a
ResultSet with the following columns:
- TABLE_CAT - The catalog the table is in, which may be
null.
- TABLE_SCHEM - The schema the tables is in, which may be
null.
- TABLE_NAME - The name of the table.
- COLUMN_NAME - The name of the column
- DATA_TYPE - The SQL type of the column. This is one of the constants
defined in
Types.
- TYPE_NAME - The string name of the data type for this column.
- COLUMN_SIZE - The size of the column.
- Unused
- NUM_PREC_RADIX - The radix of the column.
- NULLABLE - Whether or not the column is NULLABLE. This is one of
the constants defined in this class (
tableNoNulls,
tableNullable, or tableNullableUnknown)
- REMARKS - A description of the column.
- COLUMN_DEF - The default value for the column, may be
null.
- SQL_DATA_TYPE - Unused
- SQL_DATETIME_SUB - Unused
- CHAR_OCTET_LENGTH - For character columns, the maximum number of bytes
in the column.
- ORDINAL_POSITION - The index of the column in the table.
- IS_NULLABLE - "NO" means no, "YES" means maybe, and an empty string
means unknown.
Parameters:
Throws:
getConnection
public Connection getConnection() This method returns the Connection object that was used
to generate the metadata in this object.
Returns:
- The connection for this object.
Throws:
getCrossReference
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) This method returns a description of how one table imports another
table's primary key as a foreign key. The information is
returned as a
ResultSet with the following columns:
- PKTABLE_CAT - The catalog of the table the key was imported from.
- PKTABLE_SCHEM - The schema of the table the key was imported from.
- PKTABLE_NAME - The name of the table the key was imported from.
- PKCOLUMN_NAME - The name of the column that was imported.
- FKTABLE_CAT - The foreign key catalog name.
- FKTABLE_SCHEM - The foreign key schema name.
- FKTABLE_NAME - The foreign key table name.
- FKCOLUMN_NAME - The foreign key column name.
- KEY_SEQ - The sequence number of the column within the foreign key.
- UPDATE_RULE - How the foreign key behaves when the primary key is
updated. This is one of the constants defined in this class
(
importedNoAction, importedKeyCascade,
importedKeySetNull, importedKeySetDefault, or
importedKeyRestrict).
- DELETE_RULE - How the foreign key behaves when the primary key is
deleted. This is one of the constants defined in this class
(
importedNoAction, importedKeyCascade,
importedKeySetNull, or importedKeySetDefault)
- FK_NAME - The name of the foreign key.
- PK_NAME - The name of the primary key.
- DEFERRABILITY - The deferrability value. This is one of the
constants defined in this table (
importedKeyInitiallyDeferred,
importedKeyInitiallyImmediate, or
importedKeyNotDeferrable).
Parameters:
Returns:
- A
ResultSet with the requested information
Throws:
getDatabaseMajorVersion
public int getDatabaseMajorVersion()Since:
getDatabaseMinorVersion
public int getDatabaseMinorVersion()Since:
getDatabaseProductName
public String getDatabaseProductName() This method returns the name of the database product.
Returns:
Throws:
getDatabaseProductVersion
public String getDatabaseProductVersion() This method returns the version of the database product.
Returns:
- The version of the database product.
Throws:
getDefaultTransactionIsolation
public int getDefaultTransactionIsolation() This method returns the default transaction isolation level of the
database.
Returns:
- The default transaction isolation level of the database.
Throws:
See Also:
getDriverMajorVersion
public int getDriverMajorVersion() This method returns the major version number of the JDBC driver.
Returns:
- The major version number of the JDBC driver.
getDriverMinorVersion
public int getDriverMinorVersion() This method returns the minor version number of the JDBC driver.
Returns:
- The minor version number of the JDBC driver.
getDriverName
public String getDriverName() This method returns the name of the JDBC driver.
Returns:
- The name of the JDBC driver.
Throws:
getDriverVersion
public String getDriverVersion() This method returns the version of the JDBC driver.
Returns:
- The version of the JDBC driver.
Throws:
getExportedKeys
public 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. The information is
returned as a
ResultSet with the following columns:
- PKTABLE_CAT - The catalog of the table the key was imported from.
- PKTABLE_SCHEM - The schema of the table the key was imported from.
- PKTABLE_NAME - The name of the table the key was imported from.
- PKCOLUMN_NAME - The name of the column that was imported.
- FKTABLE_CAT - The foreign key catalog name.
- FKTABLE_SCHEM - The foreign key schema name.
- FKTABLE_NAME - The foreign key table name.
- FKCOLUMN_NAME - The foreign key column name.
- KEY_SEQ - The sequence number of the column within the foreign key.
- UPDATE_RULE - How the foreign key behaves when the primary key is
updated. This is one of the constants defined in this class
(
importedNoAction, importedKeyCascade,
importedKeySetNull, importedKeySetDefault, or
importedKeyRestrict).
- DELETE_RULE - How the foreign key behaves when the primary key is
deleted. This is one of the constants defined in this class
(
importedNoAction, importedKeyCascade,
importedKeySetNull, or importedKeySetDefault)
- FK_NAME - The name of the foreign key.
- PK_NAME - The name of the primary key.
- DEFERRABILITY - The deferrability value. This is one of the
constants defined in this table (
importedKeyInitiallyDeferred,
importedKeyInitiallyImmediate, or
importedKeyNotDeferrable).
Parameters:
Returns:
- A
ResultSet with the requested information
Throws:
getExtraNameCharacters
public String getExtraNameCharacters() This methods returns non-standard characters that can appear in
unquoted identifiers.
Returns:
- Non-standard characters that can appear in unquoted identifiers.
Throws:
getIdentifierQuoteString
public String getIdentifierQuoteString() This metohd returns the quote string for SQL identifiers.
Returns:
- The quote string for SQL identifers, or a space if quoting
is not supported.
Throws:
getImportedKeys
public 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. These are
returned as a
ResultSet with the following columns:
- PKTABLE_CAT - The catalog of the table the key was imported from.
- PKTABLE_SCHEM - The schema of the table the key was imported from.
- PKTABLE_NAME - The name of the table the key was imported from.
- PKCOLUMN_NAME - The name of the column that was imported.
- FKTABLE_CAT - The foreign key catalog name.
- FKTABLE_SCHEM - The foreign key schema name.
- FKTABLE_NAME - The foreign key table name.
- FKCOLUMN_NAME - The foreign key column name.
- KEY_SEQ - The sequence number of the column within the foreign key.
- UPDATE_RULE - How the foreign key behaves when the primary key is
updated. This is one of the constants defined in this class
(
importedNoAction, importedKeyCascade,
importedKeySetNull, importedKeySetDefault, or
importedKeyRestrict).
- DELETE_RULE - How the foreign key behaves when the primary key is
deleted. This is one of the constants defined in this class
(
importedNoAction, importedKeyCascade,
importedKeySetNull, or importedKeySetDefault)
- FK_NAME - The name of the foreign key.
- PK_NAME - The name of the primary key.
- DEFERRABILITY - The deferrability value. This is one of the
constants defined in this table (
importedKeyInitiallyDeferred,
importedKeyInitiallyImmediate, or
importedKeyNotDeferrable).
Parameters:
Returns:
- A
ResultSet with the foreign key columns.
Throws:
getIndexInfo
public 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.
It is returned as a
ResultSet with the following columns:
- TABLE_CAT - The catalog of the table, which may be
null.
- TABLE_SCHEM - The schema of the table, which may be
null.
- TABLE_NAME - The name of the table.
- NON_UNIQUE - Are index values non-unique?
- INDEX_QUALIFIER The index catalog, which may be
null
- INDEX_NAME - The name of the index.
- TYPE - The type of index, which will be one of the constants defined
in this interface (
tableIndexStatistic,
tableIndexClustered, tableIndexHashed, or
tableIndexOther).
- ORDINAL_POSITION - The sequence number of this column in the index.
This will be 0 when the index type is
tableIndexStatistic.
- COLUMN_NAME - The name of this column in the index.
- ASC_OR_DESC - "A" for an ascending sort sequence, "D" for a
descending sort sequence or
null if a sort sequence is not
supported.
- CARDINALITY - The number of unique rows in the index, or the number
of rows in the table if the index type is
tableIndexStatistic.
- PAGES - The number of pages used for the index, or the number of pages
in the table if the index type is
tableIndexStatistic.
- FILTER_CONDITION - The filter condition for this index, which may be
null.
Parameters:
Returns:
- A
ResultSet with the requested index information
Throws:
getJDBCMajorVersion
public int getJDBCMajorVersion()Since:
getJDBCMinorVersion
public int getJDBCMinorVersion()Since:
getMaxBinaryLiteralLength
public int getMaxBinaryLiteralLength() This method returns the number of hex characters allowed in an inline
binary literal.
Returns:
- The number of hex characters allowed in a binary literal, 0 meaning
either an unknown or unlimited number.
Throws:
getMaxCatalogNameLength
public int getMaxCatalogNameLength() This method returns the maximum length of a catalog name.
Returns:
- The maximum length of a catalog name.
Throws:
getMaxCharLiteralLength
public int getMaxCharLiteralLength() This method returns the maximum length of a character literal.
Returns:
- The maximum length of a character literal.
Throws:
getMaxColumnNameLength
public int getMaxColumnNameLength() This method returns the maximum length of a column name.
Returns:
- The maximum length of a column name.
Throws:
getMaxColumnsInGroupBy
public int getMaxColumnsInGroupBy() This method returns the maximum number of columns in a GROUP BY statement.
Returns:
- The maximum number of columns in a GROUP BY statement.
Throws:
getMaxColumnsInIndex
public int getMaxColumnsInIndex() This method returns the maximum number of columns in an index.
Returns:
- The maximum number of columns in an index.
Throws:
getMaxColumnsInOrderBy
public int getMaxColumnsInOrderBy() This method returns the maximum number of columns in an ORDER BY statement.
Returns:
- The maximum number of columns in an ORDER BY statement.
Throws:
getMaxColumnsInSelect
public int getMaxColumnsInSelect() This method returns the maximum number of columns in a SELECT statement.
Returns:
- The maximum number of columns in a SELECT statement.
Throws:
getMaxColumnsInTable
public int getMaxColumnsInTable() This method returns the maximum number of columns in a table.
Returns:
- The maximum number of columns in a table.
Throws:
getMaxConnections
public int getMaxConnections() This method returns the maximum number of connections this client
can have to the database.
Returns:
- The maximum number of database connections.
getMaxCursorNameLength
public int getMaxCursorNameLength() This method returns the maximum length of a cursor name.
Returns:
- The maximum length of a cursor name.
Throws:
getMaxIndexLength
public int getMaxIndexLength() This method returns the maximum length of an index.
Returns:
- The maximum length of an index.
Throws:
getMaxProcedureNameLength
public int getMaxProcedureNameLength() This method returns the maximum length of a procedure name.
Returns:
- The maximum length of a procedure name.
Throws:
getMaxRowSize
public int getMaxRowSize() This method returns the maximum size of a row in bytes.
Returns:
- The maximum size of a row.
Throws:
getMaxSchemaNameLength
public int getMaxSchemaNameLength() This method returns the maximum length of a schema name.
Returns:
- The maximum length of a schema name.
Throws:
getMaxStatementLength
public int getMaxStatementLength() This method includes the maximum length of a SQL statement.
Returns:
- The maximum length of a SQL statement.
Throws:
getMaxStatements
public int getMaxStatements() This method returns the maximum number of statements that can be
active at any time.
Returns:
- The maximum number of statements that can be active at any time.
Throws:
getMaxTableNameLength
public int getMaxTableNameLength() This method returns the maximum length of a table name.
Returns:
- The maximum length of a table name.
Throws:
getMaxTablesInSelect
public int getMaxTablesInSelect() This method returns the maximum number of tables that may be referenced
in a SELECT statement.
Returns:
- The maximum number of tables allowed in a SELECT statement.
Throws:
getMaxUserNameLength
public int getMaxUserNameLength() This method returns the maximum length of a user name.
Returns:
- The maximum length of a user name.
Throws:
getNumericFunctions
public String getNumericFunctions() This method returns a comma separated list of math functions.
Returns:
- The list of math functions.
Throws:
getPrimaryKeys
public 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. These
are returned as a
ResultSet with the following columns.
- TABLE_CAT - The catalog of the table, which may be
null.
- TABLE_SCHEM - The schema of the table, which may be
null.
- TABLE_NAME - The name of the table.
- COLUMN_NAME - The name of the column.
- KEY_SEQ - The sequence number of the column within the primary key.
- PK_NAME - The name of the primary key, which may be
null.
Parameters:
Returns:
- A
ResultSet with the primary key columns.
Throws:
getProcedureColumns
public 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. This is returned in the form of a
ResultSet with the following columns:
- PROCEDURE_CAT - The catalog the procedure is in, which may be
null.
- PROCEDURE_SCHEM - The schema the procedures is in, which may be
null.
- PROCEDURE_NAME - The name of the procedure.
- COLUMN_NAME - The name of the column
- COLUMN_TYPE - The type of the column, which will be one of the
contants defined in this class (
procedureColumnUnknown,
procedureColumnIn, procedureColumnInOut,
procedureColumnOut, procedureColumnReturn,
or procedureColumnResult).
- DATA_TYPE - The SQL type of the column. This is one of the constants
defined in
Types.
- TYPE_NAME - The string name of the data type for this column.
- PRECISION - The precision of the column.
- LENGTH - The length of the column in bytes
- SCALE - The scale of the column.
- RADIX - The radix of the column.
- NULLABLE - Whether or not the column is NULLABLE. This is one of
the constants defined in this class (
procedureNoNulls,
procedureNullable, or procedureNullableUnknown)
- REMARKS - A description of the column.
Parameters:
Throws:
getProcedureTerm
public String getProcedureTerm() This method returns the vendor's term for "procedure".
Returns:
- The vendor's term for procedure.
Throws:
getProcedures
public 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. This is returned
a
ResultSet with the following columns:
- PROCEDURE_CAT - The catalog the procedure is in, which may be
null.
- PROCEDURE_SCHEM - The schema the procedures is in, which may be
null.
- PROCEDURE_NAME - The name of the procedure.
- Unused
- Unused
- Unused
- REMARKS - A description of the procedure
- PROCEDURE_TYPE - Indicates the return type of the procedure, which
is one of the contstants defined in this class
(
procedureResultUnknown, procedureNoResult, or
procedureReturnsResult).
Parameters:
Throws:
getResultSetHoldability
public int getResultSetHoldability()Since:
getSQLKeywords
public String getSQLKeywords() This method returns a comma separated list of all the SQL keywords in
the database that are not in SQL92.
Returns:
- The list of SQL keywords not in SQL92.
Throws:
getSQLStateType
public int getSQLStateType()Since:
getSchemaTerm
public String getSchemaTerm() This method returns the vendor's term for "schema".
Returns:
- The vendor's term for schema.
Throws:
getSchemas
public ResultSet getSchemas() This method returns the list of database schemas as a
ResultSet, with one column - TABLE_SCHEM - that is the
name of the schema.
Returns:
- A
ResultSet with all the requested schemas.
Throws:
getSearchStringEscape
public String getSearchStringEscape() This method returns the string used to escape wildcards in search strings.
Returns:
- The string used to escape wildcards in search strings.
Throws:
getStringFunctions
public String getStringFunctions() This method returns a comma separated list of string functions.
Returns:
- The list of string functions.
Throws:
getSuperTables
public ResultSet getSuperTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern)Since:Parameters:
getSuperTypes
public ResultSet getSuperTypes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern)Since:Parameters:
getSystemFunctions
public String getSystemFunctions() This method returns a comma separated list of of system functions.
Returns:
- A comma separated list of system functions.
Throws:
getTablePrivileges
public 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. This information is returned as a
ResultSet
with the following columns:
- TABLE_CAT - The catalog the table is in, which may be
null.
- TABLE_SCHEM - The schema the tables is in, which may be
null.
- TABLE_NAME - The name of the table.
- GRANTOR - The entity that granted the access.
- GRANTEE - The entity granted the access.
- PRIVILEGE - The name of the privilege granted.
- IS_GRANTABLE - "YES" if the grantee can grant the privilege to
others, "NO" if not, and
null if unknown.
Parameters:
Returns:
- A
ResultSet with all the requested privileges.
Throws:
getTableTypes
public ResultSet getTableTypes() This method returns the list of database table types as a
ResultSet with one column - TABLE_TYPE - that is the
name of the table type.
Returns:
- A
ResultSet with all the requested table types.
Throws:
getTables
public 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
ResultSet with the following columns:
- TABLE_CAT - The catalog the table is in, which may be
null.
- TABLE_SCHEM - The schema the table is in, which may be
null.
- TABLE_NAME - The name of the table.
- TABLE_TYPE - A string describing the table type. This will be one
of the values returned by the
getTableTypes() method.
- REMARKS - Comments about the table.
Parameters:
Throws:
getTimeDateFunctions
public String getTimeDateFunctions() This method returns comma separated list of time/date functions.
Returns:
- The list of time/date functions.
Throws:
getTypeInfo
public ResultSet getTypeInfo() This method returns a list of the SQL types supported by this
database. The information is returned as a
ResultSet
with the following columns:
- TYPE_NAME - The name of the data type.
- DATA_TYPE - A data type constant from
Types for this
type.
- PRECISION - The maximum precision of this type.
- LITERAL_PREFIX - Prefix value used to quote a literal, which may be
null.
- LITERAL_SUFFIX - Suffix value used to quote a literal, which may be
null.
- CREATE_PARAMS - The parameters used to create the type, which may be
null.
- NULLABLE - Whether or not this type supports NULL values. This will
be one of the constants defined in this interface
(
typeNoNulls, typeNullable, or
typeNullableUnknown).
- CASE_SENSITIVE - Whether or not the value is case sensitive.
- SEARCHABLE - Whether or not "LIKE" expressions are supported in
WHERE clauses for this type. This will be one of the constants defined
in this interface (
typePredNone, typePredChar,
typePredBasic, or typeSearchable).
- UNSIGNED_ATTRIBUTE - Is the value of this type unsigned.
- FIXED_PREC_SCALE - Whether or not this type can be used for money.
- AUTO_INCREMENT - Whether or not this type supports auto-incrementing.
- LOCAL_TYPE_NAME - A localized name for this data type.
- MINIMUM_SCALE - The minimum scale supported by this type.
- MAXIMUM_SCALE - The maximum scale supported by this type.
- SQL_DATA_TYPE - Unused.
- SQL_DATETIME_SUB - Unused.
- NUM_PREC_RADIX - The radix of this data type.
Returns:
- A
ResultSet with the list of available data types.
Throws:
getUDTs
public 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. These
are returned as a
ResultSet with the following columns:
- TYPE_CAT - The catalog name, which may be
null.
- TYPE_SCEHM - The schema name, which may be
null.
- TYPE_NAME - The user defined data type name.
- CLASS_NAME - The Java class name this type maps to.
- DATA_TYPE - A type identifier from
Types for this type.
This will be one of JAVA_OBJECT, STRUCT, or
DISTINCT.
- REMARKS - Comments about this data type.
Parameters:
Returns:
- A
ResultSet with the requested type information
Throws:
getURL
public String getURL() This method returns the URL for this database.
Returns:
- The URL string for this database, or
null if it
is not known.
Throws:
getUserName
public String getUserName() This method returns the database username for this connection.
Returns:
Throws:
getVersionColumns
public 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. It returns this information as a
ResultSet with the following columns:
- SCOPE - Unused
- COLUMN_NAME - The name of the column.
- DATA_TYPE - The SQL type of the column. This is one of the constants
defined in
Types.
- TYPE_NAME - The string name of the data type for this column.
- COLUMN_SIZE - The precision of the columns
- BUFFER_LENGTH - Unused
- DECIMAL_DIGITS - The scale of the column.
- PSEUDO_COLUMN - Whether or not the best row identifier is a
pseudo_column. This is one of the constants defined in this class
(
versionRowUnknown, versionRowNotPseudo, or
versionRowPseudo).
Parameters:
Returns:
- A
ResultSet with the version columns.
Throws:
insertsAreDetected
public boolean insertsAreDetected(int type) This method tests whether or not the specified result set type can detect
a visible insert by calling the rowUpdated method.
Parameters:
Returns:
true if the result set type can detect visible inserts
using rowUpdated, false otherwise.
Throws:
See Also:
isCatalogAtStart
public boolean isCatalogAtStart() This method tests whether a catalog name appears at the beginning of
a fully qualified table name.
Returns:
true if the catalog name appears at the beginning,
false if it appears at the end.
Throws:
isReadOnly
public boolean isReadOnly() This method tests whether or not the database is in read only mode.
Returns:
true if the database is in read only mode,
false otherwise.
Throws:
locatorsUpdateCopy
public boolean locatorsUpdateCopy()Since:
nullPlusNonNullIsNull
public boolean nullPlusNonNullIsNull() This method tests whether the concatenation of a NULL and non-NULL
value results in a NULL. This will always be true in fully JDBC compliant
drivers.
Returns:
true if concatenating NULL and a non-NULL value
returns a NULL, false otherwise.
Throws:
nullsAreSortedAtEnd
public 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.
Returns:
true if NULL's always sort to the end,
false otherwise.
Throws:
nullsAreSortedAtStart
public boolean nullsAreSortedAtStart() This method tests whether or not NULL's sort as high values.
Returns:
true if NULL's sort as high values, false
otherwise.
Throws:
nullsAreSortedHigh
public boolean nullsAreSortedHigh() This method tests whether or not NULL's sort as high values.
Returns:
true if NULL's sort as high values, false
otherwise.
Throws:
nullsAreSortedLow
public boolean nullsAreSortedLow() This method tests whether or not NULL's sort as low values.
Returns:
true if NULL's sort as low values, false
otherwise.
Throws:
othersDeletesAreVisible
public boolean othersDeletesAreVisible(int type) This method tests whether or not the specified result set type sees
deletes committed by others.
Parameters:
Returns:
true if the result set type sees other deletes,
false otherwise.
Throws:
See Also:
othersInsertsAreVisible
public boolean othersInsertsAreVisible(int type) This method tests whether or not the specified result set type sees
inserts committed by others.
Parameters:
Returns:
true if the result set type sees other inserts,
false otherwise.
Throws:
See Also:
othersUpdatesAreVisible
public boolean othersUpdatesAreVisible(int type) This method tests whether or not the specified result set type sees
updates committed by others.
Parameters:
Returns:
true if the result set type sees other updates,
false otherwise.
Throws:
See Also:
ownDeletesAreVisible
public boolean ownDeletesAreVisible(int type) This method tests whether or not the specified result set type sees its
own deletes.
Parameters:
Returns:
true if the result set type sees its own deletes,
false otherwise.
Throws:
See Also:
ownInsertsAreVisible
public boolean ownInsertsAreVisible(int type) This method tests whether or not the specified result set type sees its
own inserts.
Parameters:
Returns:
true if the result set type sees its own inserts,
false otherwise.
Throws:
See Also:
ownUpdatesAreVisible
public boolean ownUpdatesAreVisible(int type) This method tests whether or not the specified result set type sees its
own updates.
Parameters:
Returns:
true if the result set type sees its own updates,
false otherwise.
Throws:
See Also:
storesLowerCaseIdentifiers
public boolean storesLowerCaseIdentifiers() This method tests whether or not the database treats mixed case
identifiers as all lower case.
Throws:
- if the database treats all identifiers as
lower case, false otherwise.SQLException - If an error occurs.
storesLowerCaseQuotedIdentifiers
public boolean storesLowerCaseQuotedIdentifiers() This method tests whether or not the database treats mixed case
quoted identifiers as all lower case.
Throws:
- if the database treats all quoted identifiers
as lower case, false otherwise.SQLException - If an error occurs.
storesMixedCaseIdentifiers
public boolean storesMixedCaseIdentifiers() This method tests whether or not the database stores mixed case
identifers even if it treats them as case insensitive.
Returns:
true if the database stores mixed case identifiers,
false otherwise.
Throws:
storesMixedCaseQuotedIdentifiers
public boolean storesMixedCaseQuotedIdentifiers() This method tests whether or not the database stores mixed case
quoted identifers even if it treats them as case insensitive.
Returns:
true if the database stores mixed case quoted
identifiers, false otherwise.
Throws:
storesUpperCaseIdentifiers
public boolean storesUpperCaseIdentifiers() This method tests whether or not the database treats mixed case
identifiers as all upper case.
Throws:
- if the database treats all identifiers as
upper case, false otherwise.SQLException - If an error occurs.
storesUpperCaseQuotedIdentifiers
public boolean storesUpperCaseQuotedIdentifiers() This method tests whether or not the database treats mixed case
quoted identifiers as all upper case.
Throws:
- if the database treats all quoted identifiers
as upper case, false otherwise.SQLException - If an error occurs.
supportsANSI92EntryLevelSQL
public boolean supportsANSI92EntryLevelSQL() This method tests whether or not the ANSI92 entry level SQL
grammar is supported. A fully JDBC compliant drivers must return
true.
Returns:
true if the ANSI92 entry level SQL grammar is
supported, false otherwise.
Throws:
supportsANSI92FullSQL
public boolean supportsANSI92FullSQL() This method tests whether or not the ANSI92 full SQL
grammar is supported.
Returns:
true if the ANSI92 full SQL grammar is
supported, false otherwise.
Throws:
supportsANSI92IntermediateSQL
public boolean supportsANSI92IntermediateSQL() This method tests whether or not the ANSI92 intermediate SQL
grammar is supported.
Returns:
true if the ANSI92 intermediate SQL grammar is
supported, false otherwise.
Throws:
supportsAlterTableWithAddColumn
public boolean supportsAlterTableWithAddColumn() This method tests whether or not the database supports
"ALTER TABLE ADD COLUMN"
Returns:
true if column add supported, false
otherwise.
Throws:
supportsAlterTableWithDropColumn
public boolean supportsAlterTableWithDropColumn() This method tests whether or not the database supports
"ALTER TABLE DROP COLUMN"
Returns:
true if column drop supported, false
otherwise.
Throws:
supportsBatchUpdates
public boolean supportsBatchUpdates() This method tests whether or not the database supports batch updates.
Returns:
true if batch updates are supported,
false otherwise.
Throws:
supportsCatalogsInDataManipulation
public boolean supportsCatalogsInDataManipulation() This method tests whether a catalog name can appear in a data
manipulation statement.
Returns:
true if a catalog name can appear in a data
manipulation statement, false otherwise.
Throws:
supportsCatalogsInIndexDefinitions
public boolean supportsCatalogsInIndexDefinitions() This method tests whether a catalog name can appear in an index definition.
Returns:
true if a catalog name can appear in an index
definition, false otherwise.
Throws:
supportsCatalogsInPrivilegeDefinitions
public boolean supportsCatalogsInPrivilegeDefinitions() This method tests whether a catalog name can appear in privilege definitions.
Returns:
true if a catalog name can appear in privilege
definition, false otherwise.
Throws:
supportsCatalogsInProcedureCalls
public boolean supportsCatalogsInProcedureCalls() This method tests whether a catalog name can appear in a procedure
call
Returns:
true if a catalog name can appear in a procedure
call, false otherwise.
Throws:
supportsCatalogsInTableDefinitions
public boolean supportsCatalogsInTableDefinitions() This method tests whether a catalog name can appear in a table definition.
Returns:
true if a catalog name can appear in a table
definition, false otherwise.
Throws:
supportsColumnAliasing
public boolean supportsColumnAliasing() This method tests whether or not column aliasing is supported.
Returns:
true if column aliasing is supported,
false otherwise.
Throws:
supportsConvert
public boolean supportsConvert() Tests whether or not CONVERT is supported.
Returns:
true if CONVERT is supported, false
otherwise.
Throws:
supportsConvert
public boolean supportsConvert(int fromType, int toType) This method tests whether or not CONVERT can be performed between the
specified types. The types are contants from Types.
Parameters:
Returns:
true if the conversion can be performed,
false otherwise.
See Also:
supportsCoreSQLGrammar
public boolean supportsCoreSQLGrammar() This method tests whether or not the core grammer for ODBC is supported.
Returns:
true if the ODBC core grammar is supported,
false otherwise.
Throws:
supportsCorrelatedSubqueries
public boolean supportsCorrelatedSubqueries() This method test whether or not correlated subqueries are allowed. A
fully JDBC compliant driver will always return true.
Returns:
true if correlated subqueries are allowed,
false otherwise.
Throws:
supportsDataDefinitionAndDataManipulationTransactions
public boolean supportsDataDefinitionAndDataManipulationTransactions() This method tests whether or not DDL and DML statements allowed within
the same transaction.
Returns:
true if DDL and DML statements are allowed in the
same transaction, false otherwise.
Throws:
supportsDataManipulationTransactionsOnly
public boolean supportsDataManipulationTransactionsOnly() This method tests whether or not only DML statement are allowed
inside a transaction.
Returns:
true if only DML statements are allowed in
transactions, false otherwise.
Throws:
supportsDifferentTableCorrelationNames
public boolean supportsDifferentTableCorrelationNames() This method tests whether correlation names must be different from the
name of the table.
Returns:
true if the correlation name must be different from
the table name, false otherwise.
Throws:
supportsExpressionsInOrderBy
public boolean supportsExpressionsInOrderBy() This method tests whether or not expressions are allowed in an
ORDER BY lists.
Returns:
true if expressions are allowed in ORDER BY
lists, false otherwise.
Throws:
supportsExtendedSQLGrammar
public boolean supportsExtendedSQLGrammar() This method tests whether or not the extended grammer for ODBC is supported.
Returns:
true if the ODBC extended grammar is supported,
false otherwise.
Throws:
supportsFullOuterJoins
public boolean supportsFullOuterJoins() This method tests whether or not the database supports full outer joins.
Returns:
true if full outer joins are supported,
false otherwise.
Throws:
supportsGetGeneratedKeys
public boolean supportsGetGeneratedKeys()Since:
supportsGroupBy
public boolean supportsGroupBy() This method tests whether or not GROUP BY is supported.
Returns:
true if GROUP BY is supported, false
otherwise.
Throws:
supportsGroupByBeyondSelect
public 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.
Returns:
true if GROUP BY an add columns provided it includes
all columns in the select, false otherwise.
Throws:
supportsGroupByUnrelated
public boolean supportsGroupByUnrelated() This method tests whether GROUP BY on a non-selected column is
allowed.
Returns:
true if a non-selected column can be used in a
GROUP BY, false otherwise.
Throws:
supportsIntegrityEnhancementFacility
public boolean supportsIntegrityEnhancementFacility() This method tests whether or not the SQL integrity enhancement
facility is supported.
Returns:
true if the integrity enhancement facility is
supported, false otherwise.
Throws:
supportsLikeEscapeClause
public boolean supportsLikeEscapeClause() This method tests whether or not the escape character is supported in
LIKE expressions. A fully JDBC compliant driver will always return
true.
Returns:
true if escapes are supported in LIKE expressions,
false otherwise.
Throws:
supportsLimitedOuterJoins
public boolean supportsLimitedOuterJoins() This method tests whether or not the database supports limited outer joins.
Returns:
true if limited outer joins are supported,
false otherwise.
Throws:
supportsMinimumSQLGrammar
public boolean supportsMinimumSQLGrammar() This method tests whether or not the minimum grammer for ODBC is supported.
A fully JDBC compliant driver will always return true.
Returns:
true if the ODBC minimum grammar is supported,
false otherwise.
Throws:
supportsMixedCaseIdentifiers
public boolean supportsMixedCaseIdentifiers() This method tests whether or not the database supports identifiers
with mixed case.
Returns:
true if the database supports mixed case identifiers,
false otherwise.
Throws:
supportsMixedCaseQuotedIdentifiers
public boolean supportsMixedCaseQuotedIdentifiers() This method tests whether or not the database supports quoted identifiers
with mixed case.
Returns:
true if the database supports mixed case quoted
identifiers, false otherwise.
Throws:
supportsMultipleOpenResults
public boolean supportsMultipleOpenResults()Since:
supportsMultipleResultSets
public boolean supportsMultipleResultSets() This method tests whether multiple result sets for a single statement are
supported.
Returns:
true if multiple result sets are supported for a
single statement, false otherwise.
Throws:
supportsMultipleTransactions
public boolean supportsMultipleTransactions() This method test whether or not multiple transactions may be open
at once, as long as they are on different connections.
Returns:
true if multiple transactions on different
connections are supported, false otherwise.
Throws:
supportsNamedParameters
public boolean supportsNamedParameters()Since:
supportsNonNullableColumns
public boolean supportsNonNullableColumns() This method tests whether or not columns can be defined as NOT NULL. A
fully JDBC compliant driver always returns true.
Returns:
true if NOT NULL columns are supported,
false otherwise.
Throws:
supportsOpenCursorsAcrossCommit
public boolean supportsOpenCursorsAcrossCommit() This method tests whether or not the database supports cursors
remaining open across commits.
Returns:
true if cursors can remain open across commits,
false otherwise.
Throws:
supportsOpenCursorsAcrossRollback
public boolean supportsOpenCursorsAcrossRollback() This method tests whether or not the database supports cursors
remaining open across rollbacks.
Returns:
true if cursors can remain open across rollbacks,
false otherwise.
Throws:
supportsOpenStatementsAcrossCommit
public boolean supportsOpenStatementsAcrossCommit() This method tests whether or not the database supports statements
remaining open across commits.
Returns:
true if statements can remain open across commits,
false otherwise.
Throws:
supportsOpenStatementsAcrossRollback
public boolean supportsOpenStatementsAcrossRollback() This method tests whether or not the database supports statements
remaining open across rollbacks.
Returns:
true if statements can remain open across rollbacks,
false otherwise.
Throws:
supportsOrderByUnrelated
public boolean supportsOrderByUnrelated() This method tests whether or ORDER BY on a non-selected column is
allowed.
Returns:
true if a non-selected column can be used in an
ORDER BY, false otherwise.
Throws:
supportsOuterJoins
public boolean supportsOuterJoins() This method tests whether or not the database supports outer joins.
Returns:
true if outer joins are supported, false
otherwise.
Throws:
supportsPositionedDelete
public boolean supportsPositionedDelete() This method tests whether or not that database supports positioned
deletes.
Returns:
true if positioned deletes are supported,
false otherwise.
Throws:
supportsPositionedUpdate
public boolean supportsPositionedUpdate() This method tests whether or not that database supports positioned
updates.
Returns:
true if positioned updates are supported,
false otherwise.
Throws:
supportsResultSetConcurrency
public 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.
Parameters:
Returns:
true if the result set type is supported,
false otherwise.
Throws:
See Also:
supportsResultSetHoldability
public boolean supportsResultSetHoldability(int holdability)Since:Parameters:
supportsResultSetType
public boolean supportsResultSetType(int type) This method tests whether or not the datbase supports the specified
result type.
Parameters:
Returns:
true if the result set type is supported,
false otherwise.
Throws:
See Also:
supportsSavepoints
public boolean supportsSavepoints()Since:
supportsSchemasInDataManipulation
public boolean supportsSchemasInDataManipulation() This method tests whether a catalog name can appear in a data
manipulation statement.
Returns:
true if a catalog name can appear in a data
manipulation statement, false otherwise.
Throws:
supportsSchemasInIndexDefinitions
public boolean supportsSchemasInIndexDefinitions() This method tests whether a catalog name can appear in an index definition.
Returns:
true if a catalog name can appear in an index
definition, false otherwise.
Throws:
supportsSchemasInPrivilegeDefinitions
public boolean supportsSchemasInPrivilegeDefinitions() This method tests whether a catalog name can appear in privilege definitions.
Returns:
true if a catalog name can appear in privilege
definition, false otherwise.
Throws:
supportsSchemasInProcedureCalls
public boolean supportsSchemasInProcedureCalls() This method tests whether a catalog name can appear in a procedure
call
Returns:
true if a catalog name can appear in a procedure
call, false otherwise.
Throws:
supportsSchemasInTableDefinitions
public boolean supportsSchemasInTableDefinitions() This method tests whether a catalog name can appear in a table definition.
Returns:
true if a catalog name can appear in a table
definition, false otherwise.
Throws:
supportsSelectForUpdate
public boolean supportsSelectForUpdate() This method tests whether or not SELECT FOR UPDATE is supported by the
database.
Returns:
true if SELECT FOR UPDATE is supported
false otherwise.
Throws:
supportsStatementPooling
public boolean supportsStatementPooling()Since:
supportsStoredProcedures
public boolean supportsStoredProcedures() This method tests whether or not stored procedures are supported on
this database.
Returns:
true if stored procedures are supported,
false otherwise.
Throws:
supportsSubqueriesInComparisons
public boolean supportsSubqueriesInComparisons() This method tests whether or not subqueries are allowed in comparisons.
A fully JDBC compliant driver will always return true.
Returns:
true if subqueries are allowed in comparisons,
false otherwise.
Throws:
supportsSubqueriesInExists
public boolean supportsSubqueriesInExists() This method tests whether or not subqueries are allowed in exists
expressions. A fully JDBC compliant driver will always return
true.
Returns:
true if subqueries are allowed in exists
expressions, false otherwise.
Throws:
supportsSubqueriesInIns
public boolean supportsSubqueriesInIns() This method tests whether subqueries are allowed in IN statements.
A fully JDBC compliant driver will always return true.
Returns:
true if the driver supports subqueries in IN
statements, false otherwise.
Throws:
supportsSubqueriesInQuantifieds
public boolean supportsSubqueriesInQuantifieds() This method tests whether or not subqueries are allowed in quantified
expressions. A fully JDBC compliant driver will always return
true.
Returns:
true if subqueries are allowed in quantified
expressions, false otherwise.
Throws:
supportsTableCorrelationNames
public boolean supportsTableCorrelationNames() This method tests whether or not table correlation names are
supported. This will be always be true in a fully JDBC
compliant driver.
Returns:
true if table correlation names are supported,
false otherwise.
Throws:
supportsTransactionIsolationLevel
public boolean supportsTransactionIsolationLevel(int level) This method tests whether or not the database supports the specified
transaction isolation level.
Parameters:
Returns:
true if the specified transaction isolation level
is supported, false otherwise.
Throws:
supportsTransactions
public boolean supportsTransactions() This method tests whether or not the database supports transactions.
Returns:
true if the database supports transactions,
false otherwise.
Throws:
supportsUnion
public boolean supportsUnion() This method tests whether or not the UNION statement is supported.
Returns:
true if UNION is supported, false
otherwise.
Throws:
supportsUnionAll
public boolean supportsUnionAll() This method tests whether or not the UNION ALL statement is supported.
Returns:
true if UNION ALL is supported, false
otherwise.
Throws:
updatesAreDetected
public boolean updatesAreDetected(int type) This method tests whether or not the specified result set type can detect
a visible update by calling the rowUpdated method.
Parameters:
Returns:
true if the result set type can detect visible updates
using rowUpdated, false otherwise.
Throws:
See Also:
usesLocalFilePerTable
public boolean usesLocalFilePerTable() This method tests whether or not the database uses a separate file for
each table.
Returns:
true if the database uses a separate file for each
table false otherwise.
Throws:
usesLocalFiles
public boolean usesLocalFiles() This method tests whether or not the database uses local files to
store tables.
Returns:
true if the database uses local files,
false otherwise.
Throws: