- All Implemented Interfaces:
DatabaseMetaData
,Wrapper
DatabaseMetaData
for the SPI connection.- Author:
- Filip Hrbek
-
Field Summary
Fields inherited from interface java.sql.DatabaseMetaData
attributeNoNulls, attributeNullable, attributeNullableUnknown, bestRowNotPseudo, bestRowPseudo, bestRowSession, bestRowTemporary, bestRowTransaction, bestRowUnknown, columnNoNulls, columnNullable, columnNullableUnknown, functionColumnIn, functionColumnInOut, functionColumnOut, functionColumnResult, functionColumnUnknown, functionNoNulls, functionNoTable, functionNullable, functionNullableUnknown, functionResultUnknown, functionReturn, functionReturnsTable, importedKeyCascade, importedKeyInitiallyDeferred, importedKeyInitiallyImmediate, importedKeyNoAction, importedKeyNotDeferrable, importedKeyRestrict, importedKeySetDefault, importedKeySetNull, procedureColumnIn, procedureColumnInOut, procedureColumnOut, procedureColumnResult, procedureColumnReturn, procedureColumnUnknown, procedureNoNulls, procedureNoResult, procedureNullable, procedureNullableUnknown, procedureResultUnknown, procedureReturnsResult, sqlStateSQL, sqlStateSQL99, sqlStateXOpen, tableIndexClustered, tableIndexHashed, tableIndexOther, tableIndexStatistic, typeNoNulls, typeNullable, typeNullableUnknown, typePredBasic, typePredChar, typePredNone, typeSearchable, versionColumnNotPseudo, versionColumnPseudo, versionColumnUnknown
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
deletesAreDetected
(int i) boolean
boolean
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) getColumnPrivileges
(String catalog, String schema, String table, String columnNamePattern) getColumns
(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) getCrossReference
(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) int
Retrieves the major version number of the underlying database.int
Retrieves the minor version number of the underlying database.int
int
int
getExportedKeys
(String catalog, String schema, String table) getFunctionColumns
(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) getFunctions
(String catalog, String schemaPattern, String functionNamePattern) protected ResultSet
getImportedExportedKeys
(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) getImportedKeys
(String catalog, String schema, String table) getIndexInfo
(String catalog, String schema, String tableName, boolean unique, boolean approximate) int
Retrieves the major JDBC version number for this driver.int
Retrieves the minor JDBC version number for this driver.int
int
int
int
int
int
int
int
int
int
int
protected int
int
protected int
int
int
int
int
int
int
int
int
get supported escaped numeric functionsgetPrimaryKeys
(String catalog, String schema, String table) getProcedureColumns
(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) getProcedures
(String catalog, String schemaPattern, String procedureNamePattern) getPseudoColumns
(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) int
Retrieves the default holdability of thisResultSet
object.getSchemas
(String catalog, String schemaPattern) int
Indicates whether the SQLSTATEs returned bySQLException.getSQLState
is X/Open (now known as Open Group) SQL CLI or SQL99.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.getTablePrivileges
(String catalog, String schemaPattern, String tableNamePattern) getURL()
getVersionColumns
(String catalog, String schema, String table) boolean
insertsAreDetected
(int type) boolean
boolean
boolean
isWrapperFor
(Class<?> iface) boolean
Indicates whether updates made to a LOB are made on a copy or directly to the LOB.boolean
boolean
boolean
boolean
boolean
boolean
othersDeletesAreVisible
(int i) boolean
othersInsertsAreVisible
(int type) boolean
othersUpdatesAreVisible
(int type) boolean
ownDeletesAreVisible
(int type) boolean
ownInsertsAreVisible
(int type) boolean
ownUpdatesAreVisible
(int type) Take the a String representing an array of ACLs and return a HashMap mapping the SQL permission name to a ArrayList of usernames who have that permission.boolean
rowChangesAreDetected
(int type) boolean
rowChangesAreVisible
(int type) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
supportsConvert
(int fromType, int toType) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Retrieves whether auto-generated keys can be retrieved after a statement has been executed.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Retrieves whether it is possible to have multipleResultSet
objects returned from aCallableStatement
object simultaneously.boolean
boolean
boolean
Retrieves whether this database supports named parameters to callable statements.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
supportsResultSetConcurrency
(int type, int concurrency) boolean
supportsResultSetHoldability
(int holdability) Retrieves whether this database supports the given result set holdability.boolean
supportsResultSetType
(int type) boolean
Retrieves whether this database supports savepoints.boolean
boolean
boolean
boolean
boolean
boolean
boolean
Retrieves weather this database supports statement pooling.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
supportsTransactionIsolationLevel
(int level) boolean
boolean
boolean
<T> T
boolean
updatesAreDetected
(int type) boolean
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.DatabaseMetaData
getMaxLogicalLobSize, supportsRefCursors, supportsSharding
-
Constructor Details
-
SPIDatabaseMetaData
-
-
Method Details
-
getMaxIndexKeys
- Throws:
SQLException
-
getMaxNameLength
- Throws:
SQLException
-
allProceduresAreCallable
- Specified by:
allProceduresAreCallable
in interfaceDatabaseMetaData
- Throws:
SQLException
-
allTablesAreSelectable
- Specified by:
allTablesAreSelectable
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getURL
- Specified by:
getURL
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getUserName
- Specified by:
getUserName
in interfaceDatabaseMetaData
- Throws:
SQLException
-
isReadOnly
- Specified by:
isReadOnly
in interfaceDatabaseMetaData
- Throws:
SQLException
-
nullsAreSortedHigh
- Specified by:
nullsAreSortedHigh
in interfaceDatabaseMetaData
- Throws:
SQLException
-
nullsAreSortedLow
- Specified by:
nullsAreSortedLow
in interfaceDatabaseMetaData
- Throws:
SQLException
-
nullsAreSortedAtStart
- Specified by:
nullsAreSortedAtStart
in interfaceDatabaseMetaData
- Throws:
SQLException
-
nullsAreSortedAtEnd
- Specified by:
nullsAreSortedAtEnd
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getDatabaseProductName
- Specified by:
getDatabaseProductName
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getDatabaseProductVersion
- Specified by:
getDatabaseProductVersion
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getDriverName
- Specified by:
getDriverName
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getDriverVersion
- Specified by:
getDriverVersion
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getDriverMajorVersion
public int getDriverMajorVersion()- Specified by:
getDriverMajorVersion
in interfaceDatabaseMetaData
-
getDriverMinorVersion
public int getDriverMinorVersion()- Specified by:
getDriverMinorVersion
in interfaceDatabaseMetaData
-
usesLocalFiles
- Specified by:
usesLocalFiles
in interfaceDatabaseMetaData
- Throws:
SQLException
-
usesLocalFilePerTable
- Specified by:
usesLocalFilePerTable
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsMixedCaseIdentifiers
- Specified by:
supportsMixedCaseIdentifiers
in interfaceDatabaseMetaData
- Throws:
SQLException
-
storesUpperCaseIdentifiers
- Specified by:
storesUpperCaseIdentifiers
in interfaceDatabaseMetaData
- Throws:
SQLException
-
storesLowerCaseIdentifiers
- Specified by:
storesLowerCaseIdentifiers
in interfaceDatabaseMetaData
- Throws:
SQLException
-
storesMixedCaseIdentifiers
- Specified by:
storesMixedCaseIdentifiers
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsMixedCaseQuotedIdentifiers
- Specified by:
supportsMixedCaseQuotedIdentifiers
in interfaceDatabaseMetaData
- Throws:
SQLException
-
storesUpperCaseQuotedIdentifiers
- Specified by:
storesUpperCaseQuotedIdentifiers
in interfaceDatabaseMetaData
- Throws:
SQLException
-
storesLowerCaseQuotedIdentifiers
- Specified by:
storesLowerCaseQuotedIdentifiers
in interfaceDatabaseMetaData
- Throws:
SQLException
-
storesMixedCaseQuotedIdentifiers
- Specified by:
storesMixedCaseQuotedIdentifiers
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getIdentifierQuoteString
- Specified by:
getIdentifierQuoteString
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getSQLKeywords
- Specified by:
getSQLKeywords
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getNumericFunctions
get supported escaped numeric functions- Specified by:
getNumericFunctions
in interfaceDatabaseMetaData
- Returns:
- a comma separated list of function names
- Throws:
SQLException
-
getStringFunctions
- Specified by:
getStringFunctions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getSystemFunctions
- Specified by:
getSystemFunctions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getTimeDateFunctions
- Specified by:
getTimeDateFunctions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getSearchStringEscape
- Specified by:
getSearchStringEscape
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getExtraNameCharacters
- Specified by:
getExtraNameCharacters
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsAlterTableWithAddColumn
- Specified by:
supportsAlterTableWithAddColumn
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsAlterTableWithDropColumn
- Specified by:
supportsAlterTableWithDropColumn
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsColumnAliasing
- Specified by:
supportsColumnAliasing
in interfaceDatabaseMetaData
- Throws:
SQLException
-
nullPlusNonNullIsNull
- Specified by:
nullPlusNonNullIsNull
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsConvert
- Specified by:
supportsConvert
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsConvert
- Specified by:
supportsConvert
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsTableCorrelationNames
- Specified by:
supportsTableCorrelationNames
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsDifferentTableCorrelationNames
- Specified by:
supportsDifferentTableCorrelationNames
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsExpressionsInOrderBy
- Specified by:
supportsExpressionsInOrderBy
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsGroupBy
- Specified by:
supportsGroupBy
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsGroupByBeyondSelect
- Specified by:
supportsGroupByBeyondSelect
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsLikeEscapeClause
- Specified by:
supportsLikeEscapeClause
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsMultipleResultSets
- Specified by:
supportsMultipleResultSets
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsMultipleTransactions
- Specified by:
supportsMultipleTransactions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsNonNullableColumns
- Specified by:
supportsNonNullableColumns
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsMinimumSQLGrammar
- Specified by:
supportsMinimumSQLGrammar
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsCoreSQLGrammar
- Specified by:
supportsCoreSQLGrammar
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsExtendedSQLGrammar
- Specified by:
supportsExtendedSQLGrammar
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsANSI92EntryLevelSQL
- Specified by:
supportsANSI92EntryLevelSQL
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsANSI92IntermediateSQL
- Specified by:
supportsANSI92IntermediateSQL
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsANSI92FullSQL
- Specified by:
supportsANSI92FullSQL
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsIntegrityEnhancementFacility
- Specified by:
supportsIntegrityEnhancementFacility
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsOuterJoins
- Specified by:
supportsOuterJoins
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsFullOuterJoins
- Specified by:
supportsFullOuterJoins
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsLimitedOuterJoins
- Specified by:
supportsLimitedOuterJoins
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getSchemaTerm
- Specified by:
getSchemaTerm
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getProcedureTerm
- Specified by:
getProcedureTerm
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getCatalogTerm
- Specified by:
getCatalogTerm
in interfaceDatabaseMetaData
- Throws:
SQLException
-
isCatalogAtStart
- Specified by:
isCatalogAtStart
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getCatalogSeparator
- Specified by:
getCatalogSeparator
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsSchemasInDataManipulation
- Specified by:
supportsSchemasInDataManipulation
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsSchemasInProcedureCalls
- Specified by:
supportsSchemasInProcedureCalls
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsSchemasInTableDefinitions
- Specified by:
supportsSchemasInTableDefinitions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsSchemasInIndexDefinitions
- Specified by:
supportsSchemasInIndexDefinitions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsSchemasInPrivilegeDefinitions
- Specified by:
supportsSchemasInPrivilegeDefinitions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsCatalogsInDataManipulation
- Specified by:
supportsCatalogsInDataManipulation
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsCatalogsInProcedureCalls
- Specified by:
supportsCatalogsInProcedureCalls
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsCatalogsInTableDefinitions
- Specified by:
supportsCatalogsInTableDefinitions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsCatalogsInIndexDefinitions
- Specified by:
supportsCatalogsInIndexDefinitions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsCatalogsInPrivilegeDefinitions
- Specified by:
supportsCatalogsInPrivilegeDefinitions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsPositionedDelete
- Specified by:
supportsPositionedDelete
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsPositionedUpdate
- Specified by:
supportsPositionedUpdate
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsSelectForUpdate
- Specified by:
supportsSelectForUpdate
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsStoredProcedures
- Specified by:
supportsStoredProcedures
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsSubqueriesInComparisons
- Specified by:
supportsSubqueriesInComparisons
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsSubqueriesInExists
- Specified by:
supportsSubqueriesInExists
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsSubqueriesInIns
- Specified by:
supportsSubqueriesInIns
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsSubqueriesInQuantifieds
- Specified by:
supportsSubqueriesInQuantifieds
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsUnion
- Specified by:
supportsUnion
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsUnionAll
- Specified by:
supportsUnionAll
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsOpenCursorsAcrossCommit
- Specified by:
supportsOpenCursorsAcrossCommit
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsOpenCursorsAcrossRollback
- Specified by:
supportsOpenCursorsAcrossRollback
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsOpenStatementsAcrossCommit
- Specified by:
supportsOpenStatementsAcrossCommit
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsOpenStatementsAcrossRollback
- Specified by:
supportsOpenStatementsAcrossRollback
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxBinaryLiteralLength
- Specified by:
getMaxBinaryLiteralLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxCharLiteralLength
- Specified by:
getMaxCharLiteralLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxColumnNameLength
- Specified by:
getMaxColumnNameLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxColumnsInGroupBy
- Specified by:
getMaxColumnsInGroupBy
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxColumnsInIndex
- Specified by:
getMaxColumnsInIndex
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxColumnsInOrderBy
- Specified by:
getMaxColumnsInOrderBy
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxColumnsInSelect
- Specified by:
getMaxColumnsInSelect
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxColumnsInTable
- Specified by:
getMaxColumnsInTable
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxConnections
- Specified by:
getMaxConnections
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxCursorNameLength
- Specified by:
getMaxCursorNameLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxIndexLength
- Specified by:
getMaxIndexLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxSchemaNameLength
- Specified by:
getMaxSchemaNameLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxProcedureNameLength
- Specified by:
getMaxProcedureNameLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxCatalogNameLength
- Specified by:
getMaxCatalogNameLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxRowSize
- Specified by:
getMaxRowSize
in interfaceDatabaseMetaData
- Throws:
SQLException
-
doesMaxRowSizeIncludeBlobs
- Specified by:
doesMaxRowSizeIncludeBlobs
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxStatementLength
- Specified by:
getMaxStatementLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxStatements
- Specified by:
getMaxStatements
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxTableNameLength
- Specified by:
getMaxTableNameLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxTablesInSelect
- Specified by:
getMaxTablesInSelect
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getMaxUserNameLength
- Specified by:
getMaxUserNameLength
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getDefaultTransactionIsolation
- Specified by:
getDefaultTransactionIsolation
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsTransactions
- Specified by:
supportsTransactions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsTransactionIsolationLevel
- Specified by:
supportsTransactionIsolationLevel
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsDataDefinitionAndDataManipulationTransactions
- Specified by:
supportsDataDefinitionAndDataManipulationTransactions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsDataManipulationTransactionsOnly
- Specified by:
supportsDataManipulationTransactionsOnly
in interfaceDatabaseMetaData
- Throws:
SQLException
-
dataDefinitionCausesTransactionCommit
- Specified by:
dataDefinitionCausesTransactionCommit
in interfaceDatabaseMetaData
- Throws:
SQLException
-
dataDefinitionIgnoredInTransactions
- Specified by:
dataDefinitionIgnoredInTransactions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getProcedures
public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException - Specified by:
getProcedures
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getProcedureColumns
public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException - Specified by:
getProcedureColumns
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getTables
public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException - Specified by:
getTables
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getSchemas
- Specified by:
getSchemas
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getCatalogs
- Specified by:
getCatalogs
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getTableTypes
- Specified by:
getTableTypes
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getColumns
public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException - Specified by:
getColumns
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getColumnPrivileges
public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException - Specified by:
getColumnPrivileges
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getTablePrivileges
public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException - Specified by:
getTablePrivileges
in interfaceDatabaseMetaData
- Throws:
SQLException
-
parseACL
Take the a String representing an array of ACLs and return a HashMap mapping the SQL permission name to a ArrayList of usernames who have that permission. -
getBestRowIdentifier
public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException - Specified by:
getBestRowIdentifier
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getVersionColumns
- Specified by:
getVersionColumns
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getPrimaryKeys
- Specified by:
getPrimaryKeys
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getImportedExportedKeys
protected ResultSet getImportedExportedKeys(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException - Parameters:
primaryCatalog
-primarySchema
-primaryTable
- if provided will get the keys exported by this tableforeignTable
- if provided will get the keys imported by this table- Returns:
- ResultSet
- Throws:
SQLException
-
getImportedKeys
- Specified by:
getImportedKeys
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getExportedKeys
- Specified by:
getExportedKeys
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getCrossReference
public ResultSet getCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException - Specified by:
getCrossReference
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getTypeInfo
- Specified by:
getTypeInfo
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getIndexInfo
public ResultSet getIndexInfo(String catalog, String schema, String tableName, boolean unique, boolean approximate) throws SQLException - Specified by:
getIndexInfo
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsResultSetType
- Specified by:
supportsResultSetType
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsResultSetConcurrency
- Specified by:
supportsResultSetConcurrency
in interfaceDatabaseMetaData
- Throws:
SQLException
-
ownUpdatesAreVisible
- Specified by:
ownUpdatesAreVisible
in interfaceDatabaseMetaData
- Throws:
SQLException
-
ownDeletesAreVisible
- Specified by:
ownDeletesAreVisible
in interfaceDatabaseMetaData
- Throws:
SQLException
-
ownInsertsAreVisible
- Specified by:
ownInsertsAreVisible
in interfaceDatabaseMetaData
- Throws:
SQLException
-
othersUpdatesAreVisible
- Specified by:
othersUpdatesAreVisible
in interfaceDatabaseMetaData
- Throws:
SQLException
-
othersDeletesAreVisible
- Specified by:
othersDeletesAreVisible
in interfaceDatabaseMetaData
- Throws:
SQLException
-
othersInsertsAreVisible
- Specified by:
othersInsertsAreVisible
in interfaceDatabaseMetaData
- Throws:
SQLException
-
updatesAreDetected
- Specified by:
updatesAreDetected
in interfaceDatabaseMetaData
- Throws:
SQLException
-
deletesAreDetected
- Specified by:
deletesAreDetected
in interfaceDatabaseMetaData
- Throws:
SQLException
-
insertsAreDetected
- Specified by:
insertsAreDetected
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsBatchUpdates
- Specified by:
supportsBatchUpdates
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getUDTs
public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException - Specified by:
getUDTs
in interfaceDatabaseMetaData
- Parameters:
catalog
- StringschemaPattern
- StringtypeNamePattern
- Stringtypes
- int[]- Returns:
- ResultSet
- Throws:
SQLException
-
getConnection
- Specified by:
getConnection
in interfaceDatabaseMetaData
- Throws:
SQLException
-
rowChangesAreDetected
- Throws:
SQLException
-
rowChangesAreVisible
- Throws:
SQLException
-
supportsSavepoints
Retrieves whether this database supports savepoints.- Specified by:
supportsSavepoints
in interfaceDatabaseMetaData
- Returns:
true
if savepoints are supported;false
otherwise- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
supportsNamedParameters
Retrieves whether this database supports named parameters to callable statements.- Specified by:
supportsNamedParameters
in interfaceDatabaseMetaData
- Returns:
true
if named parameters are supported;false
otherwise- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
supportsMultipleOpenResults
Retrieves whether it is possible to have multipleResultSet
objects returned from aCallableStatement
object simultaneously.- Specified by:
supportsMultipleOpenResults
in interfaceDatabaseMetaData
- Returns:
true
if aCallableStatement
object can return multipleResultSet
objects simultaneously;false
otherwise- Throws:
SQLException
- if a datanase access error occurs- Since:
- 1.4
-
supportsGetGeneratedKeys
Retrieves whether auto-generated keys can be retrieved after a statement has been executed.- Specified by:
supportsGetGeneratedKeys
in interfaceDatabaseMetaData
- Returns:
true
if auto-generated keys can be retrieved after a statement has executed;false
otherwise- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
getSuperTypes
public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException Retrieves a description of the user-defined type (UDT) hierarchies defined in a particular schema in this database. Only the immediate super type/ sub type relationship is modeled.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 the
ResultSet
object returned by this method describes the designated UDT and a direct supertype. A row has the following columns:- TYPE_CAT String => the UDT's catalog (may be
null
) - TYPE_SCHEM String => UDT's schema (may be
null
) - TYPE_NAME String => type name of the UDT
- SUPERTYPE_CAT String => the direct super type's catalog
(may be
null
) - SUPERTYPE_SCHEM String => the direct super type's schema
(may be
null
) - SUPERTYPE_NAME String => the direct super type's name
Note: If the driver does not support type hierarchies, an empty result set is returned.
- Specified by:
getSuperTypes
in interfaceDatabaseMetaData
- Parameters:
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 name- Returns:
- a
ResultSet
object in which a row gives information about the designated UDT - Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
- TYPE_CAT String => the UDT's catalog (may be
-
getSuperTables
public ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException Retrieves a description of the table hierarchies defined in a particular schema in this database.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:
- TABLE_CAT String => the type's catalog (may be
null
) - TABLE_SCHEM String => type's schema (may be
null
) - TABLE_NAME String => type name
- SUPERTABLE_NAME String => the direct super type's name
Note: If the driver does not support type hierarchies, an empty result set is returned.
- Specified by:
getSuperTables
in interfaceDatabaseMetaData
- Parameters:
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 name- Returns:
- a
ResultSet
object in which each row is a type description - Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
- TABLE_CAT String => the type's catalog (may be
-
getAttributes
public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException 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.Descriptions are returned only for attributes of UDTs matching the catalog, schema, type, and attribute name criteria. They are ordered by TYPE_SCHEM, TYPE_NAME and ORDINAL_POSITION. This description does not contain inherited attributes.
The
ResultSet
object that is returned has the following columns:- TYPE_CAT String => type catalog (may be
null
) - TYPE_SCHEM String => type schema (may be
null
) - TYPE_NAME String => type name
- ATTR_NAME String => attribute name
- DATA_TYPE short => attribute type SQL type from java.sql.Types
- ATTR_TYPE_NAME String => Data source dependent type name. For a UDT, the type name is fully qualified. For a REF, the type name is fully qualified and represents the target type of the reference type.
- ATTR_SIZE int => column size. For char or date types this is the maximum number of characters; for numeric or decimal types this is precision.
- DECIMAL_DIGITS int => the number of fractional digits
- NUM_PREC_RADIX int => Radix (typically either 10 or 2)
- NULLABLE int => whether NULL is allowed
- attributeNoNulls - might not allow NULL values
- attributeNullable - definitely allows NULL values
- attributeNullableUnknown - nullability unknown
- REMARKS String => comment describing column (may be
null
) - ATTR_DEF String => default value (may be
null
) - SQL_DATA_TYPE int => unused
- SQL_DATETIME_SUB int => unused
- CHAR_OCTET_LENGTH int => for char types the maximum number of bytes in the column
- ORDINAL_POSITION int => index of column in table (starting at 1)
- IS_NULLABLE String => "NO" means column definitely does not allow NULL values; "YES" means the column might allow NULL values. An empty string means unknown.
- SCOPE_CATALOG String => catalog of table that is the scope
of a reference attribute (
null
if DATA_TYPE isn't REF) - SCOPE_SCHEMA String => schema of table that is the scope of
a reference attribute (
null
if DATA_TYPE isn't REF) - SCOPE_TABLE String => table name that is the scope of a
reference attribute (
null
if the DATA_TYPE isn't REF) - SOURCE_DATA_TYPE short => source type of a distinct type or
user-generated Ref type,SQL type from java.sql.Types (
null
if DATA_TYPE isn't DISTINCT or user-generated REF)
- Specified by:
getAttributes
in interfaceDatabaseMetaData
- Parameters:
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 database- Returns:
- a
ResultSet
object in which each row is an attribute description - Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
- TYPE_CAT String => type catalog (may be
-
supportsResultSetHoldability
Retrieves whether this database supports the given result set holdability.- Specified by:
supportsResultSetHoldability
in interfaceDatabaseMetaData
- Parameters:
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:
-
getResultSetHoldability
Retrieves the default holdability of thisResultSet
object.- Specified by:
getResultSetHoldability
in interfaceDatabaseMetaData
- Returns:
- the default holdability; either
ResultSet.HOLD_CURSORS_OVER_COMMIT
orResultSet.CLOSE_CURSORS_AT_COMMIT
- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
getDatabaseMajorVersion
Retrieves the major version number of the underlying database.- Specified by:
getDatabaseMajorVersion
in interfaceDatabaseMetaData
- Returns:
- the underlying database's major version
- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
getDatabaseMinorVersion
Retrieves the minor version number of the underlying database.- Specified by:
getDatabaseMinorVersion
in interfaceDatabaseMetaData
- Returns:
- underlying database's minor version
- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
getJDBCMajorVersion
Retrieves the major JDBC version number for this driver.- Specified by:
getJDBCMajorVersion
in interfaceDatabaseMetaData
- Returns:
- JDBC version major number
- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
getJDBCMinorVersion
Retrieves the minor JDBC version number for this driver.- Specified by:
getJDBCMinorVersion
in interfaceDatabaseMetaData
- Returns:
- JDBC version minor number
- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
getSQLStateType
Indicates whether the SQLSTATEs returned bySQLException.getSQLState
is X/Open (now known as Open Group) SQL CLI or SQL99.- Specified by:
getSQLStateType
in interfaceDatabaseMetaData
- Returns:
- the type of SQLSTATEs, one of: sqlStateXOpen or sqlStateSQL99
- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
locatorsUpdateCopy
Indicates whether updates made to a LOB are made on a copy or directly to the LOB.- Specified by:
locatorsUpdateCopy
in interfaceDatabaseMetaData
- Returns:
true
if updates are made to a copy of the LOB;false
if updates are made directly to the LOB- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
supportsStatementPooling
Retrieves weather this database supports statement pooling.- Specified by:
supportsStatementPooling
in interfaceDatabaseMetaData
- Returns:
true
is so;false
otherwise- Throws:
SQLException
- if a database access error occurs- Since:
- 1.4
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
generatedKeyAlwaysReturned
- Specified by:
generatedKeyAlwaysReturned
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getFunctionColumns
public ResultSet getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException - Specified by:
getFunctionColumns
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getFunctions
public ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException - Specified by:
getFunctions
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getClientInfoProperties
- Specified by:
getClientInfoProperties
in interfaceDatabaseMetaData
- Throws:
SQLException
-
autoCommitFailureClosesAllResultSets
- Specified by:
autoCommitFailureClosesAllResultSets
in interfaceDatabaseMetaData
- Throws:
SQLException
-
supportsStoredFunctionsUsingCallSyntax
- Specified by:
supportsStoredFunctionsUsingCallSyntax
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getSchemas
- Specified by:
getSchemas
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getRowIdLifetime
- Specified by:
getRowIdLifetime
in interfaceDatabaseMetaData
- Throws:
SQLException
-
getPseudoColumns
public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException - Specified by:
getPseudoColumns
in interfaceDatabaseMetaData
- Throws:
SQLException
-