| Java™ Platform Standard Ed. 6 | ||||||||||
public interfaceDatabaseMetaData
Comprehensive information about the database as a whole.
This interface is implemented by driver vendors to let users know the capabilities of a Database Management System (DBMS) in combination with the driver based on JDBC technology ("JDBC driver") that is used with it. Different relational DBMSs often support different features, implement features in different ways, and use different data types. In addition, a driver may implement a feature on top of what the DBMS offers. Information returned by methods in this interface applies to the capabilities of a particular driver and a particular DBMS working together. Note that as used in this documentation, the term "database" is used generically to refer to both the driver and DBMS.
A user for this interface is commonly a tool that needs to discover how to deal with the underlying DBMS. This is especially true for applications that are intended to be used with more than one DBMS. For example, a tool might use the methodgetTypeInfo to find out what data types can be used in aCREATE TABLE statement. Or a user might call the methodsupportsCorrelatedSubqueries to see if it is possible to use a correlated subquery orsupportsBatchUpdates to see if it is possible to use batch updates.
SomeDatabaseMetaData methods return lists of information in the form ofResultSet objects. RegularResultSet methods, such asgetString andgetInt, can be used to retrieve the data from theseResultSet objects. If a given form of metadata is not available, an emptyResultSet will be returned. Additional columns beyond the columns defined to be returned by theResultSet object for a given method can be defined by the JDBC driver vendor and must be accessed by theircolumn label.
SomeDatabaseMetaData methods take arguments that are String patterns. These arguments all have names such as fooPattern. Within a pattern String, "%" means match any substring of 0 or more characters, and "_" means match any one character. Only metadata entries matching the search pattern are returned. If a search pattern argument is set tonull, that argument's criterion will be dropped from the search.
attributeNoNullsIndicates that NULL values might not be allowed. | |
attributeNullableIndicates that NULL values are definitely allowed. | |
attributeNullableUnknownIndicates that whether NULL values are allowed is not known. | |
bestRowNotPseudoIndicates that the best row identifier is NOT a pseudo column. | |
bestRowPseudoIndicates that the best row identifier is a pseudo column. | |
bestRowSessionIndicates that the scope of the best row identifier is the remainder of the current session. | |
bestRowTemporaryIndicates that the scope of the best row identifier is very temporary, lasting only while the row is being used. | |
bestRowTransactionIndicates that the scope of the best row identifier is the remainder of the current transaction. | |
bestRowUnknownIndicates that the best row identifier may or may not be a pseudo column. | |
columnNoNullsIndicates that the column might not allow NULL values. | |
columnNullableIndicates that the column definitely allows NULL values. | |
columnNullableUnknownIndicates that the nullability of columns is unknown. | |
functionColumnInIndicates that the parameter or column is an IN parameter. | |
functionColumnInOutIndicates that the parameter or column is an INOUT parameter. | |
functionColumnOutIndicates that the parameter or column is an OUT parameter. | |
functionColumnResultIndicates that the parameter or column is a column in a result set. | |
functionColumnUnknownIndicates that type of the parameter or column is unknown. | |
functionNoNullsIndicates that NULL values are not allowed. | |
functionNoTableIndicates that the function does not return a table. | |
functionNullableIndicates that NULL values are allowed. | |
functionNullableUnknownIndicates that whether NULL values are allowed is unknown. | |
functionResultUnknownIndicates that it is not known whether the function returns a result or a table. | |
functionReturnIndicates that the parameter or column is a return value. | |
functionReturnsTableIndicates that the function returns a table. | |
importedKeyCascadeFor the column UPDATE_RULE, indicates that when the primary key is updated, the foreign key (imported key) is changed to agree with it. | |
importedKeyInitiallyDeferredIndicates deferrability. | |
importedKeyInitiallyImmediateIndicates deferrability. | |
importedKeyNoActionFor the columns UPDATE_RULE andDELETE_RULE, indicates that if the primary key has been imported, it cannot be updated or deleted. | |
importedKeyNotDeferrableIndicates deferrability. | |
importedKeyRestrictFor the column UPDATE_RULE, indicates that a primary key may not be updated if it has been imported by another table as a foreign key. | |
importedKeySetDefaultFor the columns UPDATE_RULE andDELETE_RULE, indicates that if the primary key is updated or deleted, the foreign key (imported key) is set to the default value. | |
importedKeySetNullFor the columns UPDATE_RULE andDELETE_RULE, indicates that when the primary key is updated or deleted, the foreign key (imported key) is changed toNULL. | |
procedureColumnInIndicates that the column stores IN parameters. | |
procedureColumnInOutIndicates that the column stores INOUT parameters. | |
procedureColumnOutIndicates that the column stores OUT parameters. | |
procedureColumnResultIndicates that the column stores results. | |
procedureColumnReturnIndicates that the column stores return values. | |
procedureColumnUnknownIndicates that type of the column is unknown. | |
procedureNoNullsIndicates that NULL values are not allowed. | |
procedureNoResultIndicates that the procedure does not return a result. | |
procedureNullableIndicates that NULL values are allowed. | |
procedureNullableUnknownIndicates that whether NULL values are allowed is unknown. | |
procedureResultUnknownIndicates that it is not known whether the procedure returns a result. | |
procedureReturnsResultIndicates that the procedure returns a result. | |
sqlStateSQLA possible return value for the method DatabaseMetaData.getSQLStateType which is used to indicate whether the value returned by the methodSQLException.getSQLState is an SQLSTATE value. | |
sqlStateSQL99A possible return value for the method DatabaseMetaData.getSQLStateType which is used to indicate whether the value returned by the methodSQLException.getSQLState is an SQL99 SQLSTATE value. | |
sqlStateXOpenA possible return value for the method DatabaseMetaData.getSQLStateType which is used to indicate whether the value returned by the methodSQLException.getSQLState is an X/Open (now know as Open Group) SQL CLI SQLSTATE value. | |
tableIndexClusteredIndicates that this table index is a clustered index. | |
tableIndexHashedIndicates that this table index is a hashed index. | |
tableIndexOtherIndicates that this table index is not a clustered index, a hashed index, or table statistics; it is something other than these. | |
tableIndexStatisticIndicates that this column contains table statistics that are returned in conjunction with a table's index descriptions. | |
typeNoNullsIndicates that a NULL value is NOT allowed for this data type. | |
typeNullableIndicates that a NULL value is allowed for this data type. | |
typeNullableUnknownIndicates that it is not known whether a NULL value is allowed for this data type. | |
typePredBasicIndicates that the data type can be only be used in WHERE search clauses that do not useLIKE predicates. | |
typePredCharIndicates that the data type can be only be used in WHERE search clauses that useLIKE predicates. | |
typePredNoneIndicates that WHERE search clauses are not supported for this type. | |
typeSearchableIndicates that all WHERE search clauses can be based on this type. | |
versionColumnNotPseudoIndicates that this version column is NOT a pseudo column. | |
versionColumnPseudoIndicates that this version column is a pseudo column. | |
versionColumnUnknownIndicates that this version column may or may not be a pseudo column. | |
allProceduresAreCallable()Retrieves whether the current user can call all the procedures returned by the method getProcedures. | |
allTablesAreSelectable()Retrieves whether the current user can use all the tables returned by the method getTables in aSELECT statement. | |
autoCommitFailureClosesAllResultSets()Retrieves whether a SQLException while autoCommit istrue inidcates that all open ResultSets are closed, even ones that are holdable. | |
dataDefinitionCausesTransactionCommit()Retrieves whether a data definition statement within a transaction forces the transaction to commit. | |
dataDefinitionIgnoredInTransactions()Retrieves whether this database ignores a data definition statement within a transaction. | |
deletesAreDetected(int type)Retrieves whether or not a visible row delete can be detected by calling the method ResultSet.rowDeleted. | |
doesMaxRowSizeIncludeBlobs()Retrieves whether the return value for the method getMaxRowSize includes the SQL data typesLONGVARCHAR andLONGVARBINARY. | |
getAttributes(String catalog,String schemaPattern,String typeNamePattern,String attributeNamePattern)Retrieves a description of the given attribute of the given type for a user-defined type (UDT) that is available in the given schema and catalog. | |
getBestRowIdentifier(String catalog,String schema,String table, int scope, boolean nullable)Retrieves a description of a table's optimal set of columns that uniquely identifies a row. | |
getCatalogs()Retrieves the catalog names available in this database. | |
getCatalogSeparator()Retrieves the String that this database uses as the separator between a catalog and table name. | |
getCatalogTerm()Retrieves the database vendor's preferred term for "catalog". | |
getClientInfoProperties()Retrieves a list of the client info properties that the driver supports. | |
getColumnPrivileges(String catalog,String schema,String table,String columnNamePattern)Retrieves a description of the access rights for a table's columns. | |
getColumns(String catalog,String schemaPattern,String tableNamePattern,String columnNamePattern)Retrieves a description of table columns available in the specified catalog. | |
getConnection()Retrieves the connection that produced this metadata object. | |
getCrossReference(String parentCatalog,String parentSchema,String parentTable,String foreignCatalog,String foreignSchema,String foreignTable)Retrieves a description of the foreign key columns in the given foreign key table that reference the primary key or the columns representing a unique constraint of the parent table (could be the same or a different table). | |
getDatabaseMajorVersion()Retrieves the major version number of the underlying database. | |
getDatabaseMinorVersion()Retrieves the minor version number of the underlying database. | |
getDatabaseProductName()Retrieves the name of this database product. | |
getDatabaseProductVersion()Retrieves the version number of this database product. | |
getDefaultTransactionIsolation()Retrieves this database's default transaction isolation level. | |
getDriverMajorVersion()Retrieves this JDBC driver's major version number. | |
getDriverMinorVersion()Retrieves this JDBC driver's minor version number. | |
getDriverName()Retrieves the name of this JDBC driver. | |
getDriverVersion()Retrieves the version number of this JDBC driver as a String. | |
getExportedKeys(String catalog,String schema,String table)Retrieves a description of the foreign key columns that reference the given table's primary key columns (the foreign keys exported by a table). | |
getExtraNameCharacters()Retrieves all the "extra" characters that can be used in unquoted identifier names (those beyond a-z, A-Z, 0-9 and _). | |
getFunctionColumns(String catalog,String schemaPattern,String functionNamePattern,String columnNamePattern)Retrieves a description of the given catalog's system or user function parameters and return type. | |
getFunctions(String catalog,String schemaPattern,String functionNamePattern)Retrieves a description of the system and user functions available in the given catalog. | |
getIdentifierQuoteString()Retrieves the string used to quote SQL identifiers. | |
getImportedKeys(String catalog,String schema,String table)Retrieves a description of the primary key columns that are referenced by the given table's foreign key columns (the primary keys imported by a table). | |
getIndexInfo(String catalog,String schema,String table, boolean unique, boolean approximate)Retrieves a description of the given table's indices and statistics. | |
getJDBCMajorVersion()Retrieves the major JDBC version number for this driver. | |
getJDBCMinorVersion()Retrieves the minor JDBC version number for this driver. | |
getMaxBinaryLiteralLength()Retrieves the maximum number of hex characters this database allows in an inline binary literal. | |
getMaxCatalogNameLength()Retrieves the maximum number of characters that this database allows in a catalog name. | |
getMaxCharLiteralLength()Retrieves the maximum number of characters this database allows for a character literal. | |
getMaxColumnNameLength()Retrieves the maximum number of characters this database allows for a column name. | |
getMaxColumnsInGroupBy()Retrieves the maximum number of columns this database allows in a GROUP BY clause. | |
getMaxColumnsInIndex()Retrieves the maximum number of columns this database allows in an index. | |
getMaxColumnsInOrderBy()Retrieves the maximum number of columns this database allows in an ORDER BY clause. | |
getMaxColumnsInSelect()Retrieves the maximum number of columns this database allows in a SELECT list. | |
getMaxColumnsInTable()Retrieves the maximum number of columns this database allows in a table. | |
getMaxConnections()Retrieves the maximum number of concurrent connections to this database that are possible. | |
getMaxCursorNameLength()Retrieves the maximum number of characters that this database allows in a cursor name. | |
getMaxIndexLength()Retrieves the maximum number of bytes this database allows for an index, including all of the parts of the index. | |
getMaxProcedureNameLength()Retrieves the maximum number of characters that this database allows in a procedure name. | |
getMaxRowSize()Retrieves the maximum number of bytes this database allows in a single row. | |
getMaxSchemaNameLength()Retrieves the maximum number of characters that this database allows in a schema name. | |
getMaxStatementLength()Retrieves the maximum number of characters this database allows in an SQL statement. | |
getMaxStatements()Retrieves the maximum number of active statements to this database that can be open at the same time. | |
getMaxTableNameLength()Retrieves the maximum number of characters this database allows in a table name. | |
getMaxTablesInSelect()Retrieves the maximum number of tables this database allows in a SELECT statement. | |
getMaxUserNameLength()Retrieves the maximum number of characters this database allows in a user name. | |
getNumericFunctions()Retrieves a comma-separated list of math functions available with this database. | |
getPrimaryKeys(String catalog,String schema,String table)Retrieves a description of the given table's primary key columns. | |
getProcedureColumns(String catalog,String schemaPattern,String procedureNamePattern,String columnNamePattern)Retrieves a description of the given catalog's stored procedure parameter and result columns. | |
getProcedures(String catalog,String schemaPattern,String procedureNamePattern)Retrieves a description of the stored procedures available in the given catalog. | |
getProcedureTerm()Retrieves the database vendor's preferred term for "procedure". | |
getResultSetHoldability()Retrieves this database's default holdability for ResultSet objects. | |
getRowIdLifetime()Indicates whether or not this data source supports the SQL ROWID type, and if so the lifetime for which aRowId object remains valid. | |
getSchemas()Retrieves the schema names available in this database. | |
getSchemas(String catalog,String schemaPattern)Retrieves the schema names available in this database. | |
getSchemaTerm()Retrieves the database vendor's preferred term for "schema". | |
getSearchStringEscape()Retrieves the string that can be used to escape wildcard characters. | |
getSQLKeywords()Retrieves a comma-separated list of all of this database's SQL keywords that are NOT also SQL:2003 keywords. | |
getSQLStateType()Indicates whether the SQLSTATE returned by SQLException.getSQLState is X/Open (now known as Open Group) SQL CLI or SQL:2003. | |
getStringFunctions()Retrieves a comma-separated list of string functions available with this database. | |
getSuperTables(String catalog,String schemaPattern,String tableNamePattern)Retrieves a description of the table hierarchies defined in a particular schema in this database. | |
getSuperTypes(String catalog,String schemaPattern,String typeNamePattern)Retrieves a description of the user-defined type (UDT) hierarchies defined in a particular schema in this database. | |
getSystemFunctions()Retrieves a comma-separated list of system functions available with this database. | |
getTablePrivileges(String catalog,String schemaPattern,String tableNamePattern)Retrieves a description of the access rights for each table available in a catalog. | |
getTables(String catalog,String schemaPattern,String tableNamePattern,String[] types)Retrieves a description of the tables available in the given catalog. | |
getTableTypes()Retrieves the table types available in this database. | |
getTimeDateFunctions()Retrieves a comma-separated list of the time and date functions available with this database. | |
getTypeInfo()Retrieves a description of all the data types supported by this database. | |
getUDTs(String catalog,String schemaPattern,String typeNamePattern, int[] types)Retrieves a description of the user-defined types (UDTs) defined in a particular schema. | |
getURL()Retrieves the URL for this DBMS. | |
getUserName()Retrieves the user name as known to this database. | |
getVersionColumns(String catalog,String schema,String table)Retrieves a description of a table's columns that are automatically updated when any value in a row is updated. | |
insertsAreDetected(int type)Retrieves whether or not a visible row insert can be detected by calling the method ResultSet.rowInserted. | |
isCatalogAtStart()Retrieves whether a catalog appears at the start of a fully qualified table name. | |
isReadOnly()Retrieves whether this database is in read-only mode. | |
locatorsUpdateCopy()Indicates whether updates made to a LOB are made on a copy or directly to the LOB. | |
nullPlusNonNullIsNull()Retrieves whether this database supports concatenations between NULL and non-NULL values beingNULL. | |
nullsAreSortedAtEnd()Retrieves whether NULL values are sorted at the end regardless of sort order. | |
nullsAreSortedAtStart()Retrieves whether NULL values are sorted at the start regardless of sort order. | |
nullsAreSortedHigh()Retrieves whether NULL values are sorted high. | |
nullsAreSortedLow()Retrieves whether NULL values are sorted low. | |
othersDeletesAreVisible(int type)Retrieves whether deletes made by others are visible. | |
othersInsertsAreVisible(int type)Retrieves whether inserts made by others are visible. | |
othersUpdatesAreVisible(int type)Retrieves whether updates made by others are visible. | |
ownDeletesAreVisible(int type)Retrieves whether a result set's own deletes are visible. | |
ownInsertsAreVisible(int type)Retrieves whether a result set's own inserts are visible. | |
ownUpdatesAreVisible(int type)Retrieves whether for the given type of ResultSet object, the result set's own updates are visible. | |
storesLowerCaseIdentifiers()Retrieves whether this database treats mixed case unquoted SQL identifiers as case insensitive and stores them in lower case. | |
storesLowerCaseQuotedIdentifiers()Retrieves whether this database treats mixed case quoted SQL identifiers as case insensitive and stores them in lower case. | |
storesMixedCaseIdentifiers()Retrieves whether this database treats mixed case unquoted SQL identifiers as case insensitive and stores them in mixed case. | |
storesMixedCaseQuotedIdentifiers()Retrieves whether this database treats mixed case quoted SQL identifiers as case insensitive and stores them in mixed case. | |
storesUpperCaseIdentifiers()Retrieves whether this database treats mixed case unquoted SQL identifiers as case insensitive and stores them in upper case. | |
storesUpperCaseQuotedIdentifiers()Retrieves whether this database treats mixed case quoted SQL identifiers as case insensitive and stores them in upper case. | |
supportsAlterTableWithAddColumn()Retrieves whether this database supports ALTER TABLE with add column. | |
supportsAlterTableWithDropColumn()Retrieves whether this database supports ALTER TABLE with drop column. | |
supportsANSI92EntryLevelSQL()Retrieves whether this database supports the ANSI92 entry level SQL grammar. | |
supportsANSI92FullSQL()Retrieves whether this database supports the ANSI92 full SQL grammar supported. | |
supportsANSI92IntermediateSQL()Retrieves whether this database supports the ANSI92 intermediate SQL grammar supported. | |
supportsBatchUpdates()Retrieves whether this database supports batch updates. | |
supportsCatalogsInDataManipulation()Retrieves whether a catalog name can be used in a data manipulation statement. | |
supportsCatalogsInIndexDefinitions()Retrieves whether a catalog name can be used in an index definition statement. | |
supportsCatalogsInPrivilegeDefinitions()Retrieves whether a catalog name can be used in a privilege definition statement. | |
supportsCatalogsInProcedureCalls()Retrieves whether a catalog name can be used in a procedure call statement. | |
supportsCatalogsInTableDefinitions()Retrieves whether a catalog name can be used in a table definition statement. | |
supportsColumnAliasing()Retrieves whether this database supports column aliasing. | |
supportsConvert()Retrieves whether this database supports the JDBC scalar function CONVERT for the conversion of one JDBC type to another. | |
supportsConvert(int fromType, int toType)Retrieves whether this database supports the JDBC scalar function CONVERT for conversions between the JDBC typesfromType andtoType. | |
supportsCoreSQLGrammar()Retrieves whether this database supports the ODBC Core SQL grammar. | |
supportsCorrelatedSubqueries()Retrieves whether this database supports correlated subqueries. | |
supportsDataDefinitionAndDataManipulationTransactions()Retrieves whether this database supports both data definition and data manipulation statements within a transaction. | |
supportsDataManipulationTransactionsOnly()Retrieves whether this database supports only data manipulation statements within a transaction. | |
supportsDifferentTableCorrelationNames()Retrieves whether, when table correlation names are supported, they are restricted to being different from the names of the tables. | |
supportsExpressionsInOrderBy()Retrieves whether this database supports expressions in ORDER BY lists. | |
supportsExtendedSQLGrammar()Retrieves whether this database supports the ODBC Extended SQL grammar. | |
supportsFullOuterJoins()Retrieves whether this database supports full nested outer joins. | |
supportsGetGeneratedKeys()Retrieves whether auto-generated keys can be retrieved after a statement has been executed | |
supportsGroupBy()Retrieves whether this database supports some form of GROUP BY clause. | |
supportsGroupByBeyondSelect()Retrieves whether this database supports using columns not included in the SELECT statement in aGROUP BY clause provided that all of the columns in theSELECT statement are included in theGROUP BY clause. | |
supportsGroupByUnrelated()Retrieves whether this database supports using a column that is not in the SELECT statement in aGROUP BY clause. | |
supportsIntegrityEnhancementFacility()Retrieves whether this database supports the SQL Integrity Enhancement Facility. | |
supportsLikeEscapeClause()Retrieves whether this database supports specifying a LIKE escape clause. | |
supportsLimitedOuterJoins()Retrieves whether this database provides limited support for outer joins. | |
supportsMinimumSQLGrammar()Retrieves whether this database supports the ODBC Minimum SQL grammar. | |
supportsMixedCaseIdentifiers()Retrieves whether this database treats mixed case unquoted SQL identifiers as case sensitive and as a result stores them in mixed case. | |
supportsMixedCaseQuotedIdentifiers()Retrieves whether this database treats mixed case quoted SQL identifiers as case sensitive and as a result stores them in mixed case. | |
supportsMultipleOpenResults()Retrieves whether it is possible to have multiple ResultSet objects returned from aCallableStatement object simultaneously. | |
supportsMultipleResultSets()Retrieves whether this database supports getting multiple ResultSet objects from a single call to the methodexecute. | |
supportsMultipleTransactions()Retrieves whether this database allows having multiple transactions open at once (on different connections). | |
supportsNamedParameters()Retrieves whether this database supports named parameters to callable statements. | |
supportsNonNullableColumns()Retrieves whether columns in this database may be defined as non-nullable. | |
supportsOpenCursorsAcrossCommit()Retrieves whether this database supports keeping cursors open across commits. | |
supportsOpenCursorsAcrossRollback()Retrieves whether this database supports keeping cursors open across rollbacks. | |
supportsOpenStatementsAcrossCommit()Retrieves whether this database supports keeping statements open across commits. | |
supportsOpenStatementsAcrossRollback()Retrieves whether this database supports keeping statements open across rollbacks. | |
supportsOrderByUnrelated()Retrieves whether this database supports using a column that is not in the SELECT statement in anORDER BY clause. | |
supportsOuterJoins()Retrieves whether this database supports some form of outer join. | |
supportsPositionedDelete()Retrieves whether this database supports positioned DELETE statements. | |
supportsPositionedUpdate()Retrieves whether this database supports positioned UPDATE statements. | |
supportsResultSetConcurrency(int type, int concurrency)Retrieves whether this database supports the given concurrency type in combination with the given result set type. | |
supportsResultSetHoldability(int holdability)Retrieves whether this database supports the given result set holdability. | |
supportsResultSetType(int type)Retrieves whether this database supports the given result set type. | |
supportsSavepoints()Retrieves whether this database supports savepoints. | |
supportsSchemasInDataManipulation()Retrieves whether a schema name can be used in a data manipulation statement. | |
supportsSchemasInIndexDefinitions()Retrieves whether a schema name can be used in an index definition statement. | |
supportsSchemasInPrivilegeDefinitions()Retrieves whether a schema name can be used in a privilege definition statement. | |
supportsSchemasInProcedureCalls()Retrieves whether a schema name can be used in a procedure call statement. | |
supportsSchemasInTableDefinitions()Retrieves whether a schema name can be used in a table definition statement. | |
supportsSelectForUpdate()Retrieves whether this database supports SELECT FOR UPDATE statements. | |
supportsStatementPooling()Retrieves whether this database supports statement pooling. | |
supportsStoredFunctionsUsingCallSyntax()Retrieves whether this database supports invoking user-defined or vendor functions using the stored procedure escape syntax. | |
supportsStoredProcedures()Retrieves whether this database supports stored procedure calls that use the stored procedure escape syntax. | |
supportsSubqueriesInComparisons()Retrieves whether this database supports subqueries in comparison expressions. | |
supportsSubqueriesInExists()Retrieves whether this database supports subqueries in EXISTS expressions. | |
supportsSubqueriesInIns()Retrieves whether this database supports subqueries in IN expressions. | |
supportsSubqueriesInQuantifieds()Retrieves whether this database supports subqueries in quantified expressions. | |
supportsTableCorrelationNames()Retrieves whether this database supports table correlation names. | |
supportsTransactionIsolationLevel(int level)Retrieves whether this database supports the given transaction isolation level. | |
supportsTransactions()Retrieves whether this database supports transactions. | |
supportsUnion()Retrieves whether this database supports SQL UNION. | |
supportsUnionAll()Retrieves whether this database supports SQL UNION ALL. | |
updatesAreDetected(int type)Retrieves whether or not a visible row update can be detected by calling the method ResultSet.rowUpdated. | |
usesLocalFilePerTable()Retrieves whether this database uses a file for each table. | |
usesLocalFiles()Retrieves whether this database stores tables in a local file. | |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor,unwrap |
static final intprocedureResultUnknown
A possible value for columnPROCEDURE_TYPE in theResultSet object returned by the methodgetProcedures.
static final intprocedureNoResult
A possible value for columnPROCEDURE_TYPE in theResultSet object returned by the methodgetProcedures.
static final intprocedureReturnsResult
A possible value for columnPROCEDURE_TYPE in theResultSet object returned by the methodgetProcedures.
static final intprocedureColumnUnknown
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetProcedureColumns.
static final intprocedureColumnIn
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetProcedureColumns.
static final intprocedureColumnInOut
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetProcedureColumns.
static final intprocedureColumnOut
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetProcedureColumns.
static final intprocedureColumnReturn
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetProcedureColumns.
static final intprocedureColumnResult
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetProcedureColumns.
static final intprocedureNoNulls
NULL values are not allowed. A possible value for the columnNULLABLE in theResultSet object returned by the methodgetProcedureColumns.
static final intprocedureNullable
NULL values are allowed. A possible value for the columnNULLABLE in theResultSet object returned by the methodgetProcedureColumns.
static final intprocedureNullableUnknown
NULL values are allowed is unknown. A possible value for the columnNULLABLE in theResultSet object returned by the methodgetProcedureColumns.
static final intcolumnNoNulls
NULL values. A possible value for the columnNULLABLE in theResultSet returned by the methodgetColumns.
static final intcolumnNullable
NULL values. A possible value for the columnNULLABLE in theResultSet returned by the methodgetColumns.
static final intcolumnNullableUnknown
A possible value for the columnNULLABLE in theResultSet returned by the methodgetColumns.
static final intbestRowTemporary
A possible value for the columnSCOPE in theResultSet object returned by the methodgetBestRowIdentifier.
static final intbestRowTransaction
A possible value for the columnSCOPE in theResultSet object returned by the methodgetBestRowIdentifier.
static final intbestRowSession
A possible value for the columnSCOPE in theResultSet object returned by the methodgetBestRowIdentifier.
static final intbestRowUnknown
A possible value for the columnPSEUDO_COLUMN in theResultSet object returned by the methodgetBestRowIdentifier.
static final intbestRowNotPseudo
A possible value for the columnPSEUDO_COLUMN in theResultSet object returned by the methodgetBestRowIdentifier.
static final intbestRowPseudo
A possible value for the columnPSEUDO_COLUMN in theResultSet object returned by the methodgetBestRowIdentifier.
static final intversionColumnUnknown
A possible value for the columnPSEUDO_COLUMN in theResultSet object returned by the methodgetVersionColumns.
static final intversionColumnNotPseudo
A possible value for the columnPSEUDO_COLUMN in theResultSet object returned by the methodgetVersionColumns.
static final intversionColumnPseudo
A possible value for the columnPSEUDO_COLUMN in theResultSet object returned by the methodgetVersionColumns.
static final intimportedKeyCascade
UPDATE_RULE, indicates that when the primary key is updated, the foreign key (imported key) is changed to agree with it. For the columnDELETE_RULE, it indicates that when the primary key is deleted, rows that imported that key are deleted. A possible value for the columnsUPDATE_RULE andDELETE_RULE in theResultSet objects returned by the methodsgetImportedKeys,getExportedKeys, andgetCrossReference.
static final intimportedKeyRestrict
UPDATE_RULE, indicates that a primary key may not be updated if it has been imported by another table as a foreign key. For the columnDELETE_RULE, indicates that a primary key may not be deleted if it has been imported by another table as a foreign key. A possible value for the columnsUPDATE_RULE andDELETE_RULE in theResultSet objects returned by the methodsgetImportedKeys,getExportedKeys, andgetCrossReference.
static final intimportedKeySetNull
UPDATE_RULE andDELETE_RULE, indicates that when the primary key is updated or deleted, the foreign key (imported key) is changed toNULL. A possible value for the columnsUPDATE_RULE andDELETE_RULE in theResultSet objects returned by the methodsgetImportedKeys,getExportedKeys, andgetCrossReference.
static final intimportedKeyNoAction
UPDATE_RULE andDELETE_RULE, indicates that if the primary key has been imported, it cannot be updated or deleted. A possible value for the columnsUPDATE_RULE andDELETE_RULE in theResultSet objects returned by the methodsgetImportedKeys,getExportedKeys, andgetCrossReference.
static final intimportedKeySetDefault
UPDATE_RULE andDELETE_RULE, indicates that if the primary key is updated or deleted, the foreign key (imported key) is set to the default value. A possible value for the columnsUPDATE_RULE andDELETE_RULE in theResultSet objects returned by the methodsgetImportedKeys,getExportedKeys, andgetCrossReference.
static final intimportedKeyInitiallyDeferred
A possible value for the columnDEFERRABILITY in theResultSet objects returned by the methodsgetImportedKeys,getExportedKeys, andgetCrossReference.
static final intimportedKeyInitiallyImmediate
A possible value for the columnDEFERRABILITY in theResultSet objects returned by the methodsgetImportedKeys,getExportedKeys, andgetCrossReference.
static final intimportedKeyNotDeferrable
A possible value for the columnDEFERRABILITY in theResultSet objects returned by the methodsgetImportedKeys,getExportedKeys, andgetCrossReference.
static final inttypeNoNulls
NULL value is NOT allowed for this data type. A possible value for columnNULLABLE in theResultSet object returned by the methodgetTypeInfo.
static final inttypeNullable
NULL value is allowed for this data type. A possible value for columnNULLABLE in theResultSet object returned by the methodgetTypeInfo.
static final inttypeNullableUnknown
NULL value is allowed for this data type. A possible value for columnNULLABLE in theResultSet object returned by the methodgetTypeInfo.
static final inttypePredNone
WHERE search clauses are not supported for this type. A possible value for columnSEARCHABLE in theResultSet object returned by the methodgetTypeInfo.
static final inttypePredChar
WHERE search clauses that useLIKE predicates. A possible value for columnSEARCHABLE in theResultSet object returned by the methodgetTypeInfo.
static final inttypePredBasic
WHERE search clauses that do not useLIKE predicates. A possible value for columnSEARCHABLE in theResultSet object returned by the methodgetTypeInfo.
static final inttypeSearchable
WHERE search clauses can be based on this type. A possible value for columnSEARCHABLE in theResultSet object returned by the methodgetTypeInfo.
static final shorttableIndexStatistic
A possible value for columnTYPE in theResultSet object returned by the methodgetIndexInfo.
static final shorttableIndexClustered
A possible value for columnTYPE in theResultSet object returned by the methodgetIndexInfo.
static final shorttableIndexHashed
A possible value for columnTYPE in theResultSet object returned by the methodgetIndexInfo.
static final shorttableIndexOther
A possible value for columnTYPE in theResultSet object returned by the methodgetIndexInfo.
static final shortattributeNoNulls
NULL values might not be allowed. A possible value for the columnNULLABLE in theResultSet object returned by the methodgetAttributes.
static final shortattributeNullable
NULL values are definitely allowed. A possible value for the columnNULLABLE in theResultSet object returned by the methodgetAttributes.
static final shortattributeNullableUnknown
NULL values are allowed is not known. A possible value for the columnNULLABLE in theResultSet object returned by the methodgetAttributes.
static final intsqlStateXOpen
DatabaseMetaData.getSQLStateType which is used to indicate whether the value returned by the methodSQLException.getSQLState is an X/Open (now know as Open Group) SQL CLI SQLSTATE value.static final intsqlStateSQL
DatabaseMetaData.getSQLStateType which is used to indicate whether the value returned by the methodSQLException.getSQLState is an SQLSTATE value.static final intsqlStateSQL99
DatabaseMetaData.getSQLStateType which is used to indicate whether the value returned by the methodSQLException.getSQLState is an SQL99 SQLSTATE value.Note:This constant remains only for compatibility reasons. Developers should use the constantsqlStateSQL instead.
static final intfunctionColumnUnknown
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetFunctionColumns.
static final intfunctionColumnIn
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetFunctionColumns.
static final intfunctionColumnInOut
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetFunctionColumns.
static final intfunctionColumnOut
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetFunctionColumns.
static final intfunctionReturn
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetFunctionColumns.
static final intfunctionColumnResult
A possible value for the columnCOLUMN_TYPE in theResultSet returned by the methodgetFunctionColumns.
static final intfunctionNoNulls
NULL values are not allowed. A possible value for the columnNULLABLE in theResultSet object returned by the methodgetFunctionColumns.
static final intfunctionNullable
NULL values are allowed. A possible value for the columnNULLABLE in theResultSet object returned by the methodgetFunctionColumns.
static final intfunctionNullableUnknown
NULL values are allowed is unknown. A possible value for the columnNULLABLE in theResultSet object returned by the methodgetFunctionColumns.
static final intfunctionResultUnknown
A possible value for columnFUNCTION_TYPE in theResultSet object returned by the methodgetFunctions.
static final intfunctionNoTable
A possible value for columnFUNCTION_TYPE in theResultSet object returned by the methodgetFunctions.
static final intfunctionReturnsTable
A possible value for columnFUNCTION_TYPE in theResultSet object returned by the methodgetFunctions.
booleanallProceduresAreCallable() throwsSQLException
getProcedures.true if so;false otherwiseSQLException - if a database access error occursbooleanallTablesAreSelectable() throwsSQLException
getTables in aSELECT statement.true if so;false otherwiseSQLException - if a database access error occursStringgetURL() throwsSQLException
null if it cannot be generatedSQLException - if a database access error occursStringgetUserName() throwsSQLException
SQLException - if a database access error occursbooleanisReadOnly() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleannullsAreSortedHigh() throwsSQLException
NULL values are sorted high. Sorted high means thatNULL values sort higher than any other value in a domain. In an ascending order, if this method returnstrue,NULL values will appear at the end. By contrast, the methodnullsAreSortedAtEnd indicates whetherNULL values are sorted at the end regardless of sort order.true if so;false otherwiseSQLException - if a database access error occursbooleannullsAreSortedLow() throwsSQLException
NULL values are sorted low. Sorted low means thatNULL values sort lower than any other value in a domain. In an ascending order, if this method returnstrue,NULL values will appear at the beginning. By contrast, the methodnullsAreSortedAtStart indicates whetherNULL values are sorted at the beginning regardless of sort order.true if so;false otherwiseSQLException - if a database access error occursbooleannullsAreSortedAtStart() throwsSQLException
NULL values are sorted at the start regardless of sort order.true if so;false otherwiseSQLException - if a database access error occursbooleannullsAreSortedAtEnd() throwsSQLException
NULL values are sorted at the end regardless of sort order.true if so;false otherwiseSQLException - if a database access error occursStringgetDatabaseProductName() throwsSQLException
SQLException - if a database access error occursStringgetDatabaseProductVersion() throwsSQLException
SQLException - if a database access error occursStringgetDriverName() throwsSQLException
SQLException - if a database access error occursStringgetDriverVersion() throwsSQLException
String.SQLException - if a database access error occursintgetDriverMajorVersion()
intgetDriverMinorVersion()
booleanusesLocalFiles() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleanusesLocalFilePerTable() throwsSQLException
true if this database uses a local file for each table;false otherwiseSQLException - if a database access error occursbooleansupportsMixedCaseIdentifiers() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleanstoresUpperCaseIdentifiers() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleanstoresLowerCaseIdentifiers() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleanstoresMixedCaseIdentifiers() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsMixedCaseQuotedIdentifiers() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleanstoresUpperCaseQuotedIdentifiers() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleanstoresLowerCaseQuotedIdentifiers() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleanstoresMixedCaseQuotedIdentifiers() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursStringgetIdentifierQuoteString() throwsSQLException
SQLException - if a database access error occursStringgetSQLKeywords() throwsSQLException
SQLException - if a database access error occursStringgetNumericFunctions() throwsSQLException
SQLException - if a database access error occursStringgetStringFunctions() throwsSQLException
SQLException - if a database access error occursStringgetSystemFunctions() throwsSQLException
SQLException - if a database access error occursStringgetTimeDateFunctions() throwsSQLException
SQLException - if a database access error occursStringgetSearchStringEscape() throwsSQLException
The '_' character represents any single character; the '%' character represents any sequence of zero or more characters.
SQLException - if a database access error occursStringgetExtraNameCharacters() throwsSQLException
SQLException - if a database access error occursbooleansupportsAlterTableWithAddColumn() throwsSQLException
ALTER TABLE with add column.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsAlterTableWithDropColumn() throwsSQLException
ALTER TABLE with drop column.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsColumnAliasing() throwsSQLException
If so, the SQL AS clause can be used to provide names for computed columns or to provide alias names for columns as required.
true if so;false otherwiseSQLException - if a database access error occursbooleannullPlusNonNullIsNull() throwsSQLException
NULL and non-NULL values beingNULL.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsConvert() throwsSQLException
CONVERT for the conversion of one JDBC type to another. The JDBC types are the generic SQL data types defined injava.sql.Types.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsConvert(int fromType, int toType) throwsSQLException
CONVERT for conversions between the JDBC typesfromType andtoType. The JDBC types are the generic SQL data types defined injava.sql.Types.fromType - the type to convert from; one of the type codes from the classjava.sql.TypestoType - the type to convert to; one of the type codes from the classjava.sql.Typestrue if so;false otherwiseSQLException - if a database access error occursTypesbooleansupportsTableCorrelationNames() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsDifferentTableCorrelationNames() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsExpressionsInOrderBy() throwsSQLException
ORDER BY lists.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsOrderByUnrelated() throwsSQLException
SELECT statement in anORDER BY clause.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsGroupBy() throwsSQLException
GROUP BY clause.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsGroupByUnrelated() throwsSQLException
SELECT statement in aGROUP BY clause.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsGroupByBeyondSelect() throwsSQLException
SELECT statement in aGROUP BY clause provided that all of the columns in theSELECT statement are included in theGROUP BY clause.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsLikeEscapeClause() throwsSQLException
LIKE escape clause.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsMultipleResultSets() throwsSQLException
ResultSet objects from a single call to the methodexecute.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsMultipleTransactions() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsNonNullableColumns() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsMinimumSQLGrammar() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsCoreSQLGrammar() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsExtendedSQLGrammar() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsANSI92EntryLevelSQL() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsANSI92IntermediateSQL() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsANSI92FullSQL() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsIntegrityEnhancementFacility() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsOuterJoins() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsFullOuterJoins() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsLimitedOuterJoins() throwsSQLException
true if the methodsupportsFullOuterJoins returnstrue).true if so;false otherwiseSQLException - if a database access error occursStringgetSchemaTerm() throwsSQLException
SQLException - if a database access error occursStringgetProcedureTerm() throwsSQLException
SQLException - if a database access error occursStringgetCatalogTerm() throwsSQLException
SQLException - if a database access error occursbooleanisCatalogAtStart() throwsSQLException
true if the catalog name appears at the beginning of a fully qualified table name;false otherwiseSQLException - if a database access error occursStringgetCatalogSeparator() throwsSQLException
String that this database uses as the separator between a catalog and table name.SQLException - if a database access error occursbooleansupportsSchemasInDataManipulation() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsSchemasInProcedureCalls() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsSchemasInTableDefinitions() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsSchemasInIndexDefinitions() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsSchemasInPrivilegeDefinitions() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsCatalogsInDataManipulation() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsCatalogsInProcedureCalls() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsCatalogsInTableDefinitions() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsCatalogsInIndexDefinitions() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsCatalogsInPrivilegeDefinitions() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsPositionedDelete() throwsSQLException
DELETE statements.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsPositionedUpdate() throwsSQLException
UPDATE statements.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsSelectForUpdate() throwsSQLException
SELECT FOR UPDATE statements.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsStoredProcedures() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsSubqueriesInComparisons() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsSubqueriesInExists() throwsSQLException
EXISTS expressions.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsSubqueriesInIns() throwsSQLException
IN expressions.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsSubqueriesInQuantifieds() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsCorrelatedSubqueries() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsUnion() throwsSQLException
UNION.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsUnionAll() throwsSQLException
UNION ALL.true if so;false otherwiseSQLException - if a database access error occursbooleansupportsOpenCursorsAcrossCommit() throwsSQLException
true if cursors always remain open;false if they might not remain openSQLException - if a database access error occursbooleansupportsOpenCursorsAcrossRollback() throwsSQLException
true if cursors always remain open;false if they might not remain openSQLException - if a database access error occursbooleansupportsOpenStatementsAcrossCommit() throwsSQLException
true if statements always remain open;false if they might not remain openSQLException - if a database access error occursbooleansupportsOpenStatementsAcrossRollback() throwsSQLException
true if statements always remain open;false if they might not remain openSQLException - if a database access error occursintgetMaxBinaryLiteralLength() throwsSQLException
SQLException - if a database access error occursintgetMaxCharLiteralLength() throwsSQLException
SQLException - if a database access error occursintgetMaxColumnNameLength() throwsSQLException
SQLException - if a database access error occursintgetMaxColumnsInGroupBy() throwsSQLException
GROUP BY clause.SQLException - if a database access error occursintgetMaxColumnsInIndex() throwsSQLException
SQLException - if a database access error occursintgetMaxColumnsInOrderBy() throwsSQLException
ORDER BY clause.SQLException - if a database access error occursintgetMaxColumnsInSelect() throwsSQLException
SELECT list.SQLException - if a database access error occursintgetMaxColumnsInTable() throwsSQLException
SQLException - if a database access error occursintgetMaxConnections() throwsSQLException
SQLException - if a database access error occursintgetMaxCursorNameLength() throwsSQLException
SQLException - if a database access error occursintgetMaxIndexLength() throwsSQLException
SQLException - if a database access error occursintgetMaxSchemaNameLength() throwsSQLException
SQLException - if a database access error occursintgetMaxProcedureNameLength() throwsSQLException
SQLException - if a database access error occursintgetMaxCatalogNameLength() throwsSQLException
SQLException - if a database access error occursintgetMaxRowSize() throwsSQLException
SQLException - if a database access error occursbooleandoesMaxRowSizeIncludeBlobs() throwsSQLException
getMaxRowSize includes the SQL data typesLONGVARCHAR andLONGVARBINARY.true if so;false otherwiseSQLException - if a database access error occursintgetMaxStatementLength() throwsSQLException
SQLException - if a database access error occursintgetMaxStatements() throwsSQLException
SQLException - if a database access error occursintgetMaxTableNameLength() throwsSQLException
SQLException - if a database access error occursintgetMaxTablesInSelect() throwsSQLException
SELECT statement.SELECT statement; a result of zero means that there is no limit or the limit is not knownSQLException - if a database access error occursintgetMaxUserNameLength() throwsSQLException
SQLException - if a database access error occursintgetDefaultTransactionIsolation() throwsSQLException
java.sql.Connection.SQLException - if a database access error occursConnectionbooleansupportsTransactions() throwsSQLException
commit is a noop, and the isolation level isTRANSACTION_NONE.true if transactions are supported;false otherwiseSQLException - if a database access error occursbooleansupportsTransactionIsolationLevel(int level) throwsSQLException
level - one of the transaction isolation levels defined injava.sql.Connectiontrue if so;false otherwiseSQLException - if a database access error occursConnectionbooleansupportsDataDefinitionAndDataManipulationTransactions() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleansupportsDataManipulationTransactionsOnly() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleandataDefinitionCausesTransactionCommit() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleandataDefinitionIgnoredInTransactions() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursResultSetgetProcedures(String catalog,String schemaPattern,String procedureNamePattern) throwsSQLException
Only procedure descriptions matching the schema and procedure name criteria are returned. They are ordered byPROCEDURE_CAT,PROCEDURE_SCHEM,PROCEDURE_NAME andSPECIFIC_ NAME.
Each procedure description has the the following columns:
null)null) A user may not have permissions to execute any of the procedures that are returned bygetProcedures
catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchprocedureNamePattern - a procedure name pattern; must match the procedure name as it is stored in the databaseResultSet - each row is a procedure descriptionSQLException - if a database access error occursgetSearchStringEscape()ResultSetgetProcedureColumns(String catalog,String schemaPattern,String procedureNamePattern,String columnNamePattern) throwsSQLException
Only descriptions matching the schema, procedure and parameter name criteria are returned. They are ordered by PROCEDURE_CAT, PROCEDURE_SCHEM, PROCEDURE_NAME and SPECIFIC_NAME. Within this, the return value, if any, is first. Next are the parameter descriptions in call order. The column descriptions follow in column number order.
Each row in theResultSet is a parameter description or column description with the following fields:
null)null)ResultSetnull)Note: Some databases may not return the column descriptions for a procedure.
The PRECISION column represents the specified column size for the given column. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. Null is returned for data types where the column size is not applicable.
catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchprocedureNamePattern - a procedure name pattern; must match the procedure name as it is stored in the databasecolumnNamePattern - a column name pattern; must match the column name as it is stored in the databaseResultSet - each row describes a stored procedure parameter or columnSQLException - if a database access error occursgetSearchStringEscape()ResultSetgetTables(String catalog,String schemaPattern,String tableNamePattern,String[] types) throwsSQLException
TABLE_TYPE,TABLE_CAT,TABLE_SCHEM andTABLE_NAME.Each table description has the following columns:
null)null)null)null)null)null)null)Note: Some databases may not return information for all tables.
catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtableNamePattern - a table name pattern; must match the table name as it is stored in the databasetypes - a list of table types, which must be from the list of table types returned fromgetTableTypes(),to include;null returns all typesResultSet - each row is a table descriptionSQLException - if a database access error occursgetSearchStringEscape()ResultSetgetSchemas() throwsSQLException
TABLE_CATALOG andTABLE_SCHEM.The schema columns are:
null)ResultSet object in which each row is a schema descriptionSQLException - if a database access error occursResultSetgetCatalogs() throwsSQLException
The catalog column is:
ResultSet object in which each row has a singleString column that is a catalog nameSQLException - if a database access error occursResultSetgetTableTypes() throwsSQLException
The table type is:
ResultSet object in which each row has a singleString column that is a table typeSQLException - if a database access error occursResultSetgetColumns(String catalog,String schemaPattern,String tableNamePattern,String columnNamePattern) throwsSQLException
Only column descriptions matching the catalog, schema, table and column name criteria are returned. They are ordered byTABLE_CAT,TABLE_SCHEM,TABLE_NAME, andORDINAL_POSITION.
Each column description has the following columns:
null)null)NULL valuesNULL valuesnull)null)null if DATA_TYPE isn't REF)null if the DATA_TYPE isn't REF)null if the DATA_TYPE isn't REF)null if DATA_TYPE isn't DISTINCT or user-generated REF)The COLUMN_SIZE column the specified column size for the given column. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. Null is returned for data types where the column size is not applicable.
catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtableNamePattern - a table name pattern; must match the table name as it is stored in the databasecolumnNamePattern - a column name pattern; must match the column name as it is stored in the databaseResultSet - each row is a column descriptionSQLException - if a database access error occursgetSearchStringEscape()ResultSetgetColumnPrivileges(String catalog,String schema,String table,String columnNamePattern) throwsSQLException
Only privileges matching the column name criteria are returned. They are ordered by COLUMN_NAME and PRIVILEGE.
Each privilige description has the following columns:
null)null)null)null if unknowncatalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtable - a table name; must match the table name as it is stored in the databasecolumnNamePattern - a column name pattern; must match the column name as it is stored in the databaseResultSet - each row is a column privilege descriptionSQLException - if a database access error occursgetSearchStringEscape()ResultSetgetTablePrivileges(String catalog,String schemaPattern,String tableNamePattern) throwsSQLException
Only privileges matching the schema and table name criteria are returned. They are ordered byTABLE_CAT,TABLE_SCHEM,TABLE_NAME, andPRIVILEGE.
Each privilige description has the following columns:
null)null)null)null if unknowncatalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtableNamePattern - a table name pattern; must match the table name as it is stored in the databaseResultSet - each row is a table privilege descriptionSQLException - if a database access error occursgetSearchStringEscape()ResultSetgetBestRowIdentifier(String catalog,String schema,String table, int scope, boolean nullable) throwsSQLException
Each column description has the following columns:
The COLUMN_SIZE column represents the specified column size for the given column. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. Null is returned for data types where the column size is not applicable.
catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtable - a table name; must match the table name as it is stored in the databasescope - the scope of interest; use same values as SCOPEnullable - include columns that are nullable.ResultSet - each row is a column descriptionSQLException - if a database access error occursResultSetgetVersionColumns(String catalog,String schema,String table) throwsSQLException
Each column description has the following columns:
java.sql.TypesThe COLUMN_SIZE column represents the specified column size for the given column. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. Null is returned for data types where the column size is not applicable.
catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtable - a table name; must match the table name as it is stored in the databaseResultSet object in which each row is a column descriptionSQLException - if a database access error occursResultSetgetPrimaryKeys(String catalog,String schema,String table) throwsSQLException
Each primary key column description has the following columns:
null)null)null)catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtable - a table name; must match the table name as it is stored in the databaseResultSet - each row is a primary key column descriptionSQLException - if a database access error occursResultSetgetImportedKeys(String catalog,String schema,String table) throwsSQLException
Each primary key column description has the following columns:
null)null)null)null)NULL if its primary key has been updatednull)null)catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtable - a table name; must match the table name as it is stored in the databaseResultSet - each row is a primary key column descriptionSQLException - if a database access error occursgetExportedKeys(java.lang.String, java.lang.String, java.lang.String)ResultSetgetExportedKeys(String catalog,String schema,String table) throwsSQLException
Each foreign key column description has the following columns:
null)null)null) being exported (may benull)null) being exported (may benull)NULL if its primary key has been updatedNULL if its primary key has been deletednull)null)catalog - a catalog name; must match the catalog name as it is stored in this database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtable - a table name; must match the table name as it is stored in this databaseResultSet object in which each row is a foreign key column descriptionSQLException - if a database access error occursgetImportedKeys(java.lang.String, java.lang.String, java.lang.String)ResultSetgetCrossReference(String parentCatalog,String parentSchema,String parentTable,String foreignCatalog,String foreignSchema,String foreignTable) throwsSQLException
Each foreign key column description has the following columns:
null)null)null) being exported (may benull)null) being exported (may benull)NULL if its parent key has been updatedNULL if its primary key has been deletednull)null)parentCatalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means drop catalog name from the selection criteriaparentSchema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means drop schema name from the selection criteriaparentTable - the name of the table that exports the key; must match the table name as it is stored in the databaseforeignCatalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means drop catalog name from the selection criteriaforeignSchema - a schema name; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means drop schema name from the selection criteriaforeignTable - the name of the table that imports the key; must match the table name as it is stored in the databaseResultSet - each row is a foreign key column descriptionSQLException - if a database access error occursgetImportedKeys(java.lang.String, java.lang.String, java.lang.String)ResultSetgetTypeInfo() throwsSQLException
If the database supports SQL distinct types, then getTypeInfo() will return a single row with a TYPE_NAME of DISTINCT and a DATA_TYPE of Types.DISTINCT. If the database supports SQL structured types, then getTypeInfo() will return a single row with a TYPE_NAME of STRUCT and a DATA_TYPE of Types.STRUCT.
If SQL distinct or structured types are supported, then information on the individual types may be obtained from the getUDTs() method.
Each type description has the following columns:
null)null)null)null)The PRECISION column represents the maximum column size that the server supports for the given datatype. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. Null is returned for data types where the column size is not applicable.
ResultSet object in which each row is an SQL type descriptionSQLException - if a database access error occursResultSetgetIndexInfo(String catalog,String schema,String table, boolean unique, boolean approximate) throwsSQLException
Each index column description has the following columns:
null)null)null);null when TYPE is tableIndexStatisticnull when TYPE is tableIndexStatisticnull when TYPE is tableIndexStatisticnull if sort sequence is not supported;null when TYPE is tableIndexStatisticnull)catalog - a catalog name; must match the catalog name as it is stored in this database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschema - a schema name; must match the schema name as it is stored in this database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtable - a table name; must match the table name as it is stored in this databaseunique - when true, return only indices for unique values; when false, return indices regardless of whether unique or notapproximate - when true, result is allowed to reflect approximate or out of data values; when false, results are requested to be accurateResultSet - each row is an index column descriptionSQLException - if a database access error occursbooleansupportsResultSetType(int type) throwsSQLException
type - defined injava.sql.ResultSettrue if so;false otherwiseSQLException - if a database access error occursConnectionbooleansupportsResultSetConcurrency(int type, int concurrency) throwsSQLException
type - defined injava.sql.ResultSetconcurrency - type defined injava.sql.ResultSettrue if so;false otherwiseSQLException - if a database access error occursConnectionbooleanownUpdatesAreVisible(int type) throwsSQLException
ResultSet object, the result set's own updates are visible.type - theResultSet type; one ofResultSet.TYPE_FORWARD_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE, orResultSet.TYPE_SCROLL_SENSITIVEtrue if updates are visible for the given result set type;false otherwiseSQLException - if a database access error occursbooleanownDeletesAreVisible(int type) throwsSQLException
type - theResultSet type; one ofResultSet.TYPE_FORWARD_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE, orResultSet.TYPE_SCROLL_SENSITIVEtrue if deletes are visible for the given result set type;false otherwiseSQLException - if a database access error occursbooleanownInsertsAreVisible(int type) throwsSQLException
type - theResultSet type; one ofResultSet.TYPE_FORWARD_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE, orResultSet.TYPE_SCROLL_SENSITIVEtrue if inserts are visible for the given result set type;false otherwiseSQLException - if a database access error occursbooleanothersUpdatesAreVisible(int type) throwsSQLException
type - theResultSet type; one ofResultSet.TYPE_FORWARD_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE, orResultSet.TYPE_SCROLL_SENSITIVEtrue if updates made by others are visible for the given result set type;false otherwiseSQLException - if a database access error occursbooleanothersDeletesAreVisible(int type) throwsSQLException
type - theResultSet type; one ofResultSet.TYPE_FORWARD_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE, orResultSet.TYPE_SCROLL_SENSITIVEtrue if deletes made by others are visible for the given result set type;false otherwiseSQLException - if a database access error occursbooleanothersInsertsAreVisible(int type) throwsSQLException
type - theResultSet type; one ofResultSet.TYPE_FORWARD_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE, orResultSet.TYPE_SCROLL_SENSITIVEtrue if inserts made by others are visible for the given result set type;false otherwiseSQLException - if a database access error occursbooleanupdatesAreDetected(int type) throwsSQLException
ResultSet.rowUpdated.type - theResultSet type; one ofResultSet.TYPE_FORWARD_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE, orResultSet.TYPE_SCROLL_SENSITIVEtrue if changes are detected by the result set type;false otherwiseSQLException - if a database access error occursbooleandeletesAreDetected(int type) throwsSQLException
ResultSet.rowDeleted. If the methoddeletesAreDetected returnsfalse, it means that deleted rows are removed from the result set.type - theResultSet type; one ofResultSet.TYPE_FORWARD_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE, orResultSet.TYPE_SCROLL_SENSITIVEtrue if deletes are detected by the given result set type;false otherwiseSQLException - if a database access error occursbooleaninsertsAreDetected(int type) throwsSQLException
ResultSet.rowInserted.type - theResultSet type; one ofResultSet.TYPE_FORWARD_ONLY,ResultSet.TYPE_SCROLL_INSENSITIVE, orResultSet.TYPE_SCROLL_SENSITIVEtrue if changes are detected by the specified result set type;false otherwiseSQLException - if a database access error occursbooleansupportsBatchUpdates() throwsSQLException
true if this database supports batch upcates;false otherwiseSQLException - if a database access error occursResultSetgetUDTs(String catalog,String schemaPattern,String typeNamePattern, int[] types) throwsSQLException
JAVA_OBJECT,STRUCT, orDISTINCT.Only types matching the catalog, schema, type name and type criteria are returned. They are ordered byDATA_TYPE,TYPE_CAT,TYPE_SCHEM andTYPE_NAME. The type name parameter may be a fully-qualified name. In this case, the catalog and schemaPattern parameters are ignored.
Each type description has the following columns:
null)null)null if DATA_TYPE is not DISTINCT or not STRUCT with REFERENCE_GENERATION = USER_DEFINED)Note: If the driver does not support UDTs, an empty result set is returned.
catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschemaPattern - a schema pattern name; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtypeNamePattern - a type name pattern; must match the type name as it is stored in the database; may be a fully qualified nametypes - a list of user-defined types (JAVA_OBJECT, STRUCT, or DISTINCT) to include;null returns all typesResultSet object in which each row describes a UDTSQLException - if a database access error occursgetSearchStringEscape()ConnectiongetConnection() throwsSQLException
SQLException - if a database access error occursbooleansupportsSavepoints() throwsSQLException
true if savepoints are supported;false otherwiseSQLException - if a database access error occursbooleansupportsNamedParameters() throwsSQLException
true if named parameters are supported;false otherwiseSQLException - if a database access error occursbooleansupportsMultipleOpenResults() throwsSQLException
ResultSet objects returned from aCallableStatement object simultaneously.true if aCallableStatement object can return multipleResultSet objects simultaneously;false otherwiseSQLException - if a datanase access error occursbooleansupportsGetGeneratedKeys() throwsSQLException
true if auto-generated keys can be retrieved after a statement has executed;false otherwiseIftrue is returned, the JDBC driver must support the returning of auto-generated keys for at least SQL INSERT statements
SQLException - if a database access error occursResultSetgetSuperTypes(String catalog,String schemaPattern,String typeNamePattern) throwsSQLException
Only supertype information for UDTs matching the catalog, schema, and type name is returned. The type name parameter may be a fully-qualified name. When the UDT name supplied is a fully-qualified name, the catalog and schemaPattern parameters are ignored.
If a UDT does not have a direct super type, it is not listed here. A row of theResultSet object returned by this method describes the designated UDT and a direct supertype. A row has the following columns:
null)null)null)null)Note: If the driver does not support type hierarchies, an empty result set is returned.
catalog - a catalog name; "" retrieves those without a catalog;null means drop catalog name from the selection criteriaschemaPattern - a schema name pattern; "" retrieves those without a schematypeNamePattern - a UDT name pattern; may be a fully-qualified nameResultSet object in which a row gives information about the designated UDTSQLException - if a database access error occursgetSearchStringEscape()ResultSetgetSuperTables(String catalog,String schemaPattern,String tableNamePattern) throwsSQLException
Only supertable information for tables matching the catalog, schema and table name are returned. The table name parameter may be a fully- qualified name, in which case, the catalog and schemaPattern parameters are ignored. If a table does not have a super table, it is not listed here. Supertables have to be defined in the same catalog and schema as the sub tables. Therefore, the type description does not need to include this information for the supertable.
Each type description has the following columns:
null)null)Note: If the driver does not support type hierarchies, an empty result set is returned.
catalog - a catalog name; "" retrieves those without a catalog;null means drop catalog name from the selection criteriaschemaPattern - a schema name pattern; "" retrieves those without a schematableNamePattern - a table name pattern; may be a fully-qualified nameResultSet object in which each row is a type descriptionSQLException - if a database access error occursgetSearchStringEscape()ResultSetgetAttributes(String catalog,String schemaPattern,String typeNamePattern,String attributeNamePattern) throwsSQLException
Descriptions are returned only for attributes of UDTs matching the catalog, schema, type, and attribute name criteria. They are ordered byTYPE_CAT,TYPE_SCHEM,TYPE_NAME andORDINAL_POSITION. This description does not contain inherited attributes.
TheResultSet object that is returned has the following columns:
null)null)null)null)null if DATA_TYPE isn't REF)null if DATA_TYPE isn't REF)null if the DATA_TYPE isn't REF)null if DATA_TYPE isn't DISTINCT or user-generated REF)catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchtypeNamePattern - a type name pattern; must match the type name as it is stored in the databaseattributeNamePattern - an attribute name pattern; must match the attribute name as it is declared in the databaseResultSet object in which each row is an attribute descriptionSQLException - if a database access error occursgetSearchStringEscape()booleansupportsResultSetHoldability(int holdability) throwsSQLException
holdability - one of the following constants:ResultSet.HOLD_CURSORS_OVER_COMMIT orResultSet.CLOSE_CURSORS_AT_COMMIT- Returns:
true if so;false otherwise- Throws:
SQLException - if a database access error occurs- Since:
- 1.4
- See Also:
ConnectionintgetResultSetHoldability() throwsSQLException
ResultSet objects.ResultSet.HOLD_CURSORS_OVER_COMMIT orResultSet.CLOSE_CURSORS_AT_COMMITSQLException - if a database access error occursintgetDatabaseMajorVersion() throwsSQLException
SQLException - if a database access error occursintgetDatabaseMinorVersion() throwsSQLException
SQLException - if a database access error occursintgetJDBCMajorVersion() throwsSQLException
SQLException - if a database access error occursintgetJDBCMinorVersion() throwsSQLException
SQLException - if a database access error occursintgetSQLStateType() throwsSQLException
SQLException.getSQLState is X/Open (now known as Open Group) SQL CLI or SQL:2003.SQLException - if a database access error occursbooleanlocatorsUpdateCopy() throwsSQLException
true if updates are made to a copy of the LOB;false if updates are made directly to the LOBSQLException - if a database access error occursbooleansupportsStatementPooling() throwsSQLException
true if so;false otherwiseSQLExcpetion - if a database access error occursSQLExceptionRowIdLifetimegetRowIdLifetime() throwsSQLException
ROWID type, and if so the lifetime for which aRowId object remains valid.The returned int values have the following relationship:
ROWID_UNSUPPORTED< ROWID_VALID_OTHER< ROWID_VALID_TRANSACTION< ROWID_VALID_SESSION< ROWID_VALID_FOREVERso conditional logic such as
if (metadata.getRowIdLifetime() > DatabaseMetaData.ROWID_VALID_TRANSACTION)can be used. Valid Forever means valid across all Sessions, and valid for a Session means valid across all its contained Transactions.
RowIdSQLException - if a database access error occursResultSetgetSchemas(String catalog,String schemaPattern) throwsSQLException
TABLE_CATALOG andTABLE_SCHEM.The schema columns are:
null)catalog - a catalog name; must match the catalog name as it is stored in the database;"" retrieves those without a catalog; null means catalog name should not be used to narrow down the search.schemaPattern - a schema name; must match the schema name as it is stored in the database; null means schema name should not be used to narrow down the search.ResultSet object in which each row is a schema descriptionSQLException - if a database access error occursgetSearchStringEscape()booleansupportsStoredFunctionsUsingCallSyntax() throwsSQLException
true if so;false otherwiseSQLException - if a database access error occursbooleanautoCommitFailureClosesAllResultSets() throwsSQLException
SQLException while autoCommit istrue inidcates that all open ResultSets are closed, even ones that are holdable. When aSQLException occurs while autocommit istrue, it is vendor specific whether the JDBC driver responds with a commit operation, a rollback operation, or by doing neither a commit nor a rollback. A potential result of this difference is in whether or not holdable ResultSets are closed.true if so;false otherwiseSQLException - if a database access error occursResultSetgetClientInfoProperties() throwsSQLException
TheResultSet is sorted by the NAME column
ResultSet object; each row is a supported client info propertySQLException - if a database access error occursResultSetgetFunctions(String catalog,String schemaPattern,String functionNamePattern) throwsSQLException
Only system and user function descriptions matching the schema and function name criteria are returned. They are ordered byFUNCTION_CAT,FUNCTION_SCHEM,FUNCTION_NAME andSPECIFIC_ NAME.
Each function description has the the following columns:
null)null)FUNCTION_NAME for example with overload functions A user may not have permission to execute any of the functions that are returned bygetFunctions
catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchfunctionNamePattern - a function name pattern; must match the function name as it is stored in the databaseResultSet - each row is a function descriptionSQLException - if a database access error occursgetSearchStringEscape()ResultSetgetFunctionColumns(String catalog,String schemaPattern,String functionNamePattern,String columnNamePattern) throwsSQLException
Only descriptions matching the schema, function and parameter name criteria are returned. They are ordered byFUNCTION_CAT,FUNCTION_SCHEM,FUNCTION_NAME andSPECIFIC_ NAME. Within this, the return value, if any, is first. Next are the parameter descriptions in call order. The column descriptions follow in column number order.
Each row in theResultSet is a parameter description, column description or return type description with the following fields:
null)null)ResultSetFUNCTION_NAME for example with overload functionsThe PRECISION column represents the specified column size for the given parameter or column. For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. Null is returned for data types where the column size is not applicable.
catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog;null means that the catalog name should not be used to narrow the searchschemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema;null means that the schema name should not be used to narrow the searchfunctionNamePattern - a procedure name pattern; must match the function name as it is stored in the databasecolumnNamePattern - a parameter name pattern; must match the parameter or column name as it is stored in the databaseResultSet - each row describes a user function parameter, column or return typeSQLException - if a database access error occursgetSearchStringEscape()| Java™ Platform Standard Ed. 6 | ||||||||||