|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.dbcp.AbandonedTrace org.apache.commons.dbcp.DelegatingDatabaseMetaData
public class DelegatingDatabaseMetaData
A base delegating implementation of DatabaseMetaData
.
Those methods that create ResultSet
objects, are wrapped to
create DelegatingResultSet
objects and the remaining methods
simply call the corresponding method on the "delegate"
provided in my constructor.
Extends AbandonedTrace to implement DatabaseMetaData tracking and logging of code which created the DatabaseMetaData. Tracking the DatabaseMetaData ensures that the Connection which created it can close any associated ResultSets on Connection close.
Field Summary | |
---|---|
protected DelegatingConnection |
_conn
The connection that created me. |
protected DatabaseMetaData |
_meta
My delegate DatabaseMetaData |
Constructor Summary | |
---|---|
DelegatingDatabaseMetaData(DelegatingConnection c,
DatabaseMetaData m)
|
Methods inherited from class org.apache.commons.dbcp.AbandonedTrace |
---|
addTrace, clearTrace, getConfig, getLastUsed, getTrace, printStackTrace, removeTrace, setLastUsed, setLastUsed, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DatabaseMetaData _meta
DatabaseMetaData
protected DelegatingConnection _conn
Constructor Detail |
---|
public DelegatingDatabaseMetaData(DelegatingConnection c, DatabaseMetaData m)
Method Detail |
---|
public DatabaseMetaData getDelegate()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public DatabaseMetaData getInnermostDelegate()
ResultSet
is not a
DelegatingResultSet, returns it,
otherwise recursively invokes this method on
my delegate.
Hence this method will return the first delegate that is not a DelegatingResultSet, or null when no non-DelegatingResultSet delegate can be found by transversing this chain.
This method is useful when you may have nested
DelegatingResultSets, and you want to make
sure to obtain a "genuine" ResultSet
.
protected void handleException(SQLException e) throws SQLException
SQLException
public boolean allProceduresAreCallable() throws SQLException
allProceduresAreCallable
in interface DatabaseMetaData
SQLException
public boolean allTablesAreSelectable() throws SQLException
allTablesAreSelectable
in interface DatabaseMetaData
SQLException
public boolean dataDefinitionCausesTransactionCommit() throws SQLException
dataDefinitionCausesTransactionCommit
in interface DatabaseMetaData
SQLException
public boolean dataDefinitionIgnoredInTransactions() throws SQLException
dataDefinitionIgnoredInTransactions
in interface DatabaseMetaData
SQLException
public boolean deletesAreDetected(int type) throws SQLException
deletesAreDetected
in interface DatabaseMetaData
SQLException
public boolean doesMaxRowSizeIncludeBlobs() throws SQLException
doesMaxRowSizeIncludeBlobs
in interface DatabaseMetaData
SQLException
public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException
getAttributes
in interface DatabaseMetaData
SQLException
public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException
getBestRowIdentifier
in interface DatabaseMetaData
SQLException
public String getCatalogSeparator() throws SQLException
getCatalogSeparator
in interface DatabaseMetaData
SQLException
public String getCatalogTerm() throws SQLException
getCatalogTerm
in interface DatabaseMetaData
SQLException
public ResultSet getCatalogs() throws SQLException
getCatalogs
in interface DatabaseMetaData
SQLException
public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException
getColumnPrivileges
in interface DatabaseMetaData
SQLException
public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
getColumns
in interface DatabaseMetaData
SQLException
public Connection getConnection() throws SQLException
getConnection
in interface DatabaseMetaData
SQLException
public ResultSet getCrossReference(String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException
getCrossReference
in interface DatabaseMetaData
SQLException
public int getDatabaseMajorVersion() throws SQLException
getDatabaseMajorVersion
in interface DatabaseMetaData
SQLException
public int getDatabaseMinorVersion() throws SQLException
getDatabaseMinorVersion
in interface DatabaseMetaData
SQLException
public String getDatabaseProductName() throws SQLException
getDatabaseProductName
in interface DatabaseMetaData
SQLException
public String getDatabaseProductVersion() throws SQLException
getDatabaseProductVersion
in interface DatabaseMetaData
SQLException
public int getDefaultTransactionIsolation() throws SQLException
getDefaultTransactionIsolation
in interface DatabaseMetaData
SQLException
public int getDriverMajorVersion()
getDriverMajorVersion
in interface DatabaseMetaData
public int getDriverMinorVersion()
getDriverMinorVersion
in interface DatabaseMetaData
public String getDriverName() throws SQLException
getDriverName
in interface DatabaseMetaData
SQLException
public String getDriverVersion() throws SQLException
getDriverVersion
in interface DatabaseMetaData
SQLException
public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException
getExportedKeys
in interface DatabaseMetaData
SQLException
public String getExtraNameCharacters() throws SQLException
getExtraNameCharacters
in interface DatabaseMetaData
SQLException
public String getIdentifierQuoteString() throws SQLException
getIdentifierQuoteString
in interface DatabaseMetaData
SQLException
public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException
getImportedKeys
in interface DatabaseMetaData
SQLException
public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException
getIndexInfo
in interface DatabaseMetaData
SQLException
public int getJDBCMajorVersion() throws SQLException
getJDBCMajorVersion
in interface DatabaseMetaData
SQLException
public int getJDBCMinorVersion() throws SQLException
getJDBCMinorVersion
in interface DatabaseMetaData
SQLException
public int getMaxBinaryLiteralLength() throws SQLException
getMaxBinaryLiteralLength
in interface DatabaseMetaData
SQLException
public int getMaxCatalogNameLength() throws SQLException
getMaxCatalogNameLength
in interface DatabaseMetaData
SQLException
public int getMaxCharLiteralLength() throws SQLException
getMaxCharLiteralLength
in interface DatabaseMetaData
SQLException
public int getMaxColumnNameLength() throws SQLException
getMaxColumnNameLength
in interface DatabaseMetaData
SQLException
public int getMaxColumnsInGroupBy() throws SQLException
getMaxColumnsInGroupBy
in interface DatabaseMetaData
SQLException
public int getMaxColumnsInIndex() throws SQLException
getMaxColumnsInIndex
in interface DatabaseMetaData
SQLException
public int getMaxColumnsInOrderBy() throws SQLException
getMaxColumnsInOrderBy
in interface DatabaseMetaData
SQLException
public int getMaxColumnsInSelect() throws SQLException
getMaxColumnsInSelect
in interface DatabaseMetaData
SQLException
public int getMaxColumnsInTable() throws SQLException
getMaxColumnsInTable
in interface DatabaseMetaData
SQLException
public int getMaxConnections() throws SQLException
getMaxConnections
in interface DatabaseMetaData
SQLException
public int getMaxCursorNameLength() throws SQLException
getMaxCursorNameLength
in interface DatabaseMetaData
SQLException
public int getMaxIndexLength() throws SQLException
getMaxIndexLength
in interface DatabaseMetaData
SQLException
public int getMaxProcedureNameLength() throws SQLException
getMaxProcedureNameLength
in interface DatabaseMetaData
SQLException
public int getMaxRowSize() throws SQLException
getMaxRowSize
in interface DatabaseMetaData
SQLException
public int getMaxSchemaNameLength() throws SQLException
getMaxSchemaNameLength
in interface DatabaseMetaData
SQLException
public int getMaxStatementLength() throws SQLException
getMaxStatementLength
in interface DatabaseMetaData
SQLException
public int getMaxStatements() throws SQLException
getMaxStatements
in interface DatabaseMetaData
SQLException
public int getMaxTableNameLength() throws SQLException
getMaxTableNameLength
in interface DatabaseMetaData
SQLException
public int getMaxTablesInSelect() throws SQLException
getMaxTablesInSelect
in interface DatabaseMetaData
SQLException
public int getMaxUserNameLength() throws SQLException
getMaxUserNameLength
in interface DatabaseMetaData
SQLException
public String getNumericFunctions() throws SQLException
getNumericFunctions
in interface DatabaseMetaData
SQLException
public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException
getPrimaryKeys
in interface DatabaseMetaData
SQLException
public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException
getProcedureColumns
in interface DatabaseMetaData
SQLException
public String getProcedureTerm() throws SQLException
getProcedureTerm
in interface DatabaseMetaData
SQLException
public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException
getProcedures
in interface DatabaseMetaData
SQLException
public int getResultSetHoldability() throws SQLException
getResultSetHoldability
in interface DatabaseMetaData
SQLException
public String getSQLKeywords() throws SQLException
getSQLKeywords
in interface DatabaseMetaData
SQLException
public int getSQLStateType() throws SQLException
getSQLStateType
in interface DatabaseMetaData
SQLException
public String getSchemaTerm() throws SQLException
getSchemaTerm
in interface DatabaseMetaData
SQLException
public ResultSet getSchemas() throws SQLException
getSchemas
in interface DatabaseMetaData
SQLException
public String getSearchStringEscape() throws SQLException
getSearchStringEscape
in interface DatabaseMetaData
SQLException
public String getStringFunctions() throws SQLException
getStringFunctions
in interface DatabaseMetaData
SQLException
public ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
getSuperTables
in interface DatabaseMetaData
SQLException
public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException
getSuperTypes
in interface DatabaseMetaData
SQLException
public String getSystemFunctions() throws SQLException
getSystemFunctions
in interface DatabaseMetaData
SQLException
public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
getTablePrivileges
in interface DatabaseMetaData
SQLException
public ResultSet getTableTypes() throws SQLException
getTableTypes
in interface DatabaseMetaData
SQLException
public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException
getTables
in interface DatabaseMetaData
SQLException
public String getTimeDateFunctions() throws SQLException
getTimeDateFunctions
in interface DatabaseMetaData
SQLException
public ResultSet getTypeInfo() throws SQLException
getTypeInfo
in interface DatabaseMetaData
SQLException
public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException
getUDTs
in interface DatabaseMetaData
SQLException
public String getURL() throws SQLException
getURL
in interface DatabaseMetaData
SQLException
public String getUserName() throws SQLException
getUserName
in interface DatabaseMetaData
SQLException
public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException
getVersionColumns
in interface DatabaseMetaData
SQLException
public boolean insertsAreDetected(int type) throws SQLException
insertsAreDetected
in interface DatabaseMetaData
SQLException
public boolean isCatalogAtStart() throws SQLException
isCatalogAtStart
in interface DatabaseMetaData
SQLException
public boolean isReadOnly() throws SQLException
isReadOnly
in interface DatabaseMetaData
SQLException
public boolean locatorsUpdateCopy() throws SQLException
locatorsUpdateCopy
in interface DatabaseMetaData
SQLException
public boolean nullPlusNonNullIsNull() throws SQLException
nullPlusNonNullIsNull
in interface DatabaseMetaData
SQLException
public boolean nullsAreSortedAtEnd() throws SQLException
nullsAreSortedAtEnd
in interface DatabaseMetaData
SQLException
public boolean nullsAreSortedAtStart() throws SQLException
nullsAreSortedAtStart
in interface DatabaseMetaData
SQLException
public boolean nullsAreSortedHigh() throws SQLException
nullsAreSortedHigh
in interface DatabaseMetaData
SQLException
public boolean nullsAreSortedLow() throws SQLException
nullsAreSortedLow
in interface DatabaseMetaData
SQLException
public boolean othersDeletesAreVisible(int type) throws SQLException
othersDeletesAreVisible
in interface DatabaseMetaData
SQLException
public boolean othersInsertsAreVisible(int type) throws SQLException
othersInsertsAreVisible
in interface DatabaseMetaData
SQLException
public boolean othersUpdatesAreVisible(int type) throws SQLException
othersUpdatesAreVisible
in interface DatabaseMetaData
SQLException
public boolean ownDeletesAreVisible(int type) throws SQLException
ownDeletesAreVisible
in interface DatabaseMetaData
SQLException
public boolean ownInsertsAreVisible(int type) throws SQLException
ownInsertsAreVisible
in interface DatabaseMetaData
SQLException
public boolean ownUpdatesAreVisible(int type) throws SQLException
ownUpdatesAreVisible
in interface DatabaseMetaData
SQLException
public boolean storesLowerCaseIdentifiers() throws SQLException
storesLowerCaseIdentifiers
in interface DatabaseMetaData
SQLException
public boolean storesLowerCaseQuotedIdentifiers() throws SQLException
storesLowerCaseQuotedIdentifiers
in interface DatabaseMetaData
SQLException
public boolean storesMixedCaseIdentifiers() throws SQLException
storesMixedCaseIdentifiers
in interface DatabaseMetaData
SQLException
public boolean storesMixedCaseQuotedIdentifiers() throws SQLException
storesMixedCaseQuotedIdentifiers
in interface DatabaseMetaData
SQLException
public boolean storesUpperCaseIdentifiers() throws SQLException
storesUpperCaseIdentifiers
in interface DatabaseMetaData
SQLException
public boolean storesUpperCaseQuotedIdentifiers() throws SQLException
storesUpperCaseQuotedIdentifiers
in interface DatabaseMetaData
SQLException
public boolean supportsANSI92EntryLevelSQL() throws SQLException
supportsANSI92EntryLevelSQL
in interface DatabaseMetaData
SQLException
public boolean supportsANSI92FullSQL() throws SQLException
supportsANSI92FullSQL
in interface DatabaseMetaData
SQLException
public boolean supportsANSI92IntermediateSQL() throws SQLException
supportsANSI92IntermediateSQL
in interface DatabaseMetaData
SQLException
public boolean supportsAlterTableWithAddColumn() throws SQLException
supportsAlterTableWithAddColumn
in interface DatabaseMetaData
SQLException
public boolean supportsAlterTableWithDropColumn() throws SQLException
supportsAlterTableWithDropColumn
in interface DatabaseMetaData
SQLException
public boolean supportsBatchUpdates() throws SQLException
supportsBatchUpdates
in interface DatabaseMetaData
SQLException
public boolean supportsCatalogsInDataManipulation() throws SQLException
supportsCatalogsInDataManipulation
in interface DatabaseMetaData
SQLException
public boolean supportsCatalogsInIndexDefinitions() throws SQLException
supportsCatalogsInIndexDefinitions
in interface DatabaseMetaData
SQLException
public boolean supportsCatalogsInPrivilegeDefinitions() throws SQLException
supportsCatalogsInPrivilegeDefinitions
in interface DatabaseMetaData
SQLException
public boolean supportsCatalogsInProcedureCalls() throws SQLException
supportsCatalogsInProcedureCalls
in interface DatabaseMetaData
SQLException
public boolean supportsCatalogsInTableDefinitions() throws SQLException
supportsCatalogsInTableDefinitions
in interface DatabaseMetaData
SQLException
public boolean supportsColumnAliasing() throws SQLException
supportsColumnAliasing
in interface DatabaseMetaData
SQLException
public boolean supportsConvert() throws SQLException
supportsConvert
in interface DatabaseMetaData
SQLException
public boolean supportsConvert(int fromType, int toType) throws SQLException
supportsConvert
in interface DatabaseMetaData
SQLException
public boolean supportsCoreSQLGrammar() throws SQLException
supportsCoreSQLGrammar
in interface DatabaseMetaData
SQLException
public boolean supportsCorrelatedSubqueries() throws SQLException
supportsCorrelatedSubqueries
in interface DatabaseMetaData
SQLException
public boolean supportsDataDefinitionAndDataManipulationTransactions() throws SQLException
supportsDataDefinitionAndDataManipulationTransactions
in interface DatabaseMetaData
SQLException
public boolean supportsDataManipulationTransactionsOnly() throws SQLException
supportsDataManipulationTransactionsOnly
in interface DatabaseMetaData
SQLException
public boolean supportsDifferentTableCorrelationNames() throws SQLException
supportsDifferentTableCorrelationNames
in interface DatabaseMetaData
SQLException
public boolean supportsExpressionsInOrderBy() throws SQLException
supportsExpressionsInOrderBy
in interface DatabaseMetaData
SQLException
public boolean supportsExtendedSQLGrammar() throws SQLException
supportsExtendedSQLGrammar
in interface DatabaseMetaData
SQLException
public boolean supportsFullOuterJoins() throws SQLException
supportsFullOuterJoins
in interface DatabaseMetaData
SQLException
public boolean supportsGetGeneratedKeys() throws SQLException
supportsGetGeneratedKeys
in interface DatabaseMetaData
SQLException
public boolean supportsGroupBy() throws SQLException
supportsGroupBy
in interface DatabaseMetaData
SQLException
public boolean supportsGroupByBeyondSelect() throws SQLException
supportsGroupByBeyondSelect
in interface DatabaseMetaData
SQLException
public boolean supportsGroupByUnrelated() throws SQLException
supportsGroupByUnrelated
in interface DatabaseMetaData
SQLException
public boolean supportsIntegrityEnhancementFacility() throws SQLException
supportsIntegrityEnhancementFacility
in interface DatabaseMetaData
SQLException
public boolean supportsLikeEscapeClause() throws SQLException
supportsLikeEscapeClause
in interface DatabaseMetaData
SQLException
public boolean supportsLimitedOuterJoins() throws SQLException
supportsLimitedOuterJoins
in interface DatabaseMetaData
SQLException
public boolean supportsMinimumSQLGrammar() throws SQLException
supportsMinimumSQLGrammar
in interface DatabaseMetaData
SQLException
public boolean supportsMixedCaseIdentifiers() throws SQLException
supportsMixedCaseIdentifiers
in interface DatabaseMetaData
SQLException
public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException
supportsMixedCaseQuotedIdentifiers
in interface DatabaseMetaData
SQLException
public boolean supportsMultipleOpenResults() throws SQLException
supportsMultipleOpenResults
in interface DatabaseMetaData
SQLException
public boolean supportsMultipleResultSets() throws SQLException
supportsMultipleResultSets
in interface DatabaseMetaData
SQLException
public boolean supportsMultipleTransactions() throws SQLException
supportsMultipleTransactions
in interface DatabaseMetaData
SQLException
public boolean supportsNamedParameters() throws SQLException
supportsNamedParameters
in interface DatabaseMetaData
SQLException
public boolean supportsNonNullableColumns() throws SQLException
supportsNonNullableColumns
in interface DatabaseMetaData
SQLException
public boolean supportsOpenCursorsAcrossCommit() throws SQLException
supportsOpenCursorsAcrossCommit
in interface DatabaseMetaData
SQLException
public boolean supportsOpenCursorsAcrossRollback() throws SQLException
supportsOpenCursorsAcrossRollback
in interface DatabaseMetaData
SQLException
public boolean supportsOpenStatementsAcrossCommit() throws SQLException
supportsOpenStatementsAcrossCommit
in interface DatabaseMetaData
SQLException
public boolean supportsOpenStatementsAcrossRollback() throws SQLException
supportsOpenStatementsAcrossRollback
in interface DatabaseMetaData
SQLException
public boolean supportsOrderByUnrelated() throws SQLException
supportsOrderByUnrelated
in interface DatabaseMetaData
SQLException
public boolean supportsOuterJoins() throws SQLException
supportsOuterJoins
in interface DatabaseMetaData
SQLException
public boolean supportsPositionedDelete() throws SQLException
supportsPositionedDelete
in interface DatabaseMetaData
SQLException
public boolean supportsPositionedUpdate() throws SQLException
supportsPositionedUpdate
in interface DatabaseMetaData
SQLException
public boolean supportsResultSetConcurrency(int type, int concurrency) throws SQLException
supportsResultSetConcurrency
in interface DatabaseMetaData
SQLException
public boolean supportsResultSetHoldability(int holdability) throws SQLException
supportsResultSetHoldability
in interface DatabaseMetaData
SQLException
public boolean supportsResultSetType(int type) throws SQLException
supportsResultSetType
in interface DatabaseMetaData
SQLException
public boolean supportsSavepoints() throws SQLException
supportsSavepoints
in interface DatabaseMetaData
SQLException
public boolean supportsSchemasInDataManipulation() throws SQLException
supportsSchemasInDataManipulation
in interface DatabaseMetaData
SQLException
public boolean supportsSchemasInIndexDefinitions() throws SQLException
supportsSchemasInIndexDefinitions
in interface DatabaseMetaData
SQLException
public boolean supportsSchemasInPrivilegeDefinitions() throws SQLException
supportsSchemasInPrivilegeDefinitions
in interface DatabaseMetaData
SQLException
public boolean supportsSchemasInProcedureCalls() throws SQLException
supportsSchemasInProcedureCalls
in interface DatabaseMetaData
SQLException
public boolean supportsSchemasInTableDefinitions() throws SQLException
supportsSchemasInTableDefinitions
in interface DatabaseMetaData
SQLException
public boolean supportsSelectForUpdate() throws SQLException
supportsSelectForUpdate
in interface DatabaseMetaData
SQLException
public boolean supportsStatementPooling() throws SQLException
supportsStatementPooling
in interface DatabaseMetaData
SQLException
public boolean supportsStoredProcedures() throws SQLException
supportsStoredProcedures
in interface DatabaseMetaData
SQLException
public boolean supportsSubqueriesInComparisons() throws SQLException
supportsSubqueriesInComparisons
in interface DatabaseMetaData
SQLException
public boolean supportsSubqueriesInExists() throws SQLException
supportsSubqueriesInExists
in interface DatabaseMetaData
SQLException
public boolean supportsSubqueriesInIns() throws SQLException
supportsSubqueriesInIns
in interface DatabaseMetaData
SQLException
public boolean supportsSubqueriesInQuantifieds() throws SQLException
supportsSubqueriesInQuantifieds
in interface DatabaseMetaData
SQLException
public boolean supportsTableCorrelationNames() throws SQLException
supportsTableCorrelationNames
in interface DatabaseMetaData
SQLException
public boolean supportsTransactionIsolationLevel(int level) throws SQLException
supportsTransactionIsolationLevel
in interface DatabaseMetaData
SQLException
public boolean supportsTransactions() throws SQLException
supportsTransactions
in interface DatabaseMetaData
SQLException
public boolean supportsUnion() throws SQLException
supportsUnion
in interface DatabaseMetaData
SQLException
public boolean supportsUnionAll() throws SQLException
supportsUnionAll
in interface DatabaseMetaData
SQLException
public boolean updatesAreDetected(int type) throws SQLException
updatesAreDetected
in interface DatabaseMetaData
SQLException
public boolean usesLocalFilePerTable() throws SQLException
usesLocalFilePerTable
in interface DatabaseMetaData
SQLException
public boolean usesLocalFiles() throws SQLException
usesLocalFiles
in interface DatabaseMetaData
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |