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, XID
attributeNoNulls, 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, unsupported
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
generatedKeyAlwaysReturned, getFunctionColumns, getFunctions, getPseudoColumns, getRowIdLifetime, getSchemas
isWrapperFor, unwrap
public int getDriverMajorVersion()
getDriverMajorVersion
in interface DatabaseMetaData
public int getDriverMinorVersion()
getDriverMinorVersion
in interface DatabaseMetaData
public String getDatabaseProductName()
getDatabaseProductName
in interface DatabaseMetaData
public String getDatabaseProductVersion()
getDatabaseProductVersion
in interface DatabaseMetaData
public String getDriverName()
getDriverName
in interface DatabaseMetaData
public String getDriverVersion()
getDriverVersion
in interface DatabaseMetaData
public ResultSet getTables(String catalogPattern, String schemaPattern, String tableNamePattern, String[] types) throws SQLException
getTables
in interface DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
public boolean allTablesAreSelectable()
allTablesAreSelectable
in interface DatabaseMetaData
public String getURL() throws SQLException
getURL
in interface DatabaseMetaData
SQLException
public String getUserName() throws SQLException
getUserName
in interface DatabaseMetaData
SQLException
public boolean isReadOnly() throws SQLException
isReadOnly
in interface DatabaseMetaData
SQLException
public boolean nullsAreSortedHigh()
nullsAreSortedHigh
in interface DatabaseMetaData
public boolean nullsAreSortedLow()
nullsAreSortedLow
in interface DatabaseMetaData
public boolean nullsAreSortedAtStart()
nullsAreSortedAtStart
in interface DatabaseMetaData
public boolean nullsAreSortedAtEnd()
nullsAreSortedAtEnd
in interface DatabaseMetaData
public Connection getConnection()
getConnection
in interface DatabaseMetaData
public ResultSet getProcedures(String catalogPattern, String schemaPattern, String procedureNamePattern) throws SQLException
getProcedures
in interface DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
SQLException
- if the connection is closedpublic ResultSet getCatalogs() throws SQLException
getCatalogs
in interface DatabaseMetaData
SQLException
- if the connection is closedpublic ResultSet getTableTypes() throws SQLException
getTableTypes
in interface DatabaseMetaData
SQLException
- if the connection is closedpublic ResultSet getColumnPrivileges(String catalogPattern, String schemaPattern, String table, String columnNamePattern) throws SQLException
getColumnPrivileges
in interface DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
catalog
- 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 DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
catalogPattern
- 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 DatabaseMetaData
primaryCatalogPattern
- 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 DatabaseMetaData
catalog
- ignoredschemaPattern
- ignoredtypeNamePattern
- ignoredtypes
- ignoredSQLException
- if the connection is closedpublic ResultSet getTypeInfo() throws SQLException
getTypeInfo
in interface DatabaseMetaData
SQLException
- if the connection is closedpublic boolean usesLocalFiles()
usesLocalFiles
in interface DatabaseMetaData
public boolean usesLocalFilePerTable()
usesLocalFilePerTable
in interface DatabaseMetaData
public String getIdentifierQuoteString()
getIdentifierQuoteString
in interface DatabaseMetaData
public 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 DatabaseMetaData
public String getNumericFunctions() throws SQLException
getNumericFunctions
in interface DatabaseMetaData
SQLException
public String getStringFunctions() throws SQLException
getStringFunctions
in interface DatabaseMetaData
SQLException
public String getSystemFunctions() throws SQLException
getSystemFunctions
in interface DatabaseMetaData
SQLException
public String getTimeDateFunctions() throws SQLException
getTimeDateFunctions
in interface DatabaseMetaData
SQLException
public String getSearchStringEscape()
getSearchStringEscape
in interface DatabaseMetaData
public String getExtraNameCharacters()
getExtraNameCharacters
in interface DatabaseMetaData
public boolean supportsAlterTableWithAddColumn()
supportsAlterTableWithAddColumn
in interface DatabaseMetaData
public boolean supportsAlterTableWithDropColumn()
supportsAlterTableWithDropColumn
in interface DatabaseMetaData
public boolean supportsColumnAliasing()
supportsColumnAliasing
in interface DatabaseMetaData
public boolean nullPlusNonNullIsNull()
nullPlusNonNullIsNull
in interface DatabaseMetaData
public boolean supportsConvert()
supportsConvert
in interface DatabaseMetaData
public boolean supportsConvert(int fromType, int toType)
supportsConvert
in interface DatabaseMetaData
fromType
- the source SQL typetoType
- the target SQL typepublic boolean supportsTableCorrelationNames()
supportsTableCorrelationNames
in interface DatabaseMetaData
public boolean supportsDifferentTableCorrelationNames()
supportsDifferentTableCorrelationNames
in interface DatabaseMetaData
public boolean supportsExpressionsInOrderBy()
supportsExpressionsInOrderBy
in interface DatabaseMetaData
public boolean supportsOrderByUnrelated()
supportsOrderByUnrelated
in interface DatabaseMetaData
public boolean supportsGroupBy()
supportsGroupBy
in interface DatabaseMetaData
public boolean supportsGroupByUnrelated()
supportsGroupByUnrelated
in interface DatabaseMetaData
public boolean supportsGroupByBeyondSelect()
supportsGroupByBeyondSelect
in interface DatabaseMetaData
public boolean supportsLikeEscapeClause()
supportsLikeEscapeClause
in interface DatabaseMetaData
public boolean supportsMultipleResultSets()
supportsMultipleResultSets
in interface DatabaseMetaData
public boolean supportsMultipleTransactions()
supportsMultipleTransactions
in interface DatabaseMetaData
public boolean supportsNonNullableColumns()
supportsNonNullableColumns
in interface DatabaseMetaData
public boolean supportsMinimumSQLGrammar()
supportsMinimumSQLGrammar
in interface DatabaseMetaData
public boolean supportsCoreSQLGrammar()
supportsCoreSQLGrammar
in interface DatabaseMetaData
public boolean supportsExtendedSQLGrammar()
supportsExtendedSQLGrammar
in interface DatabaseMetaData
public boolean supportsANSI92EntryLevelSQL()
supportsANSI92EntryLevelSQL
in interface DatabaseMetaData
public boolean supportsANSI92IntermediateSQL()
supportsANSI92IntermediateSQL
in interface DatabaseMetaData
public boolean supportsANSI92FullSQL()
supportsANSI92FullSQL
in interface DatabaseMetaData
public boolean supportsIntegrityEnhancementFacility()
supportsIntegrityEnhancementFacility
in interface DatabaseMetaData
public boolean supportsOuterJoins()
supportsOuterJoins
in interface DatabaseMetaData
public boolean supportsFullOuterJoins()
supportsFullOuterJoins
in interface DatabaseMetaData
public boolean supportsLimitedOuterJoins()
supportsLimitedOuterJoins
in interface DatabaseMetaData
public String getSchemaTerm()
getSchemaTerm
in interface DatabaseMetaData
public String getProcedureTerm()
getProcedureTerm
in interface DatabaseMetaData
public String getCatalogTerm()
getCatalogTerm
in interface DatabaseMetaData
public boolean isCatalogAtStart()
isCatalogAtStart
in interface DatabaseMetaData
public String getCatalogSeparator()
getCatalogSeparator
in interface DatabaseMetaData
public boolean supportsSchemasInDataManipulation()
supportsSchemasInDataManipulation
in interface DatabaseMetaData
public boolean supportsSchemasInProcedureCalls()
supportsSchemasInProcedureCalls
in interface DatabaseMetaData
public boolean supportsSchemasInTableDefinitions()
supportsSchemasInTableDefinitions
in interface DatabaseMetaData
public boolean supportsSchemasInIndexDefinitions()
supportsSchemasInIndexDefinitions
in interface DatabaseMetaData
public boolean supportsSchemasInPrivilegeDefinitions()
supportsSchemasInPrivilegeDefinitions
in interface DatabaseMetaData
public boolean supportsCatalogsInDataManipulation()
supportsCatalogsInDataManipulation
in interface DatabaseMetaData
public boolean supportsCatalogsInProcedureCalls()
supportsCatalogsInProcedureCalls
in interface DatabaseMetaData
public boolean supportsCatalogsInTableDefinitions()
supportsCatalogsInTableDefinitions
in interface DatabaseMetaData
public boolean supportsCatalogsInIndexDefinitions()
supportsCatalogsInIndexDefinitions
in interface DatabaseMetaData
public boolean supportsCatalogsInPrivilegeDefinitions()
supportsCatalogsInPrivilegeDefinitions
in interface DatabaseMetaData
public boolean supportsPositionedDelete()
supportsPositionedDelete
in interface DatabaseMetaData
public boolean supportsPositionedUpdate()
supportsPositionedUpdate
in interface DatabaseMetaData
public boolean supportsSelectForUpdate()
supportsSelectForUpdate
in interface DatabaseMetaData
public boolean supportsStoredProcedures()
supportsStoredProcedures
in interface DatabaseMetaData
public boolean supportsSubqueriesInComparisons()
supportsSubqueriesInComparisons
in interface DatabaseMetaData
public boolean supportsSubqueriesInExists()
supportsSubqueriesInExists
in interface DatabaseMetaData
public boolean supportsSubqueriesInIns()
supportsSubqueriesInIns
in interface DatabaseMetaData
public boolean supportsSubqueriesInQuantifieds()
supportsSubqueriesInQuantifieds
in interface DatabaseMetaData
public boolean supportsCorrelatedSubqueries()
supportsCorrelatedSubqueries
in interface DatabaseMetaData
public boolean supportsUnion()
supportsUnion
in interface DatabaseMetaData
public boolean supportsUnionAll()
supportsUnionAll
in interface DatabaseMetaData
public boolean supportsOpenCursorsAcrossCommit()
supportsOpenCursorsAcrossCommit
in interface DatabaseMetaData
public boolean supportsOpenCursorsAcrossRollback()
supportsOpenCursorsAcrossRollback
in interface DatabaseMetaData
public boolean supportsOpenStatementsAcrossCommit()
supportsOpenStatementsAcrossCommit
in interface DatabaseMetaData
public boolean supportsOpenStatementsAcrossRollback()
supportsOpenStatementsAcrossRollback
in interface DatabaseMetaData
public boolean supportsTransactions()
supportsTransactions
in interface DatabaseMetaData
public boolean supportsTransactionIsolationLevel(int level)
supportsTransactionIsolationLevel
in interface DatabaseMetaData
level
- the transaction isolation level (Connection.TRANSACTION_*)public boolean supportsDataDefinitionAndDataManipulationTransactions()
supportsDataDefinitionAndDataManipulationTransactions
in interface DatabaseMetaData
public boolean supportsDataManipulationTransactionsOnly()
supportsDataManipulationTransactionsOnly
in interface DatabaseMetaData
public boolean dataDefinitionCausesTransactionCommit()
dataDefinitionCausesTransactionCommit
in interface DatabaseMetaData
public boolean dataDefinitionIgnoredInTransactions()
dataDefinitionIgnoredInTransactions
in interface DatabaseMetaData
public boolean supportsResultSetType(int type)
supportsResultSetType
in interface DatabaseMetaData
type
- the result set typepublic boolean supportsResultSetConcurrency(int type, int concurrency)
supportsResultSetConcurrency
in interface DatabaseMetaData
type
- the result set typeconcurrency
- the result set concurrencypublic boolean ownUpdatesAreVisible(int type)
ownUpdatesAreVisible
in interface DatabaseMetaData
type
- the result set typepublic boolean ownDeletesAreVisible(int type)
ownDeletesAreVisible
in interface DatabaseMetaData
type
- the result set typepublic boolean ownInsertsAreVisible(int type)
ownInsertsAreVisible
in interface DatabaseMetaData
type
- the result set typepublic boolean othersUpdatesAreVisible(int type)
othersUpdatesAreVisible
in interface DatabaseMetaData
type
- the result set typepublic boolean othersDeletesAreVisible(int type)
othersDeletesAreVisible
in interface DatabaseMetaData
type
- the result set typepublic boolean othersInsertsAreVisible(int type)
othersInsertsAreVisible
in interface DatabaseMetaData
type
- the result set typepublic boolean updatesAreDetected(int type)
updatesAreDetected
in interface DatabaseMetaData
type
- the result set typepublic boolean deletesAreDetected(int type)
deletesAreDetected
in interface DatabaseMetaData
type
- the result set typepublic boolean insertsAreDetected(int type)
insertsAreDetected
in interface DatabaseMetaData
type
- the result set typepublic boolean supportsBatchUpdates()
supportsBatchUpdates
in interface DatabaseMetaData
public boolean doesMaxRowSizeIncludeBlobs()
doesMaxRowSizeIncludeBlobs
in interface DatabaseMetaData
public int getDefaultTransactionIsolation()
getDefaultTransactionIsolation
in interface DatabaseMetaData
public boolean supportsMixedCaseIdentifiers()
supportsMixedCaseIdentifiers
in interface DatabaseMetaData
public boolean supportsMixedCaseQuotedIdentifiers()
supportsMixedCaseQuotedIdentifiers
in interface DatabaseMetaData
public boolean storesUpperCaseIdentifiers()
storesUpperCaseIdentifiers
in interface DatabaseMetaData
public boolean storesLowerCaseIdentifiers()
storesLowerCaseIdentifiers
in interface DatabaseMetaData
public boolean storesMixedCaseIdentifiers()
storesMixedCaseIdentifiers
in interface DatabaseMetaData
public boolean storesUpperCaseQuotedIdentifiers()
storesUpperCaseQuotedIdentifiers
in interface DatabaseMetaData
public boolean storesLowerCaseQuotedIdentifiers()
storesLowerCaseQuotedIdentifiers
in interface DatabaseMetaData
public boolean storesMixedCaseQuotedIdentifiers()
storesMixedCaseQuotedIdentifiers
in interface DatabaseMetaData
public int getMaxBinaryLiteralLength()
getMaxBinaryLiteralLength
in interface DatabaseMetaData
public int getMaxCharLiteralLength()
getMaxCharLiteralLength
in interface DatabaseMetaData
public int getMaxColumnNameLength()
getMaxColumnNameLength
in interface DatabaseMetaData
public int getMaxColumnsInGroupBy()
getMaxColumnsInGroupBy
in interface DatabaseMetaData
public int getMaxColumnsInIndex()
getMaxColumnsInIndex
in interface DatabaseMetaData
public int getMaxColumnsInOrderBy()
getMaxColumnsInOrderBy
in interface DatabaseMetaData
public int getMaxColumnsInSelect()
getMaxColumnsInSelect
in interface DatabaseMetaData
public int getMaxColumnsInTable()
getMaxColumnsInTable
in interface DatabaseMetaData
public int getMaxConnections()
getMaxConnections
in interface DatabaseMetaData
public int getMaxCursorNameLength()
getMaxCursorNameLength
in interface DatabaseMetaData
public int getMaxIndexLength()
getMaxIndexLength
in interface DatabaseMetaData
public int getMaxSchemaNameLength()
getMaxSchemaNameLength
in interface DatabaseMetaData
public int getMaxProcedureNameLength()
getMaxProcedureNameLength
in interface DatabaseMetaData
public int getMaxCatalogNameLength()
getMaxCatalogNameLength
in interface DatabaseMetaData
public int getMaxRowSize()
getMaxRowSize
in interface DatabaseMetaData
public int getMaxStatementLength()
getMaxStatementLength
in interface DatabaseMetaData
public int getMaxStatements()
getMaxStatements
in interface DatabaseMetaData
public int getMaxTableNameLength()
getMaxTableNameLength
in interface DatabaseMetaData
public int getMaxTablesInSelect()
getMaxTablesInSelect
in interface DatabaseMetaData
public int getMaxUserNameLength()
getMaxUserNameLength
in interface DatabaseMetaData
public boolean supportsSavepoints()
supportsSavepoints
in interface DatabaseMetaData
public boolean supportsNamedParameters()
supportsNamedParameters
in interface DatabaseMetaData
public boolean supportsMultipleOpenResults()
supportsMultipleOpenResults
in interface DatabaseMetaData
public boolean supportsGetGeneratedKeys()
supportsGetGeneratedKeys
in interface DatabaseMetaData
public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException
getSuperTypes
in interface DatabaseMetaData
SQLException
public ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
getSuperTables
in interface DatabaseMetaData
catalog
- 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)SQLException
public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException
getAttributes
in interface DatabaseMetaData
SQLException
public boolean supportsResultSetHoldability(int holdability)
supportsResultSetHoldability
in interface DatabaseMetaData
holdability
- ResultSet.HOLD_CURSORS_OVER_COMMIT or
CLOSE_CURSORS_AT_COMMITpublic int getResultSetHoldability()
getResultSetHoldability
in interface DatabaseMetaData
public int getDatabaseMajorVersion()
getDatabaseMajorVersion
in interface DatabaseMetaData
public int getDatabaseMinorVersion()
getDatabaseMinorVersion
in interface DatabaseMetaData
public int getJDBCMajorVersion()
getJDBCMajorVersion
in interface DatabaseMetaData
public int getJDBCMinorVersion()
getJDBCMinorVersion
in interface DatabaseMetaData
public int getSQLStateType()
getSQLStateType
in interface DatabaseMetaData
public boolean locatorsUpdateCopy()
locatorsUpdateCopy
in interface DatabaseMetaData
public boolean supportsStatementPooling()
supportsStatementPooling
in interface DatabaseMetaData
public boolean supportsStoredFunctionsUsingCallSyntax()
supportsStoredFunctionsUsingCallSyntax
in interface DatabaseMetaData
public boolean autoCommitFailureClosesAllResultSets()
autoCommitFailureClosesAllResultSets
in interface DatabaseMetaData
public ResultSet getClientInfoProperties() throws SQLException
getClientInfoProperties
in interface DatabaseMetaData
SQLException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.