java.lang.Object
com.aoapps.sql.wrapper.DatabaseMetaDataWrapperImpl
- All Implemented Interfaces:
DatabaseMetaDataWrapper
,Wrapper
,AutoCloseable
,DatabaseMetaData
,Wrapper
Wraps a
DatabaseMetaData
.- Author:
- AO Industries, Inc.
-
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
ConstructorDescriptionDatabaseMetaDataWrapperImpl
(ConnectionWrapperImpl connectionWrapper, DatabaseMetaData wrapped) -
Method Summary
Modifier and TypeMethodDescriptiongetAttributes
(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) 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) protected ConnectionWrapperImpl
Gets the connection wrapper.getCrossReference
(String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable) 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) 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) getPseudoColumns
(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) getSchemas
(String catalog, String schemaPattern) getSuperTables
(String catalog, String schemaPattern, String tableNamePattern) getSuperTypes
(String catalog, String schemaPattern, String typeNamePattern) getTablePrivileges
(String catalog, String schemaPattern, String tableNamePattern) getURL()
getVersionColumns
(String catalog, String schema, String table) Gets the database meta data that is wrapped.toString()
protected ResultSetWrapperImpl
wrapResultSet
(ResultSet results) Wraps aResultSet
, if not already wrapped by this wrapper.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.sql.DatabaseMetaData
supportsSharding
Methods inherited from interface com.aoapps.sql.wrapper.DatabaseMetaDataWrapper
allProceduresAreCallable, allTablesAreSelectable, autoCommitFailureClosesAllResultSets, close, dataDefinitionCausesTransactionCommit, dataDefinitionIgnoredInTransactions, deletesAreDetected, doesMaxRowSizeIncludeBlobs, generatedKeyAlwaysReturned, getCatalogSeparator, getCatalogTerm, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabaseProductName, getDatabaseProductVersion, getDefaultTransactionIsolation, getExtraNameCharacters, getIdentifierQuoteString, getJDBCMajorVersion, getJDBCMinorVersion, getMaxBinaryLiteralLength, getMaxCatalogNameLength, getMaxCharLiteralLength, getMaxColumnNameLength, getMaxColumnsInGroupBy, getMaxColumnsInIndex, getMaxColumnsInOrderBy, getMaxColumnsInSelect, getMaxColumnsInTable, getMaxConnections, getMaxCursorNameLength, getMaxIndexLength, getMaxLogicalLobSize, getMaxProcedureNameLength, getMaxRowSize, getMaxSchemaNameLength, getMaxStatementLength, getMaxStatements, getMaxTableNameLength, getMaxTablesInSelect, getMaxUserNameLength, getNumericFunctions, getProcedureTerm, getResultSetHoldability, getRowIdLifetime, getSchemaTerm, getSearchStringEscape, getSQLKeywords, getSQLStateType, getStringFunctions, getSystemFunctions, getTimeDateFunctions, getUserName, insertsAreDetected, isCatalogAtStart, isReadOnly, 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, supportsRefCursors, supportsResultSetConcurrency, supportsResultSetHoldability, supportsResultSetType, supportsSavepoints, supportsSchemasInDataManipulation, supportsSchemasInIndexDefinitions, supportsSchemasInPrivilegeDefinitions, supportsSchemasInProcedureCalls, supportsSchemasInTableDefinitions, supportsSelectForUpdate, supportsStatementPooling, supportsStoredFunctionsUsingCallSyntax, supportsStoredProcedures, supportsSubqueriesInComparisons, supportsSubqueriesInExists, supportsSubqueriesInIns, supportsSubqueriesInQuantifieds, supportsTableCorrelationNames, supportsTransactionIsolationLevel, supportsTransactions, supportsUnion, supportsUnionAll, updatesAreDetected, usesLocalFilePerTable, usesLocalFiles
Methods inherited from interface com.aoapps.sql.wrapper.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
DatabaseMetaDataWrapperImpl
public DatabaseMetaDataWrapperImpl(ConnectionWrapperImpl connectionWrapper, DatabaseMetaData wrapped)
-
-
Method Details
-
getConnectionWrapper
Gets the connection wrapper. -
getWrapped
Description copied from interface:DatabaseMetaDataWrapper
Gets the database meta data that is wrapped.- Specified by:
getWrapped
in interfaceDatabaseMetaDataWrapper
- Specified by:
getWrapped
in interfaceWrapper
-
toString
-
wrapResultSet
Wraps aResultSet
, if not already wrapped by this wrapper.- Throws:
SQLException
- See Also:
-
getURL
Description copied from interface:DatabaseMetaDataWrapper
- Specified by:
getURL
in interfaceDatabaseMetaData
- Specified by:
getURL
in interfaceDatabaseMetaDataWrapper
- Returns:
- When this wrapper is associated with a wrapping driver, inserts the driver prefix into the JDBC URL.
- Throws:
SQLException
- See Also:
-
getDriverName
Description copied from interface:DatabaseMetaDataWrapper
- Specified by:
getDriverName
in interfaceDatabaseMetaData
- Specified by:
getDriverName
in interfaceDatabaseMetaDataWrapper
- Returns:
- When this wrapper is associated with a wrapping driver, uses wrapping-driver-provided modification of the wrapped driver's name.
- Throws:
SQLException
- See Also:
-
getDriverVersion
Description copied from interface:DatabaseMetaDataWrapper
- Specified by:
getDriverVersion
in interfaceDatabaseMetaData
- Specified by:
getDriverVersion
in interfaceDatabaseMetaDataWrapper
- Returns:
- When this wrapper is associated with a wrapping driver, uses wrapping-driver-provided modification of the wrapped driver's version.
- Throws:
SQLException
- See Also:
-
getDriverMajorVersion
public int getDriverMajorVersion()Description copied from interface:DatabaseMetaDataWrapper
- Specified by:
getDriverMajorVersion
in interfaceDatabaseMetaData
- Specified by:
getDriverMajorVersion
in interfaceDatabaseMetaDataWrapper
- Returns:
- When this wrapper is associated with a wrapping driver, uses wrapping-driver-provided modification of the wrapped driver's version.
- See Also:
-
getDriverMinorVersion
public int getDriverMinorVersion()Description copied from interface:DatabaseMetaDataWrapper
- Specified by:
getDriverMinorVersion
in interfaceDatabaseMetaData
- Specified by:
getDriverMinorVersion
in interfaceDatabaseMetaDataWrapper
- Returns:
- When this wrapper is associated with a wrapping driver, uses wrapping-driver-provided modification of the wrapped driver's version.
- See Also:
-
getProcedures
public ResultSetWrapperImpl getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException - Specified by:
getProcedures
in interfaceDatabaseMetaData
- Specified by:
getProcedures
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getProcedureColumns
public ResultSetWrapperImpl getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException - Specified by:
getProcedureColumns
in interfaceDatabaseMetaData
- Specified by:
getProcedureColumns
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getTables
public ResultSetWrapperImpl getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException - Specified by:
getTables
in interfaceDatabaseMetaData
- Specified by:
getTables
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getSchemas
- Specified by:
getSchemas
in interfaceDatabaseMetaData
- Specified by:
getSchemas
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getCatalogs
- Specified by:
getCatalogs
in interfaceDatabaseMetaData
- Specified by:
getCatalogs
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getTableTypes
- Specified by:
getTableTypes
in interfaceDatabaseMetaData
- Specified by:
getTableTypes
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getColumns
public ResultSetWrapperImpl getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException - Specified by:
getColumns
in interfaceDatabaseMetaData
- Specified by:
getColumns
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getColumnPrivileges
public ResultSetWrapperImpl getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException - Specified by:
getColumnPrivileges
in interfaceDatabaseMetaData
- Specified by:
getColumnPrivileges
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getTablePrivileges
public ResultSetWrapperImpl getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException - Specified by:
getTablePrivileges
in interfaceDatabaseMetaData
- Specified by:
getTablePrivileges
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getBestRowIdentifier
public ResultSetWrapperImpl getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException - Specified by:
getBestRowIdentifier
in interfaceDatabaseMetaData
- Specified by:
getBestRowIdentifier
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getVersionColumns
public ResultSetWrapperImpl getVersionColumns(String catalog, String schema, String table) throws SQLException - Specified by:
getVersionColumns
in interfaceDatabaseMetaData
- Specified by:
getVersionColumns
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getPrimaryKeys
public ResultSetWrapperImpl getPrimaryKeys(String catalog, String schema, String table) throws SQLException - Specified by:
getPrimaryKeys
in interfaceDatabaseMetaData
- Specified by:
getPrimaryKeys
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getImportedKeys
public ResultSetWrapperImpl getImportedKeys(String catalog, String schema, String table) throws SQLException - Specified by:
getImportedKeys
in interfaceDatabaseMetaData
- Specified by:
getImportedKeys
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getExportedKeys
public ResultSetWrapperImpl getExportedKeys(String catalog, String schema, String table) throws SQLException - Specified by:
getExportedKeys
in interfaceDatabaseMetaData
- Specified by:
getExportedKeys
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getCrossReference
public ResultSetWrapperImpl getCrossReference(String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException - Specified by:
getCrossReference
in interfaceDatabaseMetaData
- Specified by:
getCrossReference
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getTypeInfo
- Specified by:
getTypeInfo
in interfaceDatabaseMetaData
- Specified by:
getTypeInfo
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getIndexInfo
public ResultSetWrapperImpl getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException - Specified by:
getIndexInfo
in interfaceDatabaseMetaData
- Specified by:
getIndexInfo
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getUDTs
public ResultSetWrapperImpl getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException - Specified by:
getUDTs
in interfaceDatabaseMetaData
- Specified by:
getUDTs
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getConnection
- Specified by:
getConnection
in interfaceDatabaseMetaData
- Specified by:
getConnection
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
-
getSuperTypes
public ResultSetWrapperImpl getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException - Specified by:
getSuperTypes
in interfaceDatabaseMetaData
- Specified by:
getSuperTypes
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getSuperTables
public ResultSetWrapperImpl getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException - Specified by:
getSuperTables
in interfaceDatabaseMetaData
- Specified by:
getSuperTables
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getAttributes
public ResultSetWrapperImpl getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException - Specified by:
getAttributes
in interfaceDatabaseMetaData
- Specified by:
getAttributes
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getSchemas
- Specified by:
getSchemas
in interfaceDatabaseMetaData
- Specified by:
getSchemas
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getClientInfoProperties
- Specified by:
getClientInfoProperties
in interfaceDatabaseMetaData
- Specified by:
getClientInfoProperties
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getFunctions
public ResultSetWrapperImpl getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException - Specified by:
getFunctions
in interfaceDatabaseMetaData
- Specified by:
getFunctions
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getFunctionColumns
public ResultSetWrapperImpl getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException - Specified by:
getFunctionColumns
in interfaceDatabaseMetaData
- Specified by:
getFunctionColumns
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-
getPseudoColumns
public ResultSetWrapperImpl getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException - Specified by:
getPseudoColumns
in interfaceDatabaseMetaData
- Specified by:
getPseudoColumns
in interfaceDatabaseMetaDataWrapper
- Throws:
SQLException
- See Also:
-