public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaData
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, SQL_EXCEPTION, STATEMENT, trace, XA_DATA_SOURCE, XA_RESOURCE, XIDattributeNoNulls, attributeNullable, attributeNullableUnknown, bestRowNotPseudo, bestRowPseudo, bestRowSession, bestRowTemporary, bestRowTransaction, bestRowUnknown, columnNoNulls, columnNullable, columnNullableUnknown, functionColumnIn, functionColumnInOut, functionColumnOut, functionColumnResult, functionColumnUnknown, functionNoNulls, functionNoTable, functionNullable, functionNullableUnknown, functionResultUnknown, functionReturn, functionReturnsTable, importedKeyCascade, importedKeyInitiallyDeferred, importedKeyInitiallyImmediate, importedKeyNoAction, importedKeyNotDeferrable, importedKeyRestrict, importedKeySetDefault, importedKeySetNull, procedureColumnIn, procedureColumnInOut, procedureColumnOut, procedureColumnResult, procedureColumnReturn, procedureColumnUnknown, procedureNoNulls, procedureNoResult, procedureNullable, procedureNullableUnknown, procedureResultUnknown, procedureReturnsResult, sqlStateSQL, sqlStateSQL99, sqlStateXOpen, tableIndexClustered, tableIndexHashed, tableIndexOther, tableIndexStatistic, typeNoNulls, typeNullable, typeNullableUnknown, typePredBasic, typePredChar, typePredNone, typeSearchable, versionColumnNotPseudo, versionColumnPseudo, versionColumnUnknown| Modifier and Type | Method and Description |
|---|---|
boolean |
allProceduresAreCallable()
Checks if all procedures callable.
|
boolean |
allTablesAreSelectable()
Checks if it possible to query all tables returned by getTables.
|
boolean |
autoCommitFailureClosesAllResultSets()
Returns whether an exception while auto commit is on closes all result sets.
|
boolean |
dataDefinitionCausesTransactionCommit()
Returns whether CREATE/DROP commit an open transaction.
|
boolean |
dataDefinitionIgnoredInTransactions()
Returns whether CREATE/DROP do not affect transactions.
|
boolean |
deletesAreDetected(int type)
Returns whether deletes are detected.
|
boolean |
doesMaxRowSizeIncludeBlobs()
Returns whether the maximum row size includes blobs.
|
ResultSet |
getAttributes(String catalog,
String schemaPattern,
String typeNamePattern,
String attributeNamePattern)
[Not supported]
|
ResultSet |
getBestRowIdentifier(String catalogPattern,
String schemaPattern,
String tableName,
int scope,
boolean nullable)
Gets the list of columns that best identifier a row in a table.
|
ResultSet |
getCatalogs()
Gets the list of catalogs.
|
String |
getCatalogSeparator()
Returns the catalog separator.
|
String |
getCatalogTerm()
Returns the term for "catalog".
|
ResultSet |
getClientInfoProperties()
[Not supported] Returns the client info properties.
|
ResultSet |
getColumnPrivileges(String catalogPattern,
String schemaPattern,
String table,
String columnNamePattern)
Gets the list of column privileges.
|
ResultSet |
getColumns(String catalogPattern,
String schemaPattern,
String tableNamePattern,
String columnNamePattern)
Gets the list of columns.
|
Connection |
getConnection()
Returns the connection that created this object.
|
ResultSet |
getCrossReference(String primaryCatalogPattern,
String primarySchemaPattern,
String primaryTable,
String foreignCatalogPattern,
String foreignSchemaPattern,
String foreignTable)
Gets the list of foreign key columns that references a table, as well as
the list of primary key columns that are references by a table.
|
int |
getDatabaseMajorVersion()
Gets the major version of the database.
|
int |
getDatabaseMinorVersion()
Gets the minor version of the database.
|
String |
getDatabaseProductName()
Gets the database product name.
|
String |
getDatabaseProductVersion()
Gets the product version of the database.
|
int |
getDefaultTransactionIsolation()
Returns the default transaction isolation level.
|
int |
getDriverMajorVersion()
Returns the major version of this driver.
|
int |
getDriverMinorVersion()
Returns the minor version of this driver.
|
String |
getDriverName()
Gets the name of the JDBC driver.
|
String |
getDriverVersion()
Gets the version number of the driver.
|
ResultSet |
getExportedKeys(String catalogPattern,
String schemaPattern,
String tableName)
Gets the list of foreign key columns that reference a table.
|
String |
getExtraNameCharacters()
Returns the characters that are allowed for identifiers in addiction to
A-Z, a-z, 0-9 and '_'.
|
String |
getIdentifierQuoteString()
Returns the string used to quote identifiers.
|
ResultSet |
getImportedKeys(String catalogPattern,
String schemaPattern,
String tableName)
Gets the list of primary key columns that are referenced by a table.
|
ResultSet |
getIndexInfo(String catalogPattern,
String schemaPattern,
String tableName,
boolean unique,
boolean approximate)
Gets the list of indexes for this database.
|
int |
getJDBCMajorVersion()
Gets the major version of the supported JDBC API.
|
int |
getJDBCMinorVersion()
Gets the minor version of the supported JDBC API.
|
int |
getMaxBinaryLiteralLength()
Returns the maximum length for hex values (characters).
|
int |
getMaxCatalogNameLength()
Returns the maximum length for a catalog name.
|
int |
getMaxCharLiteralLength()
Returns the maximum length for literals.
|
int |
getMaxColumnNameLength()
Returns the maximum length for column names.
|
int |
getMaxColumnsInGroupBy()
Returns the maximum number of columns in GROUP BY.
|
int |
getMaxColumnsInIndex()
Returns the maximum number of columns in CREATE INDEX.
|
int |
getMaxColumnsInOrderBy()
Returns the maximum number of columns in ORDER BY.
|
int |
getMaxColumnsInSelect()
Returns the maximum number of columns in SELECT.
|
int |
getMaxColumnsInTable()
Returns the maximum number of columns in CREATE TABLE.
|
int |
getMaxConnections()
Returns the maximum number of open connection.
|
int |
getMaxCursorNameLength()
Returns the maximum length for a cursor name.
|
int |
getMaxIndexLength()
Returns the maximum length for an index (in bytes).
|
int |
getMaxProcedureNameLength()
Returns the maximum length for a procedure name.
|
int |
getMaxRowSize()
Returns the maximum size of a row (in bytes).
|
int |
getMaxSchemaNameLength()
Returns the maximum length for a schema name.
|
int |
getMaxStatementLength()
Returns the maximum length of a statement.
|
int |
getMaxStatements()
Returns the maximum number of open statements.
|
int |
getMaxTableNameLength()
Returns the maximum length for a table name.
|
int |
getMaxTablesInSelect()
Returns the maximum number of tables in a SELECT.
|
int |
getMaxUserNameLength()
Returns the maximum length for a user name.
|
String |
getNumericFunctions()
Returns the list of numeric functions supported by this database.
|
ResultSet |
getPrimaryKeys(String catalogPattern,
String schemaPattern,
String tableName)
Gets the primary key columns for a table.
|
ResultSet |
getProcedureColumns(String catalogPattern,
String schemaPattern,
String procedureNamePattern,
String columnNamePattern)
Gets the list of procedure columns.
|
ResultSet |
getProcedures(String catalogPattern,
String schemaPattern,
String procedureNamePattern)
Gets the list of procedures.
|
String |
getProcedureTerm()
Returns the term for "procedure".
|
int |
getResultSetHoldability()
Gets the result set holdability.
|
ResultSet |
getSchemas()
Gets the list of schemas.
|
String |
getSchemaTerm()
Returns the term for "schema".
|
String |
getSearchStringEscape()
Returns the default escape character for DatabaseMetaData search
patterns.
|
String |
getSQLKeywords()
Gets the comma-separated list of all SQL keywords that are not supported
as table/column/index name, in addition to the SQL-92 keywords.
|
int |
getSQLStateType()
Gets the SQL State type.
|
String |
getStringFunctions()
Returns the list of string functions supported by this database.
|
ResultSet |
getSuperTables(String catalog,
String schemaPattern,
String tableNamePattern)
Get the list of super tables of a table.
|
ResultSet |
getSuperTypes(String catalog,
String schemaPattern,
String typeNamePattern)
[Not supported]
|
String |
getSystemFunctions()
Returns the list of system functions supported by this database.
|
ResultSet |
getTablePrivileges(String catalogPattern,
String schemaPattern,
String tableNamePattern)
Gets the list of table privileges.
|
ResultSet |
getTables(String catalogPattern,
String schemaPattern,
String tableNamePattern,
String[] types)
Gets the list of tables in the database.
|
ResultSet |
getTableTypes()
Gets the list of table types.
|
String |
getTimeDateFunctions()
Returns the list of date and time functions supported by this database.
|
ResultSet |
getTypeInfo()
Gets the list of data types.
|
ResultSet |
getUDTs(String catalog,
String schemaPattern,
String typeNamePattern,
int[] types)
Gets the list of user-defined data types.
|
String |
getURL()
Returns the database URL for this connection.
|
String |
getUserName()
Returns the user name as passed to DriverManager.getConnection(url, user,
password).
|
ResultSet |
getVersionColumns(String catalog,
String schema,
String tableName)
Get the list of columns that are update when any value is updated.
|
boolean |
insertsAreDetected(int type)
Returns whether inserts are detected.
|
boolean |
isCatalogAtStart()
Returns whether the catalog is at the beginning.
|
boolean |
isReadOnly()
Returns the same as Connection.isReadOnly().
|
boolean |
locatorsUpdateCopy()
Does the database make a copy before updating.
|
boolean |
nullPlusNonNullIsNull()
Returns whether NULL+1 is NULL or not.
|
boolean |
nullsAreSortedAtEnd()
Checks if NULL is sorted at the end (no matter if ASC or DESC is used).
|
boolean |
nullsAreSortedAtStart()
Checks if NULL is sorted at the beginning (no matter if ASC or DESC is
used).
|
boolean |
nullsAreSortedHigh()
Checks if NULL is sorted high (bigger than anything that is not null).
|
boolean |
nullsAreSortedLow()
Checks if NULL is sorted low (smaller than anything that is not null).
|
boolean |
othersDeletesAreVisible(int type)
Returns whether other deletes are visible.
|
boolean |
othersInsertsAreVisible(int type)
Returns whether other inserts are visible.
|
boolean |
othersUpdatesAreVisible(int type)
Returns whether other updates are visible.
|
boolean |
ownDeletesAreVisible(int type)
Returns whether own deletes are visible.
|
boolean |
ownInsertsAreVisible(int type)
Returns whether own inserts are visible.
|
boolean |
ownUpdatesAreVisible(int type)
Returns whether own updates are visible.
|
boolean |
storesLowerCaseIdentifiers()
Checks if for CREATE TABLE Test(ID INT), getTables returns test as the
table name.
|
boolean |
storesLowerCaseQuotedIdentifiers()
Checks if for CREATE TABLE "Test"(ID INT), getTables returns test as the
table name.
|
boolean |
storesMixedCaseIdentifiers()
Checks if for CREATE TABLE Test(ID INT), getTables returns Test as the
table name.
|
boolean |
storesMixedCaseQuotedIdentifiers()
Checks if for CREATE TABLE "Test"(ID INT), getTables returns Test as the
table name.
|
boolean |
storesUpperCaseIdentifiers()
Checks if for CREATE TABLE Test(ID INT), getTables returns TEST as the
table name.
|
boolean |
storesUpperCaseQuotedIdentifiers()
Checks if for CREATE TABLE "Test"(ID INT), getTables returns TEST as the
table name.
|
boolean |
supportsAlterTableWithAddColumn()
Returns whether alter table with add column is supported.
|
boolean |
supportsAlterTableWithDropColumn()
Returns whether alter table with drop column is supported.
|
boolean |
supportsANSI92EntryLevelSQL()
Returns whether SQL-92 entry level grammar is supported.
|
boolean |
supportsANSI92FullSQL()
Returns whether SQL-92 full level grammar is supported.
|
boolean |
supportsANSI92IntermediateSQL()
Returns whether SQL-92 intermediate level grammar is supported.
|
boolean |
supportsBatchUpdates()
Returns whether batch updates are supported.
|
boolean |
supportsCatalogsInDataManipulation()
Returns whether the catalog name in INSERT, UPDATE, DELETE is supported.
|
boolean |
supportsCatalogsInIndexDefinitions()
Returns whether the catalog name in CREATE INDEX is supported.
|
boolean |
supportsCatalogsInPrivilegeDefinitions()
Returns whether the catalog name in GRANT is supported.
|
boolean |
supportsCatalogsInProcedureCalls()
Returns whether the catalog name in procedure calls is supported.
|
boolean |
supportsCatalogsInTableDefinitions()
Returns whether the catalog name in CREATE TABLE is supported.
|
boolean |
supportsColumnAliasing()
Returns whether column aliasing is supported.
|
boolean |
supportsConvert()
Returns whether CONVERT is supported.
|
boolean |
supportsConvert(int fromType,
int toType)
Returns whether CONVERT is supported for one datatype to another.
|
boolean |
supportsCoreSQLGrammar()
Returns whether ODBC Core SQL grammar is supported.
|
boolean |
supportsCorrelatedSubqueries()
Returns whether correlated subqueries are supported.
|
boolean |
supportsDataDefinitionAndDataManipulationTransactions()
Returns whether data manipulation and CREATE/DROP is supported in
transactions.
|
boolean |
supportsDataManipulationTransactionsOnly()
Returns whether only data manipulations are supported in transactions.
|
boolean |
supportsDifferentTableCorrelationNames()
Returns whether table correlation names (table alias) are restricted to
be different than table names.
|
boolean |
supportsExpressionsInOrderBy()
Returns whether expression in ORDER BY are supported.
|
boolean |
supportsExtendedSQLGrammar()
Returns whether ODBC Extended SQL grammar is supported.
|
boolean |
supportsFullOuterJoins()
Returns whether full outer joins are supported.
|
boolean |
supportsGetGeneratedKeys()
Does the database support getGeneratedKeys.
|
boolean |
supportsGroupBy()
Returns whether GROUP BY is supported.
|
boolean |
supportsGroupByBeyondSelect()
Checks whether a GROUP BY clause can use columns that are not in the
SELECT clause, provided that it specifies all the columns in the SELECT
clause.
|
boolean |
supportsGroupByUnrelated()
Returns whether GROUP BY is supported if the column is not in the SELECT
list.
|
boolean |
supportsIntegrityEnhancementFacility()
Returns whether referential integrity is supported.
|
boolean |
supportsLikeEscapeClause()
Returns whether LIKE...
|
boolean |
supportsLimitedOuterJoins()
Returns whether limited outer joins are supported.
|
boolean |
supportsMinimumSQLGrammar()
Returns whether ODBC Minimum SQL grammar is supported.
|
boolean |
supportsMixedCaseIdentifiers()
Checks if for CREATE TABLE Test(ID INT), getTables returns Test as the
table name.
|
boolean |
supportsMixedCaseQuotedIdentifiers()
Checks if a table created with CREATE TABLE "Test"(ID INT) is a different
table than a table created with CREATE TABLE TEST(ID INT).
|
boolean |
supportsMultipleOpenResults()
Does the database support multiple open result sets.
|
boolean |
supportsMultipleResultSets()
Returns whether multiple result sets are supported.
|
boolean |
supportsMultipleTransactions()
Returns whether multiple transactions (on different connections) are
supported.
|
boolean |
supportsNamedParameters()
Does the database support named parameters.
|
boolean |
supportsNonNullableColumns()
Returns whether columns with NOT NULL are supported.
|
boolean |
supportsOpenCursorsAcrossCommit()
Returns whether open result sets across commits are supported.
|
boolean |
supportsOpenCursorsAcrossRollback()
Returns whether open result sets across rollback are supported.
|
boolean |
supportsOpenStatementsAcrossCommit()
Returns whether open statements across commit are supported.
|
boolean |
supportsOpenStatementsAcrossRollback()
Returns whether open statements across rollback are supported.
|
boolean |
supportsOrderByUnrelated()
Returns whether ORDER BY is supported if the column is not in the SELECT
list.
|
boolean |
supportsOuterJoins()
Returns whether outer joins are supported.
|
boolean |
supportsPositionedDelete()
Returns whether positioned deletes are supported.
|
boolean |
supportsPositionedUpdate()
Returns whether positioned updates are supported.
|
boolean |
supportsResultSetConcurrency(int type,
int concurrency)
Returns whether a specific result set concurrency is supported.
|
boolean |
supportsResultSetHoldability(int holdability)
Does this database supports a result set holdability.
|
boolean |
supportsResultSetType(int type)
Returns whether a specific result set type is supported.
|
boolean |
supportsSavepoints()
Does the database support savepoints.
|
boolean |
supportsSchemasInDataManipulation()
Returns whether the schema name in INSERT, UPDATE, DELETE is supported.
|
boolean |
supportsSchemasInIndexDefinitions()
Returns whether the schema name in CREATE INDEX is supported.
|
boolean |
supportsSchemasInPrivilegeDefinitions()
Returns whether the schema name in GRANT is supported.
|
boolean |
supportsSchemasInProcedureCalls()
Returns whether the schema name in procedure calls is supported.
|
boolean |
supportsSchemasInTableDefinitions()
Returns whether the schema name in CREATE TABLE is supported.
|
boolean |
supportsSelectForUpdate()
Returns whether SELECT ...
|
boolean |
supportsStatementPooling()
Does the database support statement pooling.
|
boolean |
supportsStoredFunctionsUsingCallSyntax()
Returns whether the database supports calling functions using the call syntax.
|
boolean |
supportsStoredProcedures()
Returns whether stored procedures are supported.
|
boolean |
supportsSubqueriesInComparisons()
Returns whether subqueries (SELECT) in comparisons are supported.
|
boolean |
supportsSubqueriesInExists()
Returns whether SELECT in EXISTS is supported.
|
boolean |
supportsSubqueriesInIns()
Returns whether IN(SELECT...) is supported.
|
boolean |
supportsSubqueriesInQuantifieds()
Returns whether subqueries in quantified expression are supported.
|
boolean |
supportsTableCorrelationNames()
Returns whether table correlation names (table alias) are supported.
|
boolean |
supportsTransactionIsolationLevel(int level)
Returns whether a specific transaction isolation level is supported.
|
boolean |
supportsTransactions()
Returns whether transactions are supported.
|
boolean |
supportsUnion()
Returns whether UNION SELECT is supported.
|
boolean |
supportsUnionAll()
Returns whether UNION ALL SELECT is supported.
|
String |
toString()
INTERNAL
|
boolean |
updatesAreDetected(int type)
Returns whether updates are detected.
|
boolean |
usesLocalFilePerTable()
Checks if this database use one file per table.
|
boolean |
usesLocalFiles()
Checks if this database store data in local files.
|
debugCode, debugCodeAssign, debugCodeCall, debugCodeCall, debugCodeCall, getNextId, getTrace, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupportedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgeneratedKeyAlwaysReturned, getFunctionColumns, getFunctions, getPseudoColumns, getRowIdLifetime, getSchemasisWrapperFor, unwrappublic int getDriverMajorVersion()
getDriverMajorVersion in interface DatabaseMetaDatapublic int getDriverMinorVersion()
getDriverMinorVersion in interface DatabaseMetaDatapublic String getDatabaseProductName()
getDatabaseProductName in interface DatabaseMetaDatapublic String getDatabaseProductVersion()
getDatabaseProductVersion in interface DatabaseMetaDatapublic String getDriverName()
getDriverName in interface DatabaseMetaDatapublic String getDriverVersion()
getDriverVersion in interface DatabaseMetaDatapublic ResultSet getTables(String catalogPattern, String schemaPattern, String tableNamePattern, String[] types) throws SQLException
getTables in interface DatabaseMetaDatacatalogPattern - null (to get all objects) or the catalog nameschemaPattern - null (to get all objects) or a schema name
(uppercase for unquoted names)tableNamePattern - null (to get all objects) or a table name
(uppercase for unquoted names)types - null or a list of table typesSQLException - if the connection is closedpublic ResultSet getColumns(String catalogPattern, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
getColumns in interface DatabaseMetaDatacatalogPattern - null (to get all objects) or the catalog nameschemaPattern - null (to get all objects) or a schema name
(uppercase for unquoted names)tableNamePattern - null (to get all objects) or a table name
(uppercase for unquoted names)columnNamePattern - null (to get all objects) or a column name
(uppercase for unquoted names)SQLException - if the connection is closedpublic ResultSet getIndexInfo(String catalogPattern, String schemaPattern, String tableName, boolean unique, boolean approximate) throws SQLException
getIndexInfo in interface DatabaseMetaDatacatalogPattern - null or the catalog nameschemaPattern - null (to get all objects) or a schema name
(uppercase for unquoted names)tableName - table name (must be specified)unique - only unique indexesapproximate - is ignoredSQLException - if the connection is closedpublic ResultSet getPrimaryKeys(String catalogPattern, String schemaPattern, String tableName) throws SQLException
getPrimaryKeys in interface DatabaseMetaDatacatalogPattern - null or the catalog nameschemaPattern - null (to get all objects) or a schema name
(uppercase for unquoted names)tableName - table name (must be specified)SQLException - if the connection is closedpublic boolean allProceduresAreCallable()
allProceduresAreCallable in interface DatabaseMetaDatapublic boolean allTablesAreSelectable()
allTablesAreSelectable in interface DatabaseMetaDatapublic String getURL() throws SQLException
getURL in interface DatabaseMetaDataSQLExceptionpublic String getUserName() throws SQLException
getUserName in interface DatabaseMetaDataSQLExceptionpublic boolean isReadOnly()
throws SQLException
isReadOnly in interface DatabaseMetaDataSQLExceptionpublic boolean nullsAreSortedHigh()
nullsAreSortedHigh in interface DatabaseMetaDatapublic boolean nullsAreSortedLow()
nullsAreSortedLow in interface DatabaseMetaDatapublic boolean nullsAreSortedAtStart()
nullsAreSortedAtStart in interface DatabaseMetaDatapublic boolean nullsAreSortedAtEnd()
nullsAreSortedAtEnd in interface DatabaseMetaDatapublic Connection getConnection()
getConnection in interface DatabaseMetaDatapublic ResultSet getProcedures(String catalogPattern, String schemaPattern, String procedureNamePattern) throws SQLException
getProcedures in interface DatabaseMetaDatacatalogPattern - null or the catalog nameschemaPattern - null (to get all objects) or a schema name
(uppercase for unquoted names)procedureNamePattern - the procedure name patternSQLException - if the connection is closedpublic ResultSet getProcedureColumns(String catalogPattern, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException
getProcedureColumns in interface DatabaseMetaDatacatalogPattern - null or the catalog nameschemaPattern - null (to get all objects) or a schema name
(uppercase for unquoted names)procedureNamePattern - the procedure name patterncolumnNamePattern - the procedure name patternSQLException - if the connection is closedpublic ResultSet getSchemas() throws SQLException
getSchemas in interface DatabaseMetaDataSQLException - if the connection is closedpublic ResultSet getCatalogs() throws SQLException
getCatalogs in interface DatabaseMetaDataSQLException - if the connection is closedpublic ResultSet getTableTypes() throws SQLException
getTableTypes in interface DatabaseMetaDataSQLException - if the connection is closedpublic ResultSet getColumnPrivileges(String catalogPattern, String schemaPattern, String table, String columnNamePattern) throws SQLException
getColumnPrivileges in interface DatabaseMetaDatacatalogPattern - null (to get all objects) or the catalog nameschemaPattern - null (to get all objects) or a schema name (uppercase for
unquoted names)table - a table name (uppercase for unquoted names)columnNamePattern - null (to get all objects) or a column name
(uppercase for unquoted names)SQLException - if the connection is closedpublic ResultSet getTablePrivileges(String catalogPattern, String schemaPattern, String tableNamePattern) throws SQLException
getTablePrivileges in interface DatabaseMetaDatacatalogPattern - null (to get all objects) or the catalog nameschemaPattern - null (to get all objects) or a schema name
(uppercase for unquoted names)tableNamePattern - null (to get all objects) or a table name
(uppercase for unquoted names)SQLException - if the connection is closedpublic ResultSet getBestRowIdentifier(String catalogPattern, String schemaPattern, String tableName, int scope, boolean nullable) throws SQLException
getBestRowIdentifier in interface DatabaseMetaDatacatalogPattern - null (to get all objects) or the catalog nameschemaPattern - null (to get all objects) or a schema name
(uppercase for unquoted names)tableName - table name (must be specified)scope - ignorednullable - ignoredSQLException - if the connection is closedpublic ResultSet getVersionColumns(String catalog, String schema, String tableName) throws SQLException
getVersionColumns in interface DatabaseMetaDatacatalog - null (to get all objects) or the catalog nameschema - null (to get all objects) or a schema nametableName - table name (must be specified)SQLException - if the connection is closedpublic ResultSet getImportedKeys(String catalogPattern, String schemaPattern, String tableName) throws SQLException
getImportedKeys in interface DatabaseMetaDatacatalogPattern - null (to get all objects) or the catalog nameschemaPattern - the schema name of the foreign tabletableName - the name of the foreign tableSQLException - if the connection is closedpublic ResultSet getExportedKeys(String catalogPattern, String schemaPattern, String tableName) throws SQLException
getExportedKeys in interface DatabaseMetaDatacatalogPattern - null or the catalog nameschemaPattern - the schema name of the primary tabletableName - the name of the primary tableSQLException - if the connection is closedpublic ResultSet getCrossReference(String primaryCatalogPattern, String primarySchemaPattern, String primaryTable, String foreignCatalogPattern, String foreignSchemaPattern, String foreignTable) throws SQLException
getCrossReference in interface DatabaseMetaDataprimaryCatalogPattern - null or the catalog nameprimarySchemaPattern - the schema name of the primary table
(optional)primaryTable - the name of the primary table (must be specified)foreignCatalogPattern - null or the catalog nameforeignSchemaPattern - the schema name of the foreign table
(optional)foreignTable - the name of the foreign table (must be specified)SQLException - if the connection is closedpublic ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException
getUDTs in interface DatabaseMetaDatacatalog - ignoredschemaPattern - ignoredtypeNamePattern - ignoredtypes - ignoredSQLException - if the connection is closedpublic ResultSet getTypeInfo() throws SQLException
getTypeInfo in interface DatabaseMetaDataSQLException - if the connection is closedpublic boolean usesLocalFiles()
usesLocalFiles in interface DatabaseMetaDatapublic boolean usesLocalFilePerTable()
usesLocalFilePerTable in interface DatabaseMetaDatapublic String getIdentifierQuoteString()
getIdentifierQuoteString in interface DatabaseMetaDatapublic String getSQLKeywords()
LIMIT,MINUS,ROWNUM,SYSDATE,SYSTIME,SYSTIMESTAMP,TODAYThe complete list of keywords (including SQL-92 keywords) is:
CROSS, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, DISTINCT, EXCEPT, EXISTS, FALSE, FOR, FROM, FULL, GROUP, HAVING, INNER, INTERSECT, IS, JOIN, LIKE, LIMIT, MINUS, NATURAL, NOT, NULL, ON, ORDER, PRIMARY, ROWNUM, SELECT, SYSDATE, SYSTIME, SYSTIMESTAMP, TODAY, TRUE, UNION, UNIQUE, WHERE
getSQLKeywords in interface DatabaseMetaDatapublic String getNumericFunctions() throws SQLException
getNumericFunctions in interface DatabaseMetaDataSQLExceptionpublic String getStringFunctions() throws SQLException
getStringFunctions in interface DatabaseMetaDataSQLExceptionpublic String getSystemFunctions() throws SQLException
getSystemFunctions in interface DatabaseMetaDataSQLExceptionpublic String getTimeDateFunctions() throws SQLException
getTimeDateFunctions in interface DatabaseMetaDataSQLExceptionpublic String getSearchStringEscape()
getSearchStringEscape in interface DatabaseMetaDatapublic String getExtraNameCharacters()
getExtraNameCharacters in interface DatabaseMetaDatapublic boolean supportsAlterTableWithAddColumn()
supportsAlterTableWithAddColumn in interface DatabaseMetaDatapublic boolean supportsAlterTableWithDropColumn()
supportsAlterTableWithDropColumn in interface DatabaseMetaDatapublic boolean supportsColumnAliasing()
supportsColumnAliasing in interface DatabaseMetaDatapublic boolean nullPlusNonNullIsNull()
nullPlusNonNullIsNull in interface DatabaseMetaDatapublic boolean supportsConvert()
supportsConvert in interface DatabaseMetaDatapublic boolean supportsConvert(int fromType,
int toType)
supportsConvert in interface DatabaseMetaDatafromType - the source SQL typetoType - the target SQL typepublic boolean supportsTableCorrelationNames()
supportsTableCorrelationNames in interface DatabaseMetaDatapublic boolean supportsDifferentTableCorrelationNames()
supportsDifferentTableCorrelationNames in interface DatabaseMetaDatapublic boolean supportsExpressionsInOrderBy()
supportsExpressionsInOrderBy in interface DatabaseMetaDatapublic boolean supportsOrderByUnrelated()
supportsOrderByUnrelated in interface DatabaseMetaDatapublic boolean supportsGroupBy()
supportsGroupBy in interface DatabaseMetaDatapublic boolean supportsGroupByUnrelated()
supportsGroupByUnrelated in interface DatabaseMetaDatapublic boolean supportsGroupByBeyondSelect()
supportsGroupByBeyondSelect in interface DatabaseMetaDatapublic boolean supportsLikeEscapeClause()
supportsLikeEscapeClause in interface DatabaseMetaDatapublic boolean supportsMultipleResultSets()
supportsMultipleResultSets in interface DatabaseMetaDatapublic boolean supportsMultipleTransactions()
supportsMultipleTransactions in interface DatabaseMetaDatapublic boolean supportsNonNullableColumns()
supportsNonNullableColumns in interface DatabaseMetaDatapublic boolean supportsMinimumSQLGrammar()
supportsMinimumSQLGrammar in interface DatabaseMetaDatapublic boolean supportsCoreSQLGrammar()
supportsCoreSQLGrammar in interface DatabaseMetaDatapublic boolean supportsExtendedSQLGrammar()
supportsExtendedSQLGrammar in interface DatabaseMetaDatapublic boolean supportsANSI92EntryLevelSQL()
supportsANSI92EntryLevelSQL in interface DatabaseMetaDatapublic boolean supportsANSI92IntermediateSQL()
supportsANSI92IntermediateSQL in interface DatabaseMetaDatapublic boolean supportsANSI92FullSQL()
supportsANSI92FullSQL in interface DatabaseMetaDatapublic boolean supportsIntegrityEnhancementFacility()
supportsIntegrityEnhancementFacility in interface DatabaseMetaDatapublic boolean supportsOuterJoins()
supportsOuterJoins in interface DatabaseMetaDatapublic boolean supportsFullOuterJoins()
supportsFullOuterJoins in interface DatabaseMetaDatapublic boolean supportsLimitedOuterJoins()
supportsLimitedOuterJoins in interface DatabaseMetaDatapublic String getSchemaTerm()
getSchemaTerm in interface DatabaseMetaDatapublic String getProcedureTerm()
getProcedureTerm in interface DatabaseMetaDatapublic String getCatalogTerm()
getCatalogTerm in interface DatabaseMetaDatapublic boolean isCatalogAtStart()
isCatalogAtStart in interface DatabaseMetaDatapublic String getCatalogSeparator()
getCatalogSeparator in interface DatabaseMetaDatapublic boolean supportsSchemasInDataManipulation()
supportsSchemasInDataManipulation in interface DatabaseMetaDatapublic boolean supportsSchemasInProcedureCalls()
supportsSchemasInProcedureCalls in interface DatabaseMetaDatapublic boolean supportsSchemasInTableDefinitions()
supportsSchemasInTableDefinitions in interface DatabaseMetaDatapublic boolean supportsSchemasInIndexDefinitions()
supportsSchemasInIndexDefinitions in interface DatabaseMetaDatapublic boolean supportsSchemasInPrivilegeDefinitions()
supportsSchemasInPrivilegeDefinitions in interface DatabaseMetaDatapublic boolean supportsCatalogsInDataManipulation()
supportsCatalogsInDataManipulation in interface DatabaseMetaDatapublic boolean supportsCatalogsInProcedureCalls()
supportsCatalogsInProcedureCalls in interface DatabaseMetaDatapublic boolean supportsCatalogsInTableDefinitions()
supportsCatalogsInTableDefinitions in interface DatabaseMetaDatapublic boolean supportsCatalogsInIndexDefinitions()
supportsCatalogsInIndexDefinitions in interface DatabaseMetaDatapublic boolean supportsCatalogsInPrivilegeDefinitions()
supportsCatalogsInPrivilegeDefinitions in interface DatabaseMetaDatapublic boolean supportsPositionedDelete()
supportsPositionedDelete in interface DatabaseMetaDatapublic boolean supportsPositionedUpdate()
supportsPositionedUpdate in interface DatabaseMetaDatapublic boolean supportsSelectForUpdate()
supportsSelectForUpdate in interface DatabaseMetaDatapublic boolean supportsStoredProcedures()
supportsStoredProcedures in interface DatabaseMetaDatapublic boolean supportsSubqueriesInComparisons()
supportsSubqueriesInComparisons in interface DatabaseMetaDatapublic boolean supportsSubqueriesInExists()
supportsSubqueriesInExists in interface DatabaseMetaDatapublic boolean supportsSubqueriesInIns()
supportsSubqueriesInIns in interface DatabaseMetaDatapublic boolean supportsSubqueriesInQuantifieds()
supportsSubqueriesInQuantifieds in interface DatabaseMetaDatapublic boolean supportsCorrelatedSubqueries()
supportsCorrelatedSubqueries in interface DatabaseMetaDatapublic boolean supportsUnion()
supportsUnion in interface DatabaseMetaDatapublic boolean supportsUnionAll()
supportsUnionAll in interface DatabaseMetaDatapublic boolean supportsOpenCursorsAcrossCommit()
supportsOpenCursorsAcrossCommit in interface DatabaseMetaDatapublic boolean supportsOpenCursorsAcrossRollback()
supportsOpenCursorsAcrossRollback in interface DatabaseMetaDatapublic boolean supportsOpenStatementsAcrossCommit()
supportsOpenStatementsAcrossCommit in interface DatabaseMetaDatapublic boolean supportsOpenStatementsAcrossRollback()
supportsOpenStatementsAcrossRollback in interface DatabaseMetaDatapublic boolean supportsTransactions()
supportsTransactions in interface DatabaseMetaDatapublic boolean supportsTransactionIsolationLevel(int level)
supportsTransactionIsolationLevel in interface DatabaseMetaDatalevel - the transaction isolation level (Connection.TRANSACTION_*)public boolean supportsDataDefinitionAndDataManipulationTransactions()
supportsDataDefinitionAndDataManipulationTransactions in interface DatabaseMetaDatapublic boolean supportsDataManipulationTransactionsOnly()
supportsDataManipulationTransactionsOnly in interface DatabaseMetaDatapublic boolean dataDefinitionCausesTransactionCommit()
dataDefinitionCausesTransactionCommit in interface DatabaseMetaDatapublic boolean dataDefinitionIgnoredInTransactions()
dataDefinitionIgnoredInTransactions in interface DatabaseMetaDatapublic boolean supportsResultSetType(int type)
supportsResultSetType in interface DatabaseMetaDatatype - the result set typepublic boolean supportsResultSetConcurrency(int type,
int concurrency)
supportsResultSetConcurrency in interface DatabaseMetaDatatype - the result set typeconcurrency - the result set concurrencypublic boolean ownUpdatesAreVisible(int type)
ownUpdatesAreVisible in interface DatabaseMetaDatatype - the result set typepublic boolean ownDeletesAreVisible(int type)
ownDeletesAreVisible in interface DatabaseMetaDatatype - the result set typepublic boolean ownInsertsAreVisible(int type)
ownInsertsAreVisible in interface DatabaseMetaDatatype - the result set typepublic boolean othersUpdatesAreVisible(int type)
othersUpdatesAreVisible in interface DatabaseMetaDatatype - the result set typepublic boolean othersDeletesAreVisible(int type)
othersDeletesAreVisible in interface DatabaseMetaDatatype - the result set typepublic boolean othersInsertsAreVisible(int type)
othersInsertsAreVisible in interface DatabaseMetaDatatype - the result set typepublic boolean updatesAreDetected(int type)
updatesAreDetected in interface DatabaseMetaDatatype - the result set typepublic boolean deletesAreDetected(int type)
deletesAreDetected in interface DatabaseMetaDatatype - the result set typepublic boolean insertsAreDetected(int type)
insertsAreDetected in interface DatabaseMetaDatatype - the result set typepublic boolean supportsBatchUpdates()
supportsBatchUpdates in interface DatabaseMetaDatapublic boolean doesMaxRowSizeIncludeBlobs()
doesMaxRowSizeIncludeBlobs in interface DatabaseMetaDatapublic int getDefaultTransactionIsolation()
getDefaultTransactionIsolation in interface DatabaseMetaDatapublic boolean supportsMixedCaseIdentifiers()
supportsMixedCaseIdentifiers in interface DatabaseMetaDatapublic boolean supportsMixedCaseQuotedIdentifiers()
supportsMixedCaseQuotedIdentifiers in interface DatabaseMetaDatapublic boolean storesUpperCaseIdentifiers()
storesUpperCaseIdentifiers in interface DatabaseMetaDatapublic boolean storesLowerCaseIdentifiers()
storesLowerCaseIdentifiers in interface DatabaseMetaDatapublic boolean storesMixedCaseIdentifiers()
storesMixedCaseIdentifiers in interface DatabaseMetaDatapublic boolean storesUpperCaseQuotedIdentifiers()
storesUpperCaseQuotedIdentifiers in interface DatabaseMetaDatapublic boolean storesLowerCaseQuotedIdentifiers()
storesLowerCaseQuotedIdentifiers in interface DatabaseMetaDatapublic boolean storesMixedCaseQuotedIdentifiers()
storesMixedCaseQuotedIdentifiers in interface DatabaseMetaDatapublic int getMaxBinaryLiteralLength()
getMaxBinaryLiteralLength in interface DatabaseMetaDatapublic int getMaxCharLiteralLength()
getMaxCharLiteralLength in interface DatabaseMetaDatapublic int getMaxColumnNameLength()
getMaxColumnNameLength in interface DatabaseMetaDatapublic int getMaxColumnsInGroupBy()
getMaxColumnsInGroupBy in interface DatabaseMetaDatapublic int getMaxColumnsInIndex()
getMaxColumnsInIndex in interface DatabaseMetaDatapublic int getMaxColumnsInOrderBy()
getMaxColumnsInOrderBy in interface DatabaseMetaDatapublic int getMaxColumnsInSelect()
getMaxColumnsInSelect in interface DatabaseMetaDatapublic int getMaxColumnsInTable()
getMaxColumnsInTable in interface DatabaseMetaDatapublic int getMaxConnections()
getMaxConnections in interface DatabaseMetaDatapublic int getMaxCursorNameLength()
getMaxCursorNameLength in interface DatabaseMetaDatapublic int getMaxIndexLength()
getMaxIndexLength in interface DatabaseMetaDatapublic int getMaxSchemaNameLength()
getMaxSchemaNameLength in interface DatabaseMetaDatapublic int getMaxProcedureNameLength()
getMaxProcedureNameLength in interface DatabaseMetaDatapublic int getMaxCatalogNameLength()
getMaxCatalogNameLength in interface DatabaseMetaDatapublic int getMaxRowSize()
getMaxRowSize in interface DatabaseMetaDatapublic int getMaxStatementLength()
getMaxStatementLength in interface DatabaseMetaDatapublic int getMaxStatements()
getMaxStatements in interface DatabaseMetaDatapublic int getMaxTableNameLength()
getMaxTableNameLength in interface DatabaseMetaDatapublic int getMaxTablesInSelect()
getMaxTablesInSelect in interface DatabaseMetaDatapublic int getMaxUserNameLength()
getMaxUserNameLength in interface DatabaseMetaDatapublic boolean supportsSavepoints()
supportsSavepoints in interface DatabaseMetaDatapublic boolean supportsNamedParameters()
supportsNamedParameters in interface DatabaseMetaDatapublic boolean supportsMultipleOpenResults()
supportsMultipleOpenResults in interface DatabaseMetaDatapublic boolean supportsGetGeneratedKeys()
supportsGetGeneratedKeys in interface DatabaseMetaDatapublic ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException
getSuperTypes in interface DatabaseMetaDataSQLExceptionpublic ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
getSuperTables in interface DatabaseMetaDatacatalog - null (to get all objects) or the catalog nameschemaPattern - null (to get all objects) or a schema name (uppercase for
unquoted names)tableNamePattern - null (to get all objects) or a table name pattern
(uppercase for unquoted names)SQLExceptionpublic ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException
getAttributes in interface DatabaseMetaDataSQLExceptionpublic boolean supportsResultSetHoldability(int holdability)
supportsResultSetHoldability in interface DatabaseMetaDataholdability - ResultSet.HOLD_CURSORS_OVER_COMMIT or
CLOSE_CURSORS_AT_COMMITpublic int getResultSetHoldability()
getResultSetHoldability in interface DatabaseMetaDatapublic int getDatabaseMajorVersion()
getDatabaseMajorVersion in interface DatabaseMetaDatapublic int getDatabaseMinorVersion()
getDatabaseMinorVersion in interface DatabaseMetaDatapublic int getJDBCMajorVersion()
getJDBCMajorVersion in interface DatabaseMetaDatapublic int getJDBCMinorVersion()
getJDBCMinorVersion in interface DatabaseMetaDatapublic int getSQLStateType()
getSQLStateType in interface DatabaseMetaDatapublic boolean locatorsUpdateCopy()
locatorsUpdateCopy in interface DatabaseMetaDatapublic boolean supportsStatementPooling()
supportsStatementPooling in interface DatabaseMetaDatapublic boolean supportsStoredFunctionsUsingCallSyntax()
supportsStoredFunctionsUsingCallSyntax in interface DatabaseMetaDatapublic boolean autoCommitFailureClosesAllResultSets()
autoCommitFailureClosesAllResultSets in interface DatabaseMetaDatapublic ResultSet getClientInfoProperties() throws SQLException
getClientInfoProperties in interface DatabaseMetaDataSQLExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.