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
Constructors Constructor Description LoggingDatabaseMetaData(DatabaseMetaData meta) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResultSetgetBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable)ResultSetgetCatalogs()ResultSetgetColumnPrivileges(String catalog, String schema, String table, String columnNamePattern)ResultSetgetColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)ResultSetgetCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable)ResultSetgetExportedKeys(String catalog, String schema, String table)ResultSetgetImportedKeys(String catalog, String schema, String table)ResultSetgetIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate)ResultSetgetPrimaryKeys(String catalog, String schema, String table)ResultSetgetProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern)ResultSetgetProcedures(String catalog, String schemaPattern, String procedureNamePattern)ResultSetgetSchemas()ResultSetgetTablePrivileges(String catalog, String schemaPattern, String tableNamePattern)ResultSetgetTables(String catalog, String schemaPattern, String tableNamePattern, String[] types)ResultSetgetTableTypes()ResultSetgetTypeInfo()ResultSetgetUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types)ResultSetgetVersionColumns(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 Detail
- 
LoggingDatabaseMetaData
public LoggingDatabaseMetaData(DatabaseMetaData meta)
 
 - 
 
- 
Method Detail
- 
getBestRowIdentifier
public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException
- Specified by:
 getBestRowIdentifierin interfaceDatabaseMetaData- Overrides:
 getBestRowIdentifierin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getCatalogs
public ResultSet getCatalogs() throws SQLException
- Specified by:
 getCatalogsin interfaceDatabaseMetaData- Overrides:
 getCatalogsin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getColumnPrivileges
public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException
- Specified by:
 getColumnPrivilegesin interfaceDatabaseMetaData- Overrides:
 getColumnPrivilegesin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getColumns
public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException
- Specified by:
 getColumnsin interfaceDatabaseMetaData- Overrides:
 getColumnsin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getCrossReference
public ResultSet getCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException
- Specified by:
 getCrossReferencein interfaceDatabaseMetaData- Overrides:
 getCrossReferencein classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getExportedKeys
public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException
- Specified by:
 getExportedKeysin interfaceDatabaseMetaData- Overrides:
 getExportedKeysin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getImportedKeys
public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException
- Specified by:
 getImportedKeysin interfaceDatabaseMetaData- Overrides:
 getImportedKeysin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getIndexInfo
public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException
- Specified by:
 getIndexInfoin interfaceDatabaseMetaData- Overrides:
 getIndexInfoin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getPrimaryKeys
public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException
- Specified by:
 getPrimaryKeysin interfaceDatabaseMetaData- Overrides:
 getPrimaryKeysin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getProcedureColumns
public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException
- Specified by:
 getProcedureColumnsin interfaceDatabaseMetaData- Overrides:
 getProcedureColumnsin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getProcedures
public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException
- Specified by:
 getProceduresin interfaceDatabaseMetaData- Overrides:
 getProceduresin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getSchemas
public ResultSet getSchemas() throws SQLException
- Specified by:
 getSchemasin interfaceDatabaseMetaData- Overrides:
 getSchemasin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getTablePrivileges
public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException
- Specified by:
 getTablePrivilegesin interfaceDatabaseMetaData- Overrides:
 getTablePrivilegesin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getTables
public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException
- Specified by:
 getTablesin interfaceDatabaseMetaData- Overrides:
 getTablesin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getTableTypes
public ResultSet getTableTypes() throws SQLException
- Specified by:
 getTableTypesin interfaceDatabaseMetaData- Overrides:
 getTableTypesin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getTypeInfo
public ResultSet getTypeInfo() throws SQLException
- Specified by:
 getTypeInfoin interfaceDatabaseMetaData- Overrides:
 getTypeInfoin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getUDTs
public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException
- Specified by:
 getUDTsin interfaceDatabaseMetaData- Overrides:
 getUDTsin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
- 
getVersionColumns
public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException
- Specified by:
 getVersionColumnsin interfaceDatabaseMetaData- Overrides:
 getVersionColumnsin classDelegatingDatabaseMetaData- Throws:
 SQLException
 
 - 
 
 -