public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaData, JdbcDatabaseMetaDataBackwardsCompat
ARRAY, BLOB, CALLABLE_STATEMENT, CLOB, CONNECTION, DATA_SOURCE, DATABASE_META_DATA, PARAMETER_META_DATA, PREPARED_STATEMENT, RESULT_SET, RESULT_SET_META_DATA, SAVEPOINT, STATEMENT, trace, XA_DATA_SOURCE, 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| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
boolean |
generatedKeyAlwaysReturned()
[Not supported]
|
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() |
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 '_'.
|
ResultSet |
getFunctionColumns(String catalog,
String schemaPattern,
String functionNamePattern,
String columnNamePattern)
[Not supported] Gets the list of function columns.
|
ResultSet |
getFunctions(String catalog,
String schemaPattern,
String functionNamePattern)
[Not supported] Gets the list of functions.
|
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".
|
ResultSet |
getPseudoColumns(String catalog,
String schemaPattern,
String tableNamePattern,
String columnNamePattern)
[Not supported]
|
int |
getResultSetHoldability()
Gets the result set holdability.
|
RowIdLifetime |
getRowIdLifetime()
Get the lifetime of a rowid.
|
ResultSet |
getSchemas()
Gets the list of schemas.
|
ResultSet |
getSchemas(String catalogPattern,
String schemaPattern)
Gets the list of schemas in the database.
|
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 |
isWrapperFor(Class<?> iface)
Checks if unwrap can return an object of this class.
|
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
|
<T> T |
unwrap(Class<T> iface)
Return an object of this class if possible.
|
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, getTraceId, getTraceObjectName, isDebugEnabled, isInfoEnabled, logAndConvert, quote, quoteArray, quoteBigDecimal, quoteBytes, quoteDate, quoteIntArray, quoteMap, quoteTime, quoteTimestamp, setTrace, unsupportedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMaxLogicalLobSize, supportsRefCursorspublic int getDriverMajorVersion()
getDriverMajorVersion 在接口中 DatabaseMetaDatapublic int getDriverMinorVersion()
getDriverMinorVersion 在接口中 DatabaseMetaDatapublic String getDatabaseProductName()
getDatabaseProductName 在接口中 DatabaseMetaDatapublic String getDatabaseProductVersion()
getDatabaseProductVersion 在接口中 DatabaseMetaDatapublic String getDriverName()
getDriverName 在接口中 DatabaseMetaDatapublic String getDriverVersion()
getDriverVersion 在接口中 DatabaseMetaDatapublic ResultSet getTables(String catalogPattern, String schemaPattern, String tableNamePattern, String[] types) throws SQLException
getTables 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 DatabaseMetaDatapublic boolean allTablesAreSelectable()
allTablesAreSelectable 在接口中 DatabaseMetaDatapublic String getURL() throws SQLException
getURL 在接口中 DatabaseMetaDataSQLExceptionpublic String getUserName() throws SQLException
getUserName 在接口中 DatabaseMetaDataSQLExceptionpublic boolean isReadOnly()
throws SQLException
isReadOnly 在接口中 DatabaseMetaDataSQLExceptionpublic boolean nullsAreSortedHigh()
nullsAreSortedHigh 在接口中 DatabaseMetaDatapublic boolean nullsAreSortedLow()
nullsAreSortedLow 在接口中 DatabaseMetaDatapublic boolean nullsAreSortedAtStart()
nullsAreSortedAtStart 在接口中 DatabaseMetaDatapublic boolean nullsAreSortedAtEnd()
nullsAreSortedAtEnd 在接口中 DatabaseMetaDatapublic Connection getConnection()
getConnection 在接口中 DatabaseMetaDatapublic ResultSet getProcedures(String catalogPattern, String schemaPattern, String procedureNamePattern) throws SQLException
getProcedures 在接口中 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 在接口中 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 在接口中 DatabaseMetaDataSQLException - if the connection is closedpublic ResultSet getCatalogs() throws SQLException
getCatalogs 在接口中 DatabaseMetaDataSQLException - if the connection is closedpublic ResultSet getTableTypes() throws SQLException
getTableTypes 在接口中 DatabaseMetaDataSQLException - if the connection is closedpublic ResultSet getColumnPrivileges(String catalogPattern, String schemaPattern, String table, String columnNamePattern) throws SQLException
getColumnPrivileges 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 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 在接口中 DatabaseMetaDatacatalog - ignoredschemaPattern - ignoredtypeNamePattern - ignoredtypes - ignoredSQLException - if the connection is closedpublic ResultSet getTypeInfo() throws SQLException
getTypeInfo 在接口中 DatabaseMetaDataSQLException - if the connection is closedpublic boolean usesLocalFiles()
usesLocalFiles 在接口中 DatabaseMetaDatapublic boolean usesLocalFilePerTable()
usesLocalFilePerTable 在接口中 DatabaseMetaDatapublic String getIdentifierQuoteString()
getIdentifierQuoteString 在接口中 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 在接口中 DatabaseMetaDatapublic String getNumericFunctions() throws SQLException
getNumericFunctions 在接口中 DatabaseMetaDataSQLExceptionpublic String getStringFunctions() throws SQLException
getStringFunctions 在接口中 DatabaseMetaDataSQLExceptionpublic String getSystemFunctions() throws SQLException
getSystemFunctions 在接口中 DatabaseMetaDataSQLExceptionpublic String getTimeDateFunctions() throws SQLException
getTimeDateFunctions 在接口中 DatabaseMetaDataSQLExceptionpublic String getSearchStringEscape()
getSearchStringEscape 在接口中 DatabaseMetaDatapublic String getExtraNameCharacters()
getExtraNameCharacters 在接口中 DatabaseMetaDatapublic boolean supportsAlterTableWithAddColumn()
supportsAlterTableWithAddColumn 在接口中 DatabaseMetaDatapublic boolean supportsAlterTableWithDropColumn()
supportsAlterTableWithDropColumn 在接口中 DatabaseMetaDatapublic boolean supportsColumnAliasing()
supportsColumnAliasing 在接口中 DatabaseMetaDatapublic boolean nullPlusNonNullIsNull()
nullPlusNonNullIsNull 在接口中 DatabaseMetaDatapublic boolean supportsConvert()
supportsConvert 在接口中 DatabaseMetaDatapublic boolean supportsConvert(int fromType,
int toType)
supportsConvert 在接口中 DatabaseMetaDatafromType - the source SQL typetoType - the target SQL typepublic boolean supportsTableCorrelationNames()
supportsTableCorrelationNames 在接口中 DatabaseMetaDatapublic boolean supportsDifferentTableCorrelationNames()
supportsDifferentTableCorrelationNames 在接口中 DatabaseMetaDatapublic boolean supportsExpressionsInOrderBy()
supportsExpressionsInOrderBy 在接口中 DatabaseMetaDatapublic boolean supportsOrderByUnrelated()
supportsOrderByUnrelated 在接口中 DatabaseMetaDatapublic boolean supportsGroupBy()
supportsGroupBy 在接口中 DatabaseMetaDatapublic boolean supportsGroupByUnrelated()
supportsGroupByUnrelated 在接口中 DatabaseMetaDatapublic boolean supportsGroupByBeyondSelect()
supportsGroupByBeyondSelect 在接口中 DatabaseMetaDatapublic boolean supportsLikeEscapeClause()
supportsLikeEscapeClause 在接口中 DatabaseMetaDatapublic boolean supportsMultipleResultSets()
supportsMultipleResultSets 在接口中 DatabaseMetaDatapublic boolean supportsMultipleTransactions()
supportsMultipleTransactions 在接口中 DatabaseMetaDatapublic boolean supportsNonNullableColumns()
supportsNonNullableColumns 在接口中 DatabaseMetaDatapublic boolean supportsMinimumSQLGrammar()
supportsMinimumSQLGrammar 在接口中 DatabaseMetaDatapublic boolean supportsCoreSQLGrammar()
supportsCoreSQLGrammar 在接口中 DatabaseMetaDatapublic boolean supportsExtendedSQLGrammar()
supportsExtendedSQLGrammar 在接口中 DatabaseMetaDatapublic boolean supportsANSI92EntryLevelSQL()
supportsANSI92EntryLevelSQL 在接口中 DatabaseMetaDatapublic boolean supportsANSI92IntermediateSQL()
supportsANSI92IntermediateSQL 在接口中 DatabaseMetaDatapublic boolean supportsANSI92FullSQL()
supportsANSI92FullSQL 在接口中 DatabaseMetaDatapublic boolean supportsIntegrityEnhancementFacility()
supportsIntegrityEnhancementFacility 在接口中 DatabaseMetaDatapublic boolean supportsOuterJoins()
supportsOuterJoins 在接口中 DatabaseMetaDatapublic boolean supportsFullOuterJoins()
supportsFullOuterJoins 在接口中 DatabaseMetaDatapublic boolean supportsLimitedOuterJoins()
supportsLimitedOuterJoins 在接口中 DatabaseMetaDatapublic String getSchemaTerm()
getSchemaTerm 在接口中 DatabaseMetaDatapublic String getProcedureTerm()
getProcedureTerm 在接口中 DatabaseMetaDatapublic String getCatalogTerm()
getCatalogTerm 在接口中 DatabaseMetaDatapublic boolean isCatalogAtStart()
isCatalogAtStart 在接口中 DatabaseMetaDatapublic String getCatalogSeparator()
getCatalogSeparator 在接口中 DatabaseMetaDatapublic boolean supportsSchemasInDataManipulation()
supportsSchemasInDataManipulation 在接口中 DatabaseMetaDatapublic boolean supportsSchemasInProcedureCalls()
supportsSchemasInProcedureCalls 在接口中 DatabaseMetaDatapublic boolean supportsSchemasInTableDefinitions()
supportsSchemasInTableDefinitions 在接口中 DatabaseMetaDatapublic boolean supportsSchemasInIndexDefinitions()
supportsSchemasInIndexDefinitions 在接口中 DatabaseMetaDatapublic boolean supportsSchemasInPrivilegeDefinitions()
supportsSchemasInPrivilegeDefinitions 在接口中 DatabaseMetaDatapublic boolean supportsCatalogsInDataManipulation()
supportsCatalogsInDataManipulation 在接口中 DatabaseMetaDatapublic boolean supportsCatalogsInProcedureCalls()
supportsCatalogsInProcedureCalls 在接口中 DatabaseMetaDatapublic boolean supportsCatalogsInTableDefinitions()
supportsCatalogsInTableDefinitions 在接口中 DatabaseMetaDatapublic boolean supportsCatalogsInIndexDefinitions()
supportsCatalogsInIndexDefinitions 在接口中 DatabaseMetaDatapublic boolean supportsCatalogsInPrivilegeDefinitions()
supportsCatalogsInPrivilegeDefinitions 在接口中 DatabaseMetaDatapublic boolean supportsPositionedDelete()
supportsPositionedDelete 在接口中 DatabaseMetaDatapublic boolean supportsPositionedUpdate()
supportsPositionedUpdate 在接口中 DatabaseMetaDatapublic boolean supportsSelectForUpdate()
supportsSelectForUpdate 在接口中 DatabaseMetaDatapublic boolean supportsStoredProcedures()
supportsStoredProcedures 在接口中 DatabaseMetaDatapublic boolean supportsSubqueriesInComparisons()
supportsSubqueriesInComparisons 在接口中 DatabaseMetaDatapublic boolean supportsSubqueriesInExists()
supportsSubqueriesInExists 在接口中 DatabaseMetaDatapublic boolean supportsSubqueriesInIns()
supportsSubqueriesInIns 在接口中 DatabaseMetaDatapublic boolean supportsSubqueriesInQuantifieds()
supportsSubqueriesInQuantifieds 在接口中 DatabaseMetaDatapublic boolean supportsCorrelatedSubqueries()
supportsCorrelatedSubqueries 在接口中 DatabaseMetaDatapublic boolean supportsUnion()
supportsUnion 在接口中 DatabaseMetaDatapublic boolean supportsUnionAll()
supportsUnionAll 在接口中 DatabaseMetaDatapublic boolean supportsOpenCursorsAcrossCommit()
supportsOpenCursorsAcrossCommit 在接口中 DatabaseMetaDatapublic boolean supportsOpenCursorsAcrossRollback()
supportsOpenCursorsAcrossRollback 在接口中 DatabaseMetaDatapublic boolean supportsOpenStatementsAcrossCommit()
supportsOpenStatementsAcrossCommit 在接口中 DatabaseMetaDatapublic boolean supportsOpenStatementsAcrossRollback()
supportsOpenStatementsAcrossRollback 在接口中 DatabaseMetaDatapublic boolean supportsTransactions()
supportsTransactions 在接口中 DatabaseMetaDatapublic boolean supportsTransactionIsolationLevel(int level)
throws SQLException
supportsTransactionIsolationLevel 在接口中 DatabaseMetaDatalevel - the transaction isolation level (Connection.TRANSACTION_*)SQLExceptionpublic boolean supportsDataDefinitionAndDataManipulationTransactions()
supportsDataDefinitionAndDataManipulationTransactions 在接口中 DatabaseMetaDatapublic boolean supportsDataManipulationTransactionsOnly()
supportsDataManipulationTransactionsOnly 在接口中 DatabaseMetaDatapublic boolean dataDefinitionCausesTransactionCommit()
dataDefinitionCausesTransactionCommit 在接口中 DatabaseMetaDatapublic boolean dataDefinitionIgnoredInTransactions()
dataDefinitionIgnoredInTransactions 在接口中 DatabaseMetaDatapublic boolean supportsResultSetType(int type)
supportsResultSetType 在接口中 DatabaseMetaDatatype - the result set typepublic boolean supportsResultSetConcurrency(int type,
int concurrency)
supportsResultSetConcurrency 在接口中 DatabaseMetaDatatype - the result set typeconcurrency - the result set concurrencypublic boolean ownUpdatesAreVisible(int type)
ownUpdatesAreVisible 在接口中 DatabaseMetaDatatype - the result set typepublic boolean ownDeletesAreVisible(int type)
ownDeletesAreVisible 在接口中 DatabaseMetaDatatype - the result set typepublic boolean ownInsertsAreVisible(int type)
ownInsertsAreVisible 在接口中 DatabaseMetaDatatype - the result set typepublic boolean othersUpdatesAreVisible(int type)
othersUpdatesAreVisible 在接口中 DatabaseMetaDatatype - the result set typepublic boolean othersDeletesAreVisible(int type)
othersDeletesAreVisible 在接口中 DatabaseMetaDatatype - the result set typepublic boolean othersInsertsAreVisible(int type)
othersInsertsAreVisible 在接口中 DatabaseMetaDatatype - the result set typepublic boolean updatesAreDetected(int type)
updatesAreDetected 在接口中 DatabaseMetaDatatype - the result set typepublic boolean deletesAreDetected(int type)
deletesAreDetected 在接口中 DatabaseMetaDatatype - the result set typepublic boolean insertsAreDetected(int type)
insertsAreDetected 在接口中 DatabaseMetaDatatype - the result set typepublic boolean supportsBatchUpdates()
supportsBatchUpdates 在接口中 DatabaseMetaDatapublic boolean doesMaxRowSizeIncludeBlobs()
doesMaxRowSizeIncludeBlobs 在接口中 DatabaseMetaDatapublic int getDefaultTransactionIsolation()
getDefaultTransactionIsolation 在接口中 DatabaseMetaDatapublic boolean supportsMixedCaseIdentifiers()
supportsMixedCaseIdentifiers 在接口中 DatabaseMetaDatapublic boolean supportsMixedCaseQuotedIdentifiers()
throws SQLException
supportsMixedCaseQuotedIdentifiers 在接口中 DatabaseMetaDataSQLExceptionpublic boolean storesUpperCaseIdentifiers()
throws SQLException
storesUpperCaseIdentifiers 在接口中 DatabaseMetaDataSQLExceptionpublic boolean storesLowerCaseIdentifiers()
throws SQLException
storesLowerCaseIdentifiers 在接口中 DatabaseMetaDataSQLExceptionpublic boolean storesMixedCaseIdentifiers()
storesMixedCaseIdentifiers 在接口中 DatabaseMetaDatapublic boolean storesUpperCaseQuotedIdentifiers()
throws SQLException
storesUpperCaseQuotedIdentifiers 在接口中 DatabaseMetaDataSQLExceptionpublic boolean storesLowerCaseQuotedIdentifiers()
throws SQLException
storesLowerCaseQuotedIdentifiers 在接口中 DatabaseMetaDataSQLExceptionpublic boolean storesMixedCaseQuotedIdentifiers()
throws SQLException
storesMixedCaseQuotedIdentifiers 在接口中 DatabaseMetaDataSQLExceptionpublic int getMaxBinaryLiteralLength()
getMaxBinaryLiteralLength 在接口中 DatabaseMetaDatapublic int getMaxCharLiteralLength()
getMaxCharLiteralLength 在接口中 DatabaseMetaDatapublic int getMaxColumnNameLength()
getMaxColumnNameLength 在接口中 DatabaseMetaDatapublic int getMaxColumnsInGroupBy()
getMaxColumnsInGroupBy 在接口中 DatabaseMetaDatapublic int getMaxColumnsInIndex()
getMaxColumnsInIndex 在接口中 DatabaseMetaDatapublic int getMaxColumnsInOrderBy()
getMaxColumnsInOrderBy 在接口中 DatabaseMetaDatapublic int getMaxColumnsInSelect()
getMaxColumnsInSelect 在接口中 DatabaseMetaDatapublic int getMaxColumnsInTable()
getMaxColumnsInTable 在接口中 DatabaseMetaDatapublic int getMaxConnections()
getMaxConnections 在接口中 DatabaseMetaDatapublic int getMaxCursorNameLength()
getMaxCursorNameLength 在接口中 DatabaseMetaDatapublic int getMaxIndexLength()
getMaxIndexLength 在接口中 DatabaseMetaDatapublic int getMaxSchemaNameLength()
getMaxSchemaNameLength 在接口中 DatabaseMetaDatapublic int getMaxProcedureNameLength()
getMaxProcedureNameLength 在接口中 DatabaseMetaDatapublic int getMaxCatalogNameLength()
getMaxCatalogNameLength 在接口中 DatabaseMetaDatapublic int getMaxRowSize()
getMaxRowSize 在接口中 DatabaseMetaDatapublic int getMaxStatementLength()
getMaxStatementLength 在接口中 DatabaseMetaDatapublic int getMaxStatements()
getMaxStatements 在接口中 DatabaseMetaDatapublic int getMaxTableNameLength()
getMaxTableNameLength 在接口中 DatabaseMetaDatapublic int getMaxTablesInSelect()
getMaxTablesInSelect 在接口中 DatabaseMetaDatapublic int getMaxUserNameLength()
getMaxUserNameLength 在接口中 DatabaseMetaDatapublic boolean supportsSavepoints()
supportsSavepoints 在接口中 DatabaseMetaDatapublic boolean supportsNamedParameters()
supportsNamedParameters 在接口中 DatabaseMetaDatapublic boolean supportsMultipleOpenResults()
supportsMultipleOpenResults 在接口中 DatabaseMetaDatapublic boolean supportsGetGeneratedKeys()
supportsGetGeneratedKeys 在接口中 DatabaseMetaDatapublic ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException
getSuperTypes 在接口中 DatabaseMetaDataSQLExceptionpublic ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
getSuperTables 在接口中 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 在接口中 DatabaseMetaDataSQLExceptionpublic boolean supportsResultSetHoldability(int holdability)
supportsResultSetHoldability 在接口中 DatabaseMetaDataholdability - ResultSet.HOLD_CURSORS_OVER_COMMIT or
CLOSE_CURSORS_AT_COMMITpublic int getResultSetHoldability()
getResultSetHoldability 在接口中 DatabaseMetaDatapublic int getDatabaseMajorVersion()
getDatabaseMajorVersion 在接口中 DatabaseMetaDatapublic int getDatabaseMinorVersion()
getDatabaseMinorVersion 在接口中 DatabaseMetaDatapublic int getJDBCMajorVersion()
getJDBCMajorVersion 在接口中 DatabaseMetaDatapublic int getJDBCMinorVersion()
getJDBCMinorVersion 在接口中 DatabaseMetaDatapublic int getSQLStateType()
getSQLStateType 在接口中 DatabaseMetaDatapublic boolean locatorsUpdateCopy()
locatorsUpdateCopy 在接口中 DatabaseMetaDatapublic boolean supportsStatementPooling()
supportsStatementPooling 在接口中 DatabaseMetaDatapublic RowIdLifetime getRowIdLifetime()
getRowIdLifetime 在接口中 DatabaseMetaDatapublic ResultSet getSchemas(String catalogPattern, String schemaPattern) throws SQLException
getSchemas 在接口中 DatabaseMetaDatacatalogPattern - null (to get all objects) or the catalog nameschemaPattern - null (to get all objects) or a schema name
(uppercase for unquoted names)SQLException - if the connection is closedpublic boolean supportsStoredFunctionsUsingCallSyntax()
supportsStoredFunctionsUsingCallSyntax 在接口中 DatabaseMetaDatapublic boolean autoCommitFailureClosesAllResultSets()
autoCommitFailureClosesAllResultSets 在接口中 DatabaseMetaDatapublic ResultSet getClientInfoProperties() throws SQLException
getClientInfoProperties 在接口中 DatabaseMetaDataSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap 在接口中 Wrapperiface - the classSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor 在接口中 Wrapperiface - the classSQLExceptionpublic ResultSet getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException
getFunctionColumns 在接口中 DatabaseMetaDataSQLExceptionpublic ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException
getFunctions 在接口中 DatabaseMetaDataSQLExceptionpublic boolean generatedKeyAlwaysReturned()
generatedKeyAlwaysReturned 在接口中 DatabaseMetaDatapublic ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
getPseudoColumns 在接口中 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
(uppercase for unquoted names)columnNamePattern - null (to get all objects) or a column name
(uppercase for unquoted names)Copyright © 2017. All rights reserved.