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
ConstructorsConstructorDescriptionDatabaseMetaDataWrapperImpl(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 ConnectionWrapperImplGets the connection wrapper.getCrossReference(String parentCatalog, String parentSchema, String parentTable, String foreignCatalog, String foreignSchema, String foreignTable) intintgetExportedKeys(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 ResultSetWrapperImplwrapResultSet(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, waitMethods 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, supportsSharding, supportsStatementPooling, supportsStoredFunctionsUsingCallSyntax, supportsStoredProcedures, supportsSubqueriesInComparisons, supportsSubqueriesInExists, supportsSubqueriesInIns, supportsSubqueriesInQuantifieds, supportsTableCorrelationNames, supportsTransactionIsolationLevel, supportsTransactions, supportsUnion, supportsUnionAll, updatesAreDetected, usesLocalFilePerTable, usesLocalFilesMethods 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:DatabaseMetaDataWrapperGets the database meta data that is wrapped.- Specified by:
getWrappedin interfaceDatabaseMetaDataWrapper- Specified by:
getWrappedin interfaceWrapper
-
toString
-
wrapResultSet
Wraps aResultSet, if not already wrapped by this wrapper.- Throws:
SQLException- See Also:
-
getURL
Description copied from interface:DatabaseMetaDataWrapper- Specified by:
getURLin interfaceDatabaseMetaData- Specified by:
getURLin 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:
getDriverNamein interfaceDatabaseMetaData- Specified by:
getDriverNamein 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:
getDriverVersionin interfaceDatabaseMetaData- Specified by:
getDriverVersionin 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:
getDriverMajorVersionin interfaceDatabaseMetaData- Specified by:
getDriverMajorVersionin 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:
getDriverMinorVersionin interfaceDatabaseMetaData- Specified by:
getDriverMinorVersionin 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:
getProceduresin interfaceDatabaseMetaData- Specified by:
getProceduresin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getProcedureColumns
public ResultSetWrapperImpl getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException - Specified by:
getProcedureColumnsin interfaceDatabaseMetaData- Specified by:
getProcedureColumnsin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getTables
public ResultSetWrapperImpl getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types) throws SQLException - Specified by:
getTablesin interfaceDatabaseMetaData- Specified by:
getTablesin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getSchemas
- Specified by:
getSchemasin interfaceDatabaseMetaData- Specified by:
getSchemasin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getCatalogs
- Specified by:
getCatalogsin interfaceDatabaseMetaData- Specified by:
getCatalogsin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getTableTypes
- Specified by:
getTableTypesin interfaceDatabaseMetaData- Specified by:
getTableTypesin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getColumns
public ResultSetWrapperImpl getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException - Specified by:
getColumnsin interfaceDatabaseMetaData- Specified by:
getColumnsin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getColumnPrivileges
public ResultSetWrapperImpl getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException - Specified by:
getColumnPrivilegesin interfaceDatabaseMetaData- Specified by:
getColumnPrivilegesin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getTablePrivileges
public ResultSetWrapperImpl getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException - Specified by:
getTablePrivilegesin interfaceDatabaseMetaData- Specified by:
getTablePrivilegesin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getBestRowIdentifier
public ResultSetWrapperImpl getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException - Specified by:
getBestRowIdentifierin interfaceDatabaseMetaData- Specified by:
getBestRowIdentifierin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getVersionColumns
public ResultSetWrapperImpl getVersionColumns(String catalog, String schema, String table) throws SQLException - Specified by:
getVersionColumnsin interfaceDatabaseMetaData- Specified by:
getVersionColumnsin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getPrimaryKeys
public ResultSetWrapperImpl getPrimaryKeys(String catalog, String schema, String table) throws SQLException - Specified by:
getPrimaryKeysin interfaceDatabaseMetaData- Specified by:
getPrimaryKeysin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getImportedKeys
public ResultSetWrapperImpl getImportedKeys(String catalog, String schema, String table) throws SQLException - Specified by:
getImportedKeysin interfaceDatabaseMetaData- Specified by:
getImportedKeysin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getExportedKeys
public ResultSetWrapperImpl getExportedKeys(String catalog, String schema, String table) throws SQLException - Specified by:
getExportedKeysin interfaceDatabaseMetaData- Specified by:
getExportedKeysin 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:
getCrossReferencein interfaceDatabaseMetaData- Specified by:
getCrossReferencein interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getTypeInfo
- Specified by:
getTypeInfoin interfaceDatabaseMetaData- Specified by:
getTypeInfoin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getIndexInfo
public ResultSetWrapperImpl getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException - Specified by:
getIndexInfoin interfaceDatabaseMetaData- Specified by:
getIndexInfoin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getUDTs
public ResultSetWrapperImpl getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException - Specified by:
getUDTsin interfaceDatabaseMetaData- Specified by:
getUDTsin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getConnection
- Specified by:
getConnectionin interfaceDatabaseMetaData- Specified by:
getConnectionin interfaceDatabaseMetaDataWrapper- Throws:
SQLException
-
getSuperTypes
public ResultSetWrapperImpl getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException - Specified by:
getSuperTypesin interfaceDatabaseMetaData- Specified by:
getSuperTypesin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getSuperTables
public ResultSetWrapperImpl getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException - Specified by:
getSuperTablesin interfaceDatabaseMetaData- Specified by:
getSuperTablesin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getAttributes
public ResultSetWrapperImpl getAttributes(String catalog, String schemaPattern, String typeNamePattern, String attributeNamePattern) throws SQLException - Specified by:
getAttributesin interfaceDatabaseMetaData- Specified by:
getAttributesin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getSchemas
- Specified by:
getSchemasin interfaceDatabaseMetaData- Specified by:
getSchemasin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getClientInfoProperties
- Specified by:
getClientInfoPropertiesin interfaceDatabaseMetaData- Specified by:
getClientInfoPropertiesin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getFunctions
public ResultSetWrapperImpl getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException - Specified by:
getFunctionsin interfaceDatabaseMetaData- Specified by:
getFunctionsin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getFunctionColumns
public ResultSetWrapperImpl getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException - Specified by:
getFunctionColumnsin interfaceDatabaseMetaData- Specified by:
getFunctionColumnsin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
getPseudoColumns
public ResultSetWrapperImpl getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException - Specified by:
getPseudoColumnsin interfaceDatabaseMetaData- Specified by:
getPseudoColumnsin interfaceDatabaseMetaDataWrapper- Throws:
SQLException- See Also:
-
