Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.sql

Interface DatabaseMetaData

java.lang.Object
|
+--java.sql.DatabaseMetaData


public interface DatabaseMetaData

Field Summary

static shortattributeNoNulls

static shortattributeNullable

static shortattributeNullableUnknown

static intbestRowNotPseudo

The best row identifier is not a pseudo-column.
static intbestRowPseudo

The best row identifier is a pseudo-column.
static intbestRowSession

The best row identifier is valid to the end of the session.
static intbestRowTemporary

The best row's scope is only guaranteed to be valid so long as the row is actually being used.
static intbestRowTransaction

The best row identifier is valid to the end of the transaction.
static intbestRowUnknown

The best row may or may not be a pseudo-column.
static intcolumnNoNulls

The column does not allow NULL
static intcolumnNullable

The column does allow NULL
static intcolumnNullableUnknown

It is unknown whether or not the column allows NULL
static intimportedKeyCascade

Foreign key changes are cascaded in updates or deletes.
static intimportedKeyInitiallyDeferred

Wish I knew what this meant.
static intimportedKeyInitiallyImmediate

Wish I knew what this meant.
static intimportedKeyNoAction

If the primary key is a foreign key, it cannot be udpated or deleted.
static intimportedKeyNotDeferrable

Wish I knew what this meant.
static intimportedKeyRestrict

Column may not be updated or deleted in use as a foreign key.
static intimportedKeySetDefault

If the primary key is updated or deleted, the foreign key is set to a default value.
static intimportedKeySetNull

When primary key is updated or deleted, the foreign key is set to NULL.
static intprocedureColumnIn

The column type is input.
static intprocedureColumnInOut

The column type is input/output.
static intprocedureColumnOut

The column type is output
static intprocedureColumnResult

The column is used for storing results
static intprocedureColumnReturn

The column is used for return values.
static intprocedureColumnUnknown

The column type is unknown.
static intprocedureNoNulls

NULL values are not allowed.
static intprocedureNoResult

The procedure does not return a result.
static intprocedureNullable

NULL values are allowed.
static intprocedureNullableUnknown

It is unknown whether or not NULL values are allowed.
static intprocedureResultUnknown

It is unknown whether or not the procedure returns a result.
static intprocedureReturnsResult

The procedure returns a result.
static intsqlStateSQL99

static intsqlStateXOpen

static shorttableIndexClustered

This table index is clustered.
static shorttableIndexHashed

This table index is hashed.
static shorttableIndexOther

This table index is of another type.
static shorttableIndexStatistic

This column contains table statistics.
static inttypeNoNulls

A NULL value is not allowed for this data type.
static inttypeNullable

A NULL value is allowed for this data type.
static inttypeNullableUnknown

It is unknown whether or not NULL values are allowed for this data type.
static inttypePredBasic

All WHERE clauses except "WHERE..LIKE" style are allowed on this data type.
static inttypePredChar

Only "WHERE..LIKE" style WHERE clauses are allowed on this data type.
static inttypePredNone

Where clauses are not supported for this type.
static inttypeSearchable

Any type of WHERE clause is allowed for this data type.
static intversionColumnNotPseudo

The version column is not a pseudo-column
static intversionColumnPseudo

The version column is a pseudo-column
static intversionColumnUnknown

It is unknown whether or not the version column is a pseudo-column.

Method Summary

booleanallProceduresAreCallable()

This method tests whether or not all the procedures returned by the getProcedures method can be called by this user.
booleanallTablesAreSelectable()

This method tests whether or not all the table returned by the getTables method can be selected by this user.
booleandataDefinitionCausesTransactionCommit()

This method tests whether or not a DDL statement will cause the current transaction to be automatically committed.
booleandataDefinitionIgnoredInTransactions()

This method tests whether or not DDL statements are ignored in transactions.
booleandeletesAreDetected(int type)

This method tests whether or not the specified result set type can detect a visible delete by calling the rowUpdated method.
booleandoesMaxRowSizeIncludeBlobs()

This method tests whether or not the maximum row size includes BLOB's
java.sql.ResultSetgetAttributes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern, java.lang.String attributeNamePattern)

java.sql.ResultSetgetBestRowIdentifier(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.StringgetCatalogSeparator()

This method returns the separator between the catalog name and the table name.
java.lang.StringgetCatalogTerm()

This method returns the vendor's term for "catalog".
java.sql.ResultSetgetCatalogs()

This method returns the list of database catalogs as a ResultSet with one column - TABLE_CAT - that is the name of the catalog.
java.sql.ResultSetgetColumnPrivileges(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.ResultSetgetColumns(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.ConnectiongetConnection()

This method returns the Connection object that was used to generate the metadata in this object.
java.sql.ResultSetgetCrossReference(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.
intgetDatabaseMajorVersion()

intgetDatabaseMinorVersion()

java.lang.StringgetDatabaseProductName()

This method returns the name of the database product.
java.lang.StringgetDatabaseProductVersion()

This method returns the version of the database product.
intgetDefaultTransactionIsolation()

This method returns the default transaction isolation level of the database.
intgetDriverMajorVersion()

This method returns the major version number of the JDBC driver.
intgetDriverMinorVersion()

This method returns the minor version number of the JDBC driver.
java.lang.StringgetDriverName()

This method returns the name of the JDBC driver.
java.lang.StringgetDriverVersion()

This method returns the version of the JDBC driver.
java.sql.ResultSetgetExportedKeys(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.StringgetExtraNameCharacters()

This methods returns non-standard characters that can appear in unquoted identifiers.
java.lang.StringgetIdentifierQuoteString()

This metohd returns the quote string for SQL identifiers.
java.sql.ResultSetgetImportedKeys(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.ResultSetgetIndexInfo(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.
intgetJDBCMajorVersion()

intgetJDBCMinorVersion()

intgetMaxBinaryLiteralLength()

This method returns the number of hex characters allowed in an inline binary literal.
intgetMaxCatalogNameLength()

This method returns the maximum length of a catalog name.
intgetMaxCharLiteralLength()

This method returns the maximum length of a character literal.
intgetMaxColumnNameLength()

This method returns the maximum length of a column name.
intgetMaxColumnsInGroupBy()

This method returns the maximum number of columns in a GROUP BY statement.
intgetMaxColumnsInIndex()

This method returns the maximum number of columns in an index.
intgetMaxColumnsInOrderBy()

This method returns the maximum number of columns in an ORDER BY statement.
intgetMaxColumnsInSelect()

This method returns the maximum number of columns in a SELECT statement.
intgetMaxColumnsInTable()

This method returns the maximum number of columns in a table.
intgetMaxConnections()

This method returns the maximum number of connections this client can have to the database.
intgetMaxCursorNameLength()

This method returns the maximum length of a cursor name.
intgetMaxIndexLength()

This method returns the maximum length of an index.
intgetMaxProcedureNameLength()

This method returns the maximum length of a procedure name.
intgetMaxRowSize()

This method returns the maximum size of a row in bytes.
intgetMaxSchemaNameLength()

This method returns the maximum length of a schema name.
intgetMaxStatementLength()

This method includes the maximum length of a SQL statement.
intgetMaxStatements()

This method returns the maximum number of statements that can be active at any time.
intgetMaxTableNameLength()

This method returns the maximum length of a table name.
intgetMaxTablesInSelect()

This method returns the maximum number of tables that may be referenced in a SELECT statement.
intgetMaxUserNameLength()

This method returns the maximum length of a user name.
java.lang.StringgetNumericFunctions()

This method returns a comma separated list of math functions.
java.sql.ResultSetgetPrimaryKeys(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.ResultSetgetProcedureColumns(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.StringgetProcedureTerm()

This method returns the vendor's term for "procedure".
java.sql.ResultSetgetProcedures(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.
intgetResultSetHoldability()

java.lang.StringgetSQLKeywords()

This method returns a comma separated list of all the SQL keywords in the database that are not in SQL92.
intgetSQLStateType()

java.lang.StringgetSchemaTerm()

This method returns the vendor's term for "schema".
java.sql.ResultSetgetSchemas()

This method returns the list of database schemas as a ResultSet, with one column - TABLE_SCHEM - that is the name of the schema.
java.lang.StringgetSearchStringEscape()

This method returns the string used to escape wildcards in search strings.
java.lang.StringgetStringFunctions()

This method returns a comma separated list of string functions.
java.sql.ResultSetgetSuperTables(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String tableNamePattern)

java.sql.ResultSetgetSuperTypes(java.lang.String catalog, java.lang.String schemaPattern, java.lang.String typeNamePattern)

java.lang.StringgetSystemFunctions()

This method returns a comma separated list of of system functions.
java.sql.ResultSetgetTablePrivileges(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.ResultSetgetTableTypes()

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.
java.sql.ResultSetgetTables(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:

  1. TABLE_CAT - The catalog the table is in, which may be null.
java.lang.StringgetTimeDateFunctions()

This method returns comma separated list of time/date functions.
java.sql.ResultSetgetTypeInfo()

This method returns a list of the SQL types supported by this database.
java.sql.ResultSetgetUDTs(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.StringgetURL()

This method returns the URL for this database.
java.lang.StringgetUserName()

This method returns the database username for this connection.
java.sql.ResultSetgetVersionColumns(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.
booleaninsertsAreDetected(int type)

This method tests whether or not the specified result set type can detect a visible insert by calling the rowUpdated method.
booleanisCatalogAtStart()

This method tests whether a catalog name appears at the beginning of a fully qualified table name.
booleanisReadOnly()

This method tests whether or not the database is in read only mode.
booleanlocatorsUpdateCopy()

booleannullPlusNonNullIsNull()

This method tests whether the concatenation of a NULL and non-NULL value results in a NULL.
booleannullsAreSortedAtEnd()

This method test whether or not NULL's are sorted to the end of the list regardless of ascending or descending sort order.
booleannullsAreSortedAtStart()

This method tests whether or not NULL's sort as high values.
booleannullsAreSortedHigh()

This method tests whether or not NULL's sort as high values.
booleannullsAreSortedLow()

This method tests whether or not NULL's sort as low values.
booleanothersDeletesAreVisible(int type)

This method tests whether or not the specified result set type sees deletes committed by others.
booleanothersInsertsAreVisible(int type)

This method tests whether or not the specified result set type sees inserts committed by others.
booleanothersUpdatesAreVisible(int type)

This method tests whether or not the specified result set type sees updates committed by others.
booleanownDeletesAreVisible(int type)

This method tests whether or not the specified result set type sees its own deletes.
booleanownInsertsAreVisible(int type)

This method tests whether or not the specified result set type sees its own inserts.
booleanownUpdatesAreVisible(int type)

This method tests whether or not the specified result set type sees its own updates.
booleanstoresLowerCaseIdentifiers()

This method tests whether or not the database treats mixed case identifiers as all lower case.
booleanstoresLowerCaseQuotedIdentifiers()

This method tests whether or not the database treats mixed case quoted identifiers as all lower case.
booleanstoresMixedCaseIdentifiers()

This method tests whether or not the database stores mixed case identifers even if it treats them as case insensitive.
booleanstoresMixedCaseQuotedIdentifiers()

This method tests whether or not the database stores mixed case quoted identifers even if it treats them as case insensitive.
booleanstoresUpperCaseIdentifiers()

This method tests whether or not the database treats mixed case identifiers as all upper case.
booleanstoresUpperCaseQuotedIdentifiers()

This method tests whether or not the database treats mixed case quoted identifiers as all upper case.
booleansupportsANSI92EntryLevelSQL()

This method tests whether or not the ANSI92 entry level SQL grammar is supported.
booleansupportsANSI92FullSQL()

This method tests whether or not the ANSI92 full SQL grammar is supported.
booleansupportsANSI92IntermediateSQL()

This method tests whether or not the ANSI92 intermediate SQL grammar is supported.
booleansupportsAlterTableWithAddColumn()

This method tests whether or not the database supports "ALTER TABLE ADD COLUMN"
booleansupportsAlterTableWithDropColumn()

This method tests whether or not the database supports "ALTER TABLE DROP COLUMN"
booleansupportsBatchUpdates()

This method tests whether or not the database supports batch updates.
booleansupportsCatalogsInDataManipulation()

This method tests whether a catalog name can appear in a data manipulation statement.
booleansupportsCatalogsInIndexDefinitions()

This method tests whether a catalog name can appear in an index definition.
booleansupportsCatalogsInPrivilegeDefinitions()

This method tests whether a catalog name can appear in privilege definitions.
booleansupportsCatalogsInProcedureCalls()

This method tests whether a catalog name can appear in a procedure call
booleansupportsCatalogsInTableDefinitions()

This method tests whether a catalog name can appear in a table definition.
booleansupportsColumnAliasing()

This method tests whether or not column aliasing is supported.
booleansupportsConvert()

Tests whether or not CONVERT is supported.
booleansupportsConvert(int fromType, int toType)

This method tests whether or not CONVERT can be performed between the specified types.
booleansupportsCoreSQLGrammar()

This method tests whether or not the core grammer for ODBC is supported.
booleansupportsCorrelatedSubqueries()

This method test whether or not correlated subqueries are allowed.
booleansupportsDataDefinitionAndDataManipulationTransactions()

This method tests whether or not DDL and DML statements allowed within the same transaction.
booleansupportsDataManipulationTransactionsOnly()

This method tests whether or not only DML statement are allowed inside a transaction.
booleansupportsDifferentTableCorrelationNames()

This method tests whether correlation names must be different from the name of the table.
booleansupportsExpressionsInOrderBy()

This method tests whether or not expressions are allowed in an ORDER BY lists.
booleansupportsExtendedSQLGrammar()

This method tests whether or not the extended grammer for ODBC is supported.
booleansupportsFullOuterJoins()

This method tests whether or not the database supports full outer joins.
booleansupportsGetGeneratedKeys()

booleansupportsGroupBy()

This method tests whether or not GROUP BY is supported.
booleansupportsGroupByBeyondSelect()

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.
booleansupportsGroupByUnrelated()

This method tests whether GROUP BY on a non-selected column is allowed.
booleansupportsIntegrityEnhancementFacility()

This method tests whether or not the SQL integrity enhancement facility is supported.
booleansupportsLikeEscapeClause()

This method tests whether or not the escape character is supported in LIKE expressions.
booleansupportsLimitedOuterJoins()

This method tests whether or not the database supports limited outer joins.
booleansupportsMinimumSQLGrammar()

This method tests whether or not the minimum grammer for ODBC is supported.
booleansupportsMixedCaseIdentifiers()

This method tests whether or not the database supports identifiers with mixed case.
booleansupportsMixedCaseQuotedIdentifiers()

This method tests whether or not the database supports quoted identifiers with mixed case.
booleansupportsMultipleOpenResults()

booleansupportsMultipleResultSets()

This method tests whether multiple result sets for a single statement are supported.
booleansupportsMultipleTransactions()

This method test whether or not multiple transactions may be open at once, as long as they are on different connections.
booleansupportsNamedParameters()

booleansupportsNonNullableColumns()

This method tests whether or not columns can be defined as NOT NULL.
booleansupportsOpenCursorsAcrossCommit()

This method tests whether or not the database supports cursors remaining open across commits.
booleansupportsOpenCursorsAcrossRollback()

This method tests whether or not the database supports cursors remaining open across rollbacks.
booleansupportsOpenStatementsAcrossCommit()

This method tests whether or not the database supports statements remaining open across commits.
booleansupportsOpenStatementsAcrossRollback()

This method tests whether or not the database supports statements remaining open across rollbacks.
booleansupportsOrderByUnrelated()

This method tests whether or ORDER BY on a non-selected column is allowed.
booleansupportsOuterJoins()

This method tests whether or not the database supports outer joins.
booleansupportsPositionedDelete()

This method tests whether or not that database supports positioned deletes.
booleansupportsPositionedUpdate()

This method tests whether or not that database supports positioned updates.
booleansupportsResultSetConcurrency(int type, int concurrency)

This method tests whether the specified result set type and result set concurrency type are supported by the database.
booleansupportsResultSetHoldability(int holdability)

booleansupportsResultSetType(int type)

This method tests whether or not the datbase supports the specified result type.
booleansupportsSavepoints()

booleansupportsSchemasInDataManipulation()

This method tests whether a catalog name can appear in a data manipulation statement.
booleansupportsSchemasInIndexDefinitions()

This method tests whether a catalog name can appear in an index definition.
booleansupportsSchemasInPrivilegeDefinitions()

This method tests whether a catalog name can appear in privilege definitions.
booleansupportsSchemasInProcedureCalls()

This method tests whether a catalog name can appear in a procedure call
booleansupportsSchemasInTableDefinitions()

This method tests whether a catalog name can appear in a table definition.
booleansupportsSelectForUpdate()

This method tests whether or not SELECT FOR UPDATE is supported by the database.
booleansupportsStatementPooling()

booleansupportsStoredProcedures()

This method tests whether or not stored procedures are supported on this database.
booleansupportsSubqueriesInComparisons()

This method tests whether or not subqueries are allowed in comparisons.
booleansupportsSubqueriesInExists()

This method tests whether or not subqueries are allowed in exists expressions.
booleansupportsSubqueriesInIns()

This method tests whether subqueries are allowed in IN statements.
booleansupportsSubqueriesInQuantifieds()

This method tests whether or not subqueries are allowed in quantified expressions.
booleansupportsTableCorrelationNames()

This method tests whether or not table correlation names are supported.
booleansupportsTransactionIsolationLevel(int level)

This method tests whether or not the database supports the specified transaction isolation level.
booleansupportsTransactions()

This method tests whether or not the database supports transactions.
booleansupportsUnion()

This method tests whether or not the UNION statement is supported.
booleansupportsUnionAll()

This method tests whether or not the UNION ALL statement is supported.
booleanupdatesAreDetected(int type)

This method tests whether or not the specified result set type can detect a visible update by calling the rowUpdated method.
booleanusesLocalFilePerTable()

This method tests whether or not the database uses a separate file for each table.
booleanusesLocalFiles()

This method tests whether or not the database uses local files to store tables.

Field Details

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.


Method Details

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:

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:

Throws:


dataDefinitionCausesTransactionCommit

public boolean dataDefinitionCausesTransactionCommit()

This method tests whether or not a DDL statement will cause the current transaction to be automatically committed.

Returns:

Throws:


dataDefinitionIgnoredInTransactions

public boolean dataDefinitionIgnoredInTransactions()

This method tests whether or not DDL statements are ignored in transactions.

Returns:

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:

Throws:

See Also:


doesMaxRowSizeIncludeBlobs

public boolean doesMaxRowSizeIncludeBlobs()

This method tests whether or not the maximum row size includes BLOB's

Returns:

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:

  1. SCOPE - The scope of the results returned. This is one of the constants defined in this class (bestRowTemporary, bestRowTransaction, or bestRowSession).
  2. COLUMN_NAME - The name of the column.
  3. DATA_TYPE - The SQL type of the column. This is one of the constants defined in Types.
  4. TYPE_NAME - The string name of the data type for this column.
  5. COLUMN_SIZE - The precision of the columns
  6. BUFFER_LENGTH - Unused
  7. DECIMAL_DIGITS - The scale of the column.
  8. 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:

Throws:


getCatalogSeparator

public String getCatalogSeparator()

This method returns the separator between the catalog name and the table name.

Returns:

Throws:


getCatalogTerm

public String getCatalogTerm()

This method returns the vendor's term for "catalog".

Returns:

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:

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:

  1. TABLE_CAT - The catalog the table is in, which may be null.
  2. TABLE_SCHEM - The schema the tables is in, which may be null.
  3. TABLE_NAME - The name of the table.
  4. COLUMN_NAME - The name of the column.
  5. GRANTOR - The entity that granted the access.
  6. GRANTEE - The entity granted the access.
  7. PRIVILEGE - The name of the privilege granted.
  8. IS_GRANTABLE - "YES" if the grantee can grant the privilege to others, "NO" if not, and null if unknown.

Parameters:

Returns:

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:

  1. TABLE_CAT - The catalog the table is in, which may be null.
  2. TABLE_SCHEM - The schema the tables is in, which may be null.
  3. TABLE_NAME - The name of the table.
  4. COLUMN_NAME - The name of the column
  5. DATA_TYPE - The SQL type of the column. This is one of the constants defined in Types.
  6. TYPE_NAME - The string name of the data type for this column.
  7. COLUMN_SIZE - The size of the column.
  8. Unused
  9. NUM_PREC_RADIX - The radix of the column.
  10. NULLABLE - Whether or not the column is NULLABLE. This is one of the constants defined in this class (tableNoNulls, tableNullable, or tableNullableUnknown)
  11. REMARKS - A description of the column.
  12. COLUMN_DEF - The default value for the column, may be null.
  13. SQL_DATA_TYPE - Unused
  14. SQL_DATETIME_SUB - Unused
  15. CHAR_OCTET_LENGTH - For character columns, the maximum number of bytes in the column.
  16. ORDINAL_POSITION - The index of the column in the table.
  17. 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:

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:

  1. PKTABLE_CAT - The catalog of the table the key was imported from.
  2. PKTABLE_SCHEM - The schema of the table the key was imported from.
  3. PKTABLE_NAME - The name of the table the key was imported from.
  4. PKCOLUMN_NAME - The name of the column that was imported.
  5. FKTABLE_CAT - The foreign key catalog name.
  6. FKTABLE_SCHEM - The foreign key schema name.
  7. FKTABLE_NAME - The foreign key table name.
  8. FKCOLUMN_NAME - The foreign key column name.
  9. KEY_SEQ - The sequence number of the column within the foreign key.
  10. 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).
  11. 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)
  12. FK_NAME - The name of the foreign key.
  13. PK_NAME - The name of the primary key.
  14. DEFERRABILITY - The deferrability value. This is one of the constants defined in this table (importedKeyInitiallyDeferred, importedKeyInitiallyImmediate, or importedKeyNotDeferrable).

Parameters:

Returns:

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:

Throws:


getDefaultTransactionIsolation

public int getDefaultTransactionIsolation()

This method returns the default transaction isolation level of the database.

Returns:

Throws:

See Also:


getDriverMajorVersion

public int getDriverMajorVersion()

This method returns the major version number of the JDBC driver.

Returns:


getDriverMinorVersion

public int getDriverMinorVersion()

This method returns the minor version number of the JDBC driver.

Returns:


getDriverName

public String getDriverName()

This method returns the name of the JDBC driver.

Returns:

Throws:


getDriverVersion

public String getDriverVersion()

This method returns the version of the JDBC driver.

Returns:

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:

  1. PKTABLE_CAT - The catalog of the table the key was imported from.
  2. PKTABLE_SCHEM - The schema of the table the key was imported from.
  3. PKTABLE_NAME - The name of the table the key was imported from.
  4. PKCOLUMN_NAME - The name of the column that was imported.
  5. FKTABLE_CAT - The foreign key catalog name.
  6. FKTABLE_SCHEM - The foreign key schema name.
  7. FKTABLE_NAME - The foreign key table name.
  8. FKCOLUMN_NAME - The foreign key column name.
  9. KEY_SEQ - The sequence number of the column within the foreign key.
  10. 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).
  11. 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)
  12. FK_NAME - The name of the foreign key.
  13. PK_NAME - The name of the primary key.
  14. DEFERRABILITY - The deferrability value. This is one of the constants defined in this table (importedKeyInitiallyDeferred, importedKeyInitiallyImmediate, or importedKeyNotDeferrable).

Parameters:

Returns:

Throws:


getExtraNameCharacters

public String getExtraNameCharacters()

This methods returns non-standard characters that can appear in unquoted identifiers.

Returns:

Throws:


getIdentifierQuoteString

public String getIdentifierQuoteString()

This metohd returns the quote string for SQL identifiers.

Returns:

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:

  1. PKTABLE_CAT - The catalog of the table the key was imported from.
  2. PKTABLE_SCHEM - The schema of the table the key was imported from.
  3. PKTABLE_NAME - The name of the table the key was imported from.
  4. PKCOLUMN_NAME - The name of the column that was imported.
  5. FKTABLE_CAT - The foreign key catalog name.
  6. FKTABLE_SCHEM - The foreign key schema name.
  7. FKTABLE_NAME - The foreign key table name.
  8. FKCOLUMN_NAME - The foreign key column name.
  9. KEY_SEQ - The sequence number of the column within the foreign key.
  10. 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).
  11. 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)
  12. FK_NAME - The name of the foreign key.
  13. PK_NAME - The name of the primary key.
  14. DEFERRABILITY - The deferrability value. This is one of the constants defined in this table (importedKeyInitiallyDeferred, importedKeyInitiallyImmediate, or importedKeyNotDeferrable).

Parameters:

Returns:

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:

  1. TABLE_CAT - The catalog of the table, which may be null.
  2. TABLE_SCHEM - The schema of the table, which may be null.
  3. TABLE_NAME - The name of the table.
  4. NON_UNIQUE - Are index values non-unique?
  5. INDEX_QUALIFIER The index catalog, which may be null
  6. INDEX_NAME - The name of the index.
  7. TYPE - The type of index, which will be one of the constants defined in this interface (tableIndexStatistic, tableIndexClustered, tableIndexHashed, or tableIndexOther).
  8. ORDINAL_POSITION - The sequence number of this column in the index. This will be 0 when the index type is tableIndexStatistic.
  9. COLUMN_NAME - The name of this column in the index.
  10. ASC_OR_DESC - "A" for an ascending sort sequence, "D" for a descending sort sequence or null if a sort sequence is not supported.
  11. CARDINALITY - The number of unique rows in the index, or the number of rows in the table if the index type is tableIndexStatistic.
  12. PAGES - The number of pages used for the index, or the number of pages in the table if the index type is tableIndexStatistic.
  13. FILTER_CONDITION - The filter condition for this index, which may be null.

Parameters:

Returns:

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:

Throws:


getMaxCatalogNameLength

public int getMaxCatalogNameLength()

This method returns the maximum length of a catalog name.

Returns:

Throws:


getMaxCharLiteralLength

public int getMaxCharLiteralLength()

This method returns the maximum length of a character literal.

Returns:

Throws:


getMaxColumnNameLength

public int getMaxColumnNameLength()

This method returns the maximum length of a column name.

Returns:

Throws:


getMaxColumnsInGroupBy

public int getMaxColumnsInGroupBy()

This method returns the maximum number of columns in a GROUP BY statement.

Returns:

Throws:


getMaxColumnsInIndex

public int getMaxColumnsInIndex()

This method returns the maximum number of columns in an index.

Returns:

Throws:


getMaxColumnsInOrderBy

public int getMaxColumnsInOrderBy()

This method returns the maximum number of columns in an ORDER BY statement.

Returns:

Throws:


getMaxColumnsInSelect

public int getMaxColumnsInSelect()

This method returns the maximum number of columns in a SELECT statement.

Returns:

Throws:


getMaxColumnsInTable

public int getMaxColumnsInTable()

This method returns the maximum number of columns in a table.

Returns:

Throws:


getMaxConnections

public int getMaxConnections()

This method returns the maximum number of connections this client can have to the database.

Returns:


getMaxCursorNameLength

public int getMaxCursorNameLength()

This method returns the maximum length of a cursor name.

Returns:

Throws:


getMaxIndexLength

public int getMaxIndexLength()

This method returns the maximum length of an index.

Returns:

Throws:


getMaxProcedureNameLength

public int getMaxProcedureNameLength()

This method returns the maximum length of a procedure name.

Returns:

Throws:


getMaxRowSize

public int getMaxRowSize()

This method returns the maximum size of a row in bytes.

Returns:

Throws:


getMaxSchemaNameLength

public int getMaxSchemaNameLength()

This method returns the maximum length of a schema name.

Returns:

Throws:


getMaxStatementLength

public int getMaxStatementLength()

This method includes the maximum length of a SQL statement.

Returns:

Throws:


getMaxStatements

public int getMaxStatements()

This method returns the maximum number of statements that can be active at any time.

Returns:

Throws:


getMaxTableNameLength

public int getMaxTableNameLength()

This method returns the maximum length of a table name.

Returns:

Throws:


getMaxTablesInSelect

public int getMaxTablesInSelect()

This method returns the maximum number of tables that may be referenced in a SELECT statement.

Returns:

Throws:


getMaxUserNameLength

public int getMaxUserNameLength()

This method returns the maximum length of a user name.

Returns:

Throws:


getNumericFunctions

public String getNumericFunctions()

This method returns a comma separated list of math functions.

Returns:

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.

  1. TABLE_CAT - The catalog of the table, which may be null.
  2. TABLE_SCHEM - The schema of the table, which may be null.
  3. TABLE_NAME - The name of the table.
  4. COLUMN_NAME - The name of the column.
  5. KEY_SEQ - The sequence number of the column within the primary key.
  6. PK_NAME - The name of the primary key, which may be null.

Parameters:

Returns:

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:

  1. PROCEDURE_CAT - The catalog the procedure is in, which may be null.
  2. PROCEDURE_SCHEM - The schema the procedures is in, which may be null.
  3. PROCEDURE_NAME - The name of the procedure.
  4. COLUMN_NAME - The name of the column
  5. 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).
  6. DATA_TYPE - The SQL type of the column. This is one of the constants defined in Types.
  7. TYPE_NAME - The string name of the data type for this column.
  8. PRECISION - The precision of the column.
  9. LENGTH - The length of the column in bytes
  10. SCALE - The scale of the column.
  11. RADIX - The radix of the column.
  12. NULLABLE - Whether or not the column is NULLABLE. This is one of the constants defined in this class (procedureNoNulls, procedureNullable, or procedureNullableUnknown)
  13. REMARKS - A description of the column.

Parameters:

Throws:


getProcedureTerm

public String getProcedureTerm()

This method returns the vendor's term for "procedure".

Returns:

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:

  1. PROCEDURE_CAT - The catalog the procedure is in, which may be null.
  2. PROCEDURE_SCHEM - The schema the procedures is in, which may be null.
  3. PROCEDURE_NAME - The name of the procedure.
  4. Unused
  5. Unused
  6. Unused
  7. REMARKS - A description of the procedure
  8. 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:

Throws:


getSQLStateType

public int getSQLStateType()

Since:

getSchemaTerm

public String getSchemaTerm()

This method returns the vendor's term for "schema".

Returns:

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:

Throws:


getSearchStringEscape

public String getSearchStringEscape()

This method returns the string used to escape wildcards in search strings.

Returns:

Throws:


getStringFunctions

public String getStringFunctions()

This method returns a comma separated list of string functions.

Returns:

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:

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:

  1. TABLE_CAT - The catalog the table is in, which may be null.
  2. TABLE_SCHEM - The schema the tables is in, which may be null.
  3. TABLE_NAME - The name of the table.
  4. GRANTOR - The entity that granted the access.
  5. GRANTEE - The entity granted the access.
  6. PRIVILEGE - The name of the privilege granted.
  7. IS_GRANTABLE - "YES" if the grantee can grant the privilege to others, "NO" if not, and null if unknown.

Parameters:

Returns:

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:

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:

  1. TABLE_CAT - The catalog the table is in, which may be null.
  2. TABLE_SCHEM - The schema the table is in, which may be null.
  3. TABLE_NAME - The name of the table.
  4. TABLE_TYPE - A string describing the table type. This will be one of the values returned by the getTableTypes() method.
  5. REMARKS - Comments about the table.

Parameters:

Throws:


getTimeDateFunctions

public String getTimeDateFunctions()

This method returns comma separated list of time/date functions.

Returns:

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:

  1. TYPE_NAME - The name of the data type.
  2. DATA_TYPE - A data type constant from Types for this type.
  3. PRECISION - The maximum precision of this type.
  4. LITERAL_PREFIX - Prefix value used to quote a literal, which may be null.
  5. LITERAL_SUFFIX - Suffix value used to quote a literal, which may be null.
  6. CREATE_PARAMS - The parameters used to create the type, which may be null.
  7. NULLABLE - Whether or not this type supports NULL values. This will be one of the constants defined in this interface (typeNoNulls, typeNullable, or typeNullableUnknown).
  8. CASE_SENSITIVE - Whether or not the value is case sensitive.
  9. 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).
  10. UNSIGNED_ATTRIBUTE - Is the value of this type unsigned.
  11. FIXED_PREC_SCALE - Whether or not this type can be used for money.
  12. AUTO_INCREMENT - Whether or not this type supports auto-incrementing.
  13. LOCAL_TYPE_NAME - A localized name for this data type.
  14. MINIMUM_SCALE - The minimum scale supported by this type.
  15. MAXIMUM_SCALE - The maximum scale supported by this type.
  16. SQL_DATA_TYPE - Unused.
  17. SQL_DATETIME_SUB - Unused.
  18. NUM_PREC_RADIX - The radix of this data type.

Returns:

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:

  1. TYPE_CAT - The catalog name, which may be null.
  2. TYPE_SCEHM - The schema name, which may be null.
  3. TYPE_NAME - The user defined data type name.
  4. CLASS_NAME - The Java class name this type maps to.
  5. DATA_TYPE - A type identifier from Types for this type. This will be one of JAVA_OBJECT, STRUCT, or DISTINCT.
  6. REMARKS - Comments about this data type.

Parameters:

Returns:

Throws:


getURL

public String getURL()

This method returns the URL for this database.

Returns:

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:

  1. SCOPE - Unused
  2. COLUMN_NAME - The name of the column.
  3. DATA_TYPE - The SQL type of the column. This is one of the constants defined in Types.
  4. TYPE_NAME - The string name of the data type for this column.
  5. COLUMN_SIZE - The precision of the columns
  6. BUFFER_LENGTH - Unused
  7. DECIMAL_DIGITS - The scale of the column.
  8. 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:

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:

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:

Throws:


isReadOnly

public boolean isReadOnly()

This method tests whether or not the database is in read only mode.

Returns:

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:

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:

Throws:


nullsAreSortedAtStart

public boolean nullsAreSortedAtStart()

This method tests whether or not NULL's sort as high values.

Returns:

Throws:


nullsAreSortedHigh

public boolean nullsAreSortedHigh()

This method tests whether or not NULL's sort as high values.

Returns:

Throws:


nullsAreSortedLow

public boolean nullsAreSortedLow()

This method tests whether or not NULL's sort as low values.

Returns:

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:

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:

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:

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:

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:

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:

Throws:

See Also:


storesLowerCaseIdentifiers

public boolean storesLowerCaseIdentifiers()

This method tests whether or not the database treats mixed case identifiers as all lower case.

Throws:


storesLowerCaseQuotedIdentifiers

public boolean storesLowerCaseQuotedIdentifiers()

This method tests whether or not the database treats mixed case quoted identifiers as all lower case.

Throws:


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:

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:

Throws:


storesUpperCaseIdentifiers

public boolean storesUpperCaseIdentifiers()

This method tests whether or not the database treats mixed case identifiers as all upper case.

Throws:


storesUpperCaseQuotedIdentifiers

public boolean storesUpperCaseQuotedIdentifiers()

This method tests whether or not the database treats mixed case quoted identifiers as all upper case.

Throws:


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:

Throws:


supportsANSI92FullSQL

public boolean supportsANSI92FullSQL()

This method tests whether or not the ANSI92 full SQL grammar is supported.

Returns:

Throws:


supportsANSI92IntermediateSQL

public boolean supportsANSI92IntermediateSQL()

This method tests whether or not the ANSI92 intermediate SQL grammar is supported.

Returns:

Throws:


supportsAlterTableWithAddColumn

public boolean supportsAlterTableWithAddColumn()

This method tests whether or not the database supports "ALTER TABLE ADD COLUMN"

Returns:

Throws:


supportsAlterTableWithDropColumn

public boolean supportsAlterTableWithDropColumn()

This method tests whether or not the database supports "ALTER TABLE DROP COLUMN"

Returns:

Throws:


supportsBatchUpdates

public boolean supportsBatchUpdates()

This method tests whether or not the database supports batch updates.

Returns:

Throws:


supportsCatalogsInDataManipulation

public boolean supportsCatalogsInDataManipulation()

This method tests whether a catalog name can appear in a data manipulation statement.

Returns:

Throws:


supportsCatalogsInIndexDefinitions

public boolean supportsCatalogsInIndexDefinitions()

This method tests whether a catalog name can appear in an index definition.

Returns:

Throws:


supportsCatalogsInPrivilegeDefinitions

public boolean supportsCatalogsInPrivilegeDefinitions()

This method tests whether a catalog name can appear in privilege definitions.

Returns:

Throws:


supportsCatalogsInProcedureCalls

public boolean supportsCatalogsInProcedureCalls()

This method tests whether a catalog name can appear in a procedure call

Returns:

Throws:


supportsCatalogsInTableDefinitions

public boolean supportsCatalogsInTableDefinitions()

This method tests whether a catalog name can appear in a table definition.

Returns:

Throws:


supportsColumnAliasing

public boolean supportsColumnAliasing()

This method tests whether or not column aliasing is supported.

Returns:

Throws:


supportsConvert

public boolean supportsConvert()

Tests whether or not CONVERT is supported.

Returns:

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:

See Also:


supportsCoreSQLGrammar

public boolean supportsCoreSQLGrammar()

This method tests whether or not the core grammer for ODBC is supported.

Returns:

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:

Throws:


supportsDataDefinitionAndDataManipulationTransactions

public boolean supportsDataDefinitionAndDataManipulationTransactions()

This method tests whether or not DDL and DML statements allowed within the same transaction.

Returns:

Throws:


supportsDataManipulationTransactionsOnly

public boolean supportsDataManipulationTransactionsOnly()

This method tests whether or not only DML statement are allowed inside a transaction.

Returns:

Throws:


supportsDifferentTableCorrelationNames

public boolean supportsDifferentTableCorrelationNames()

This method tests whether correlation names must be different from the name of the table.

Returns:

Throws:


supportsExpressionsInOrderBy

public boolean supportsExpressionsInOrderBy()

This method tests whether or not expressions are allowed in an ORDER BY lists.

Returns:

Throws:


supportsExtendedSQLGrammar

public boolean supportsExtendedSQLGrammar()

This method tests whether or not the extended grammer for ODBC is supported.

Returns:

Throws:


supportsFullOuterJoins

public boolean supportsFullOuterJoins()

This method tests whether or not the database supports full outer joins.

Returns:

Throws:


supportsGetGeneratedKeys

public boolean supportsGetGeneratedKeys()

Since:

supportsGroupBy

public boolean supportsGroupBy()

This method tests whether or not GROUP BY is supported.

Returns:

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:

Throws:


supportsGroupByUnrelated

public boolean supportsGroupByUnrelated()

This method tests whether GROUP BY on a non-selected column is allowed.

Returns:

Throws:


supportsIntegrityEnhancementFacility

public boolean supportsIntegrityEnhancementFacility()

This method tests whether or not the SQL integrity enhancement facility is supported.

Returns:

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:

Throws:


supportsLimitedOuterJoins

public boolean supportsLimitedOuterJoins()

This method tests whether or not the database supports limited outer joins.

Returns:

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:

Throws:


supportsMixedCaseIdentifiers

public boolean supportsMixedCaseIdentifiers()

This method tests whether or not the database supports identifiers with mixed case.

Returns:

Throws:


supportsMixedCaseQuotedIdentifiers

public boolean supportsMixedCaseQuotedIdentifiers()

This method tests whether or not the database supports quoted identifiers with mixed case.

Returns:

Throws:


supportsMultipleOpenResults

public boolean supportsMultipleOpenResults()

Since:

supportsMultipleResultSets

public boolean supportsMultipleResultSets()

This method tests whether multiple result sets for a single statement are supported.

Returns:

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:

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:

Throws:


supportsOpenCursorsAcrossCommit

public boolean supportsOpenCursorsAcrossCommit()

This method tests whether or not the database supports cursors remaining open across commits.

Returns:

Throws:


supportsOpenCursorsAcrossRollback

public boolean supportsOpenCursorsAcrossRollback()

This method tests whether or not the database supports cursors remaining open across rollbacks.

Returns:

Throws:


supportsOpenStatementsAcrossCommit

public boolean supportsOpenStatementsAcrossCommit()

This method tests whether or not the database supports statements remaining open across commits.

Returns:

Throws:


supportsOpenStatementsAcrossRollback

public boolean supportsOpenStatementsAcrossRollback()

This method tests whether or not the database supports statements remaining open across rollbacks.

Returns:

Throws:


supportsOrderByUnrelated

public boolean supportsOrderByUnrelated()

This method tests whether or ORDER BY on a non-selected column is allowed.

Returns:

Throws:


supportsOuterJoins

public boolean supportsOuterJoins()

This method tests whether or not the database supports outer joins.

Returns:

Throws:


supportsPositionedDelete

public boolean supportsPositionedDelete()

This method tests whether or not that database supports positioned deletes.

Returns:

Throws:


supportsPositionedUpdate

public boolean supportsPositionedUpdate()

This method tests whether or not that database supports positioned updates.

Returns:

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:

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:

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:

Throws:


supportsSchemasInIndexDefinitions

public boolean supportsSchemasInIndexDefinitions()

This method tests whether a catalog name can appear in an index definition.

Returns:

Throws:


supportsSchemasInPrivilegeDefinitions

public boolean supportsSchemasInPrivilegeDefinitions()

This method tests whether a catalog name can appear in privilege definitions.

Returns:

Throws:


supportsSchemasInProcedureCalls

public boolean supportsSchemasInProcedureCalls()

This method tests whether a catalog name can appear in a procedure call

Returns:

Throws:


supportsSchemasInTableDefinitions

public boolean supportsSchemasInTableDefinitions()

This method tests whether a catalog name can appear in a table definition.

Returns:

Throws:


supportsSelectForUpdate

public boolean supportsSelectForUpdate()

This method tests whether or not SELECT FOR UPDATE is supported by the database.

Returns:

Throws:


supportsStatementPooling

public boolean supportsStatementPooling()

Since:

supportsStoredProcedures

public boolean supportsStoredProcedures()

This method tests whether or not stored procedures are supported on this database.

Returns:

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:

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:

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:

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:

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:

Throws:


supportsTransactionIsolationLevel

public boolean supportsTransactionIsolationLevel(int level)

This method tests whether or not the database supports the specified transaction isolation level.

Parameters:

Returns:

Throws:


supportsTransactions

public boolean supportsTransactions()

This method tests whether or not the database supports transactions.

Returns:

Throws:


supportsUnion

public boolean supportsUnion()

This method tests whether or not the UNION statement is supported.

Returns:

Throws:


supportsUnionAll

public boolean supportsUnionAll()

This method tests whether or not the UNION ALL statement is supported.

Returns:

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:

Throws:

See Also:


usesLocalFilePerTable

public boolean usesLocalFilePerTable()

This method tests whether or not the database uses a separate file for each table.

Returns:

Throws:


usesLocalFiles

public boolean usesLocalFiles()

This method tests whether or not the database uses local files to store tables.

Returns:

Throws: