Package org.apache.openjpa.lib.jdbc
Class LoggingConnectionDecorator.LoggingConnection.LoggingDatabaseMetaData
java.lang.Object
org.apache.openjpa.lib.jdbc.DelegatingDatabaseMetaData
org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.LoggingConnection.LoggingDatabaseMetaData
- All Implemented Interfaces:
DatabaseMetaData
,Wrapper
- Enclosing class:
- LoggingConnectionDecorator.LoggingConnection
protected class LoggingConnectionDecorator.LoggingConnection.LoggingDatabaseMetaData
extends DelegatingDatabaseMetaData
Metadata wrapper that logs actions.
-
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 TypeMethodDescriptiongetBestRowIdentifier
(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) getExportedKeys
(String catalog, String schema, String table) getImportedKeys
(String catalog, String schema, String table) getIndexInfo
(String catalog, String schema, String table, boolean unique, boolean approximate) getPrimaryKeys
(String catalog, String schema, String table) getProcedureColumns
(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) getProcedures
(String catalog, String schemaPattern, String procedureNamePattern) getTablePrivileges
(String catalog, String schemaPattern, String tableNamePattern) getVersionColumns
(String catalog, String schema, String table) Methods inherited from class org.apache.openjpa.lib.jdbc.DelegatingDatabaseMetaData
allProceduresAreCallable, allTablesAreSelectable, autoCommitFailureClosesAllResultSets, dataDefinitionCausesTransactionCommit, dataDefinitionIgnoredInTransactions, deletesAreDetected, doesMaxRowSizeIncludeBlobs, equals, generatedKeyAlwaysReturned, getAttributes, getCatalogSeparator, getCatalogTerm, getClientInfoProperties, getConnection, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDefaultTransactionIsolation, getDelegate, getDriverMajorVersion, getDriverMinorVersion, getDriverName, getDriverVersion, getExtraNameCharacters, getFunctionColumns, getFunctions, getIdentifierQuoteString, getInnermostDelegate, getJDBCMajorVersion, getJDBCMinorVersion, getMaxBinaryLiteralLength, getMaxCatalogNameLength, getMaxCharLiteralLength, getMaxColumnNameLength, getMaxColumnsInGroupBy, getMaxColumnsInIndex, getMaxColumnsInOrderBy, getMaxColumnsInSelect, getMaxColumnsInTable, getMaxConnections, getMaxCursorNameLength, getMaxIndexLength, getMaxProcedureNameLength, getMaxRowSize, getMaxSchemaNameLength, getMaxStatementLength, getMaxStatements, getMaxTableNameLength, getMaxTablesInSelect, getMaxUserNameLength, getNumericFunctions, getProcedureTerm, getPseudoColumns, getResultSetHoldability, getRowIdLifetime, getSchemas, getSchemaTerm, getSearchStringEscape, getSQLKeywords, getSQLStateType, getStringFunctions, getSuperTables, getSuperTypes, getSystemFunctions, getTimeDateFunctions, getURL, getUserName, hashCode, insertsAreDetected, isCatalogAtStart, isReadOnly, isWrapperFor, locatorsUpdateCopy, nullPlusNonNullIsNull, nullsAreSortedAtEnd, nullsAreSortedAtStart, nullsAreSortedHigh, nullsAreSortedLow, othersDeletesAreVisible, othersInsertsAreVisible, othersUpdatesAreVisible, ownDeletesAreVisible, ownInsertsAreVisible, ownUpdatesAreVisible, storesLowerCaseIdentifiers, storesLowerCaseQuotedIdentifiers, storesMixedCaseIdentifiers, storesMixedCaseQuotedIdentifiers, storesUpperCaseIdentifiers, storesUpperCaseQuotedIdentifiers, supportsAlterTableWithAddColumn, supportsAlterTableWithDropColumn, supportsANSI92EntryLevelSQL, supportsANSI92FullSQL, supportsANSI92IntermediateSQL, supportsBatchUpdates, supportsCatalogsInDataManipulation, supportsCatalogsInIndexDefinitions, supportsCatalogsInPrivilegeDefinitions, supportsCatalogsInProcedureCalls, supportsCatalogsInTableDefinitions, supportsColumnAliasing, supportsConvert, supportsConvert, supportsCoreSQLGrammar, supportsCorrelatedSubqueries, supportsDataDefinitionAndDataManipulationTransactions, supportsDataManipulationTransactionsOnly, supportsDifferentTableCorrelationNames, supportsExpressionsInOrderBy, supportsExtendedSQLGrammar, supportsFullOuterJoins, supportsGetGeneratedKeys, supportsGroupBy, supportsGroupByBeyondSelect, supportsGroupByUnrelated, supportsIntegrityEnhancementFacility, supportsLikeEscapeClause, supportsLimitedOuterJoins, supportsMinimumSQLGrammar, supportsMixedCaseIdentifiers, supportsMixedCaseQuotedIdentifiers, supportsMultipleOpenResults, supportsMultipleResultSets, supportsMultipleTransactions, supportsNamedParameters, supportsNonNullableColumns, supportsOpenCursorsAcrossCommit, supportsOpenCursorsAcrossRollback, supportsOpenStatementsAcrossCommit, supportsOpenStatementsAcrossRollback, supportsOrderByUnrelated, supportsOuterJoins, supportsPositionedDelete, supportsPositionedUpdate, supportsResultSetConcurrency, supportsResultSetHoldability, supportsResultSetType, supportsSavepoints, supportsSchemasInDataManipulation, supportsSchemasInIndexDefinitions, supportsSchemasInPrivilegeDefinitions, supportsSchemasInProcedureCalls, supportsSchemasInTableDefinitions, supportsSelectForUpdate, supportsStatementPooling, supportsStoredFunctionsUsingCallSyntax, supportsStoredProcedures, supportsSubqueriesInComparisons, supportsSubqueriesInExists, supportsSubqueriesInIns, supportsSubqueriesInQuantifieds, supportsTableCorrelationNames, supportsTransactionIsolationLevel, supportsTransactions, supportsUnion, supportsUnionAll, toString, unwrap, updatesAreDetected, usesLocalFilePerTable, usesLocalFiles
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.sql.DatabaseMetaData
getMaxLogicalLobSize, supportsRefCursors, supportsSharding
-
Constructor Details
-
LoggingDatabaseMetaData
-
-
Method Details
-
getBestRowIdentifier
public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException - Specified by:
getBestRowIdentifier
in interfaceDatabaseMetaData
- Overrides:
getBestRowIdentifier
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getCatalogs
- Specified by:
getCatalogs
in interfaceDatabaseMetaData
- Overrides:
getCatalogs
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getColumnPrivileges
public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException - Specified by:
getColumnPrivileges
in interfaceDatabaseMetaData
- Overrides:
getColumnPrivileges
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getColumns
public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException - Specified by:
getColumns
in interfaceDatabaseMetaData
- Overrides:
getColumns
in classDelegatingDatabaseMetaData
- 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
- Overrides:
getCrossReference
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getExportedKeys
- Specified by:
getExportedKeys
in interfaceDatabaseMetaData
- Overrides:
getExportedKeys
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getImportedKeys
- Specified by:
getImportedKeys
in interfaceDatabaseMetaData
- Overrides:
getImportedKeys
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getIndexInfo
public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException - Specified by:
getIndexInfo
in interfaceDatabaseMetaData
- Overrides:
getIndexInfo
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getPrimaryKeys
- Specified by:
getPrimaryKeys
in interfaceDatabaseMetaData
- Overrides:
getPrimaryKeys
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getProcedureColumns
public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException - Specified by:
getProcedureColumns
in interfaceDatabaseMetaData
- Overrides:
getProcedureColumns
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getProcedures
public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException - Specified by:
getProcedures
in interfaceDatabaseMetaData
- Overrides:
getProcedures
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getSchemas
- Specified by:
getSchemas
in interfaceDatabaseMetaData
- Overrides:
getSchemas
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getTablePrivileges
public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException - Specified by:
getTablePrivileges
in interfaceDatabaseMetaData
- Overrides:
getTablePrivileges
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getTables
public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException - Specified by:
getTables
in interfaceDatabaseMetaData
- Overrides:
getTables
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getTableTypes
- Specified by:
getTableTypes
in interfaceDatabaseMetaData
- Overrides:
getTableTypes
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getTypeInfo
- Specified by:
getTypeInfo
in interfaceDatabaseMetaData
- Overrides:
getTypeInfo
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getUDTs
public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException - Specified by:
getUDTs
in interfaceDatabaseMetaData
- Overrides:
getUDTs
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-
getVersionColumns
- Specified by:
getVersionColumns
in interfaceDatabaseMetaData
- Overrides:
getVersionColumns
in classDelegatingDatabaseMetaData
- Throws:
SQLException
-