The purpose of this object is to make sure references to the underlying physical connection don't leak to the client / user, and to make the lifetime of the metadata object equal to the logical connection instead of the underlying physical connection.
| Modifier and Type | Field and Description |
|---|---|
| private final int | driverMajorVersion
Cached value for the driver major version. |
| private final int | driverMinorVersion
Cached value for the driver minor version. |
| private final LogicalConnection | logicalCon
The associated logical connection. |
| private final LogWriter | logWriter
Error message destination, if any. |
| Access | Constructor and Description |
|---|---|
| pack-priv | LogicalDatabaseMetaData(LogicalConnection
the associated logical connection logicalCon, LogWriter destination for log/error messages logWriter)Creates a new logical database metadata object. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | allProceduresAreCallable()
Implements java. getProcedures.
|
| public boolean | allTablesAreSelectable()
Implements java. getTables in a SELECT
statement.
|
| public boolean | autoCommitFailureClosesAllResultSets()
Implements java. SQLException while autoCommit is true indicates
that all open ResultSets are closed, even ones that are holdable.
|
| public boolean | dataDefinitionCausesTransactionCommit()
Implements java. |
| public boolean | dataDefinitionIgnoredInTransactions()
Implements java. |
| public boolean | deletesAreDetected(int
the type)ResultSet type; one of
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEImplements java. ResultSet.rowDeleted.
|
| public boolean | doesMaxRowSizeIncludeBlobs()
Implements java. getMaxRowSize includes the SQL data types
LONGVARCHAR and LONGVARBINARY.
|
| public boolean | generatedKeyAlwaysReturned()
Implements java. |
| public ResultSet | getAttributes(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schemaPattern, String null means that the schema name should not be used to narrow
the searcha type name pattern; must match the
type name as it is stored in the database typeNamePattern, String an attribute name pattern; must match the attribute
name as it is declared in the database attributeNamePattern)Implements java. |
| public ResultSet | getBestRowIdentifier(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schema, String null means that the schema name should not be used to narrow
the searcha table name; must match the table name as it is stored
in the database table, int the scope of interest; use same values as SCOPE scope, boolean include columns that are nullable. nullable)Implements java. |
| public ResultSet | getCatalogs()
Implements java. |
| public String | getCatalogSeparator()
Implements java. String that this database uses as the
separator between a catalog and table name.
|
| public String | getCatalogTerm()
Implements java. |
| public ResultSet | getClientInfoProperties()
Implements java. |
| public ResultSet | getColumnPrivileges(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name; must match the schema name as it is
stored in the database; "" retrieves those without a schema;
schema, String null means that the schema name should not be used to narrow
the searcha table name; must match the table name as it is
stored in the database table, String a column name pattern; must match the column
name as it is stored in the database columnNamePattern)Implements java. |
| public ResultSet | getColumns(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schemaPattern, String null means that the schema name should not be used to narrow
the searcha table name pattern; must match the
table name as it is stored in the database tableNamePattern, String a column name pattern; must match the column
name as it is stored in the database columnNamePattern)Implements java. |
| public Connection | getConnection()
Implements java. |
| public ResultSet | getCrossReference(String
a catalog name; must match the catalog name
as it is stored in the database; "" retrieves those without a
catalog; parentCatalog, String null means drop catalog name from the selection criteriaa schema name; must match the schema name as
it is stored in the database; "" retrieves those without a schema;
parentSchema, String null means drop schema name from the selection criteriathe name of the table that exports the key; must match
the table name as it is stored in the database parentTable, String a catalog name; must match the catalog name as
it is stored in the database; "" retrieves those without a
catalog; foreignCatalog, String null means drop catalog name from the selection criteriaa schema name; must match the schema name as it
is stored in the database; "" retrieves those without a schema;
foreignSchema, String null means drop schema name from the selection criteriathe name of the table that imports the key; must match
the table name as it is stored in the database foreignTable)Implements java. |
| public int | getDatabaseMajorVersion()
Implements java. |
| public int | getDatabaseMinorVersion()
Implements java. |
| public String | getDatabaseProductName()
Implements java. |
| public String | getDatabaseProductVersion()
Implements java. |
| public int | getDefaultTransactionIsolation()
Implements java. |
| public int | getDriverMajorVersion()
Implements java. |
| public int | getDriverMinorVersion()
Implements java. |
| public String | getDriverName()
Implements java. |
| public String | getDriverVersion()
Implements java. String.
|
| public ResultSet | getExportedKeys(String
a catalog name; must match the catalog name as it
is stored in this database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schema, String null means that the schema name should not be used to narrow
the searcha table name; must match the table name as it is stored
in this database table)Implements java. |
| public String | getExtraNameCharacters()
Implements java. |
| public ResultSet | getFunctionColumns(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schemaPattern, String null means that the schema name should not be used to narrow
the searcha procedure name pattern; must match the
function name as it is stored in the database functionNamePattern, String a parameter name pattern; must match the
parameter or column name as it is stored in the database columnNamePattern)Implements java. |
| public ResultSet | getFunctions(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schemaPattern, String null means that the schema name should not be used to narrow
the searcha function name pattern; must match the
function name as it is stored in the database functionNamePattern)Implements java. |
| public String | getIdentifierQuoteString()
Implements java. |
| public ResultSet | getImportedKeys(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schema, String null means that the schema name should not be used to narrow
the searcha table name; must match the table name as it is stored
in the database table)Implements java. |
| public ResultSet | getIndexInfo(String
a catalog name; must match the catalog name as it
is stored in this database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name; must match the schema name
as it is stored in this database; "" retrieves those without a schema;
schema, String null means that the schema name should not be used to narrow
the searcha table name; must match the table name as it is stored
in this database table, boolean when true, return only indices for unique values;
when false, return indices regardless of whether unique or not unique, boolean when true, result is allowed to reflect approximate
or out of data values; when false, results are requested to be
accurate approximate)Implements java. |
| public int | getJDBCMajorVersion()
Implements java. |
| public int | getJDBCMinorVersion()
Implements java. |
| public int | getMaxBinaryLiteralLength()
Implements java. |
| public int | getMaxCatalogNameLength()
Implements java. |
| public int | getMaxCharLiteralLength()
Implements java. |
| public int | getMaxColumnNameLength()
Implements java. |
| public int | getMaxColumnsInGroupBy()
Implements java. GROUP BY clause.
|
| public int | getMaxColumnsInIndex()
Implements java. |
| public int | getMaxColumnsInOrderBy()
Implements java. ORDER BY clause.
|
| public int | getMaxColumnsInSelect()
Implements java. SELECT list.
|
| public int | getMaxColumnsInTable()
Implements java. |
| public int | getMaxConnections()
Implements java. |
| public int | getMaxCursorNameLength()
Implements java. |
| public int | getMaxIndexLength()
Implements java. |
| public long | getMaxLogicalLobSize()
Overrides default java. |
| public int | getMaxProcedureNameLength()
Implements java. |
| public int | getMaxRowSize()
Implements java. |
| public int | getMaxSchemaNameLength()
Implements java. |
| public int | getMaxStatementLength()
Implements java. |
| public int | getMaxStatements()
Implements java. |
| public int | getMaxTableNameLength()
Implements java. |
| public int | getMaxTablesInSelect()
Implements java. SELECT statement.
|
| public int | getMaxUserNameLength()
Implements java. |
| public String | getNumericFunctions()
Implements java. |
| public ResultSet | getPrimaryKeys(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schema, String null means that the schema name should not be used to narrow
the searcha table name; must match the table name as it is stored
in the database table)Implements java. |
| public ResultSet | getProcedureColumns(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schemaPattern, String null means that the schema name should not be used to narrow
the searcha procedure name pattern; must match the
procedure name as it is stored in the database procedureNamePattern, String a column name pattern; must match the column name
as it is stored in the database columnNamePattern)Implements java. |
| public ResultSet | getProcedures(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schemaPattern, String null means that the schema name should not be used to narrow
the searcha procedure name pattern; must match the
procedure name as it is stored in the database procedureNamePattern)Implements java. |
| public String | getProcedureTerm()
Implements java. |
| public ResultSet | getPseudoColumns(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schemaPattern, String null means that the schema name should not be used to narrow
the searcha table name pattern; must match the
table name as it is stored in the database tableNamePattern, String a column name pattern; must match the column
name as it is stored in the database columnNamePattern)Implements java. |
| pack-priv final DatabaseMetaData | Returns: Metadata object from the underlying physical connection.Returns the real metadata object if appropriate. |
| public int | getResultSetHoldability()
Implements java. ResultSet
objects.
|
| public RowIdLifetime | getRowIdLifetime()
Implements java. ROWID type,
and the lifetime for which a RowId object remains valid.
|
| public ResultSet | getSchemas()
Implements java. |
| public ResultSet | getSchemas(String
a catalog name; must match the catalog name as it is stored
in the database;"" retrieves those without a catalog; null means catalog
name should not be used to narrow down the search. catalog, String a schema name; must match the schema name as it is
stored in the database; null means
schema name should not be used to narrow down the search. schemaPattern)Implements java. |
| public String | getSchemaTerm()
Implements java. |
| public String | getSearchStringEscape()
Implements java. |
| public String | getSQLKeywords()
Implements java. |
| public int | getSQLStateType()
Implements java. SQLException.getSQLState
is X/Open (now known as Open Group) SQL CLI or SQL:2003.
|
| public String | getStringFunctions()
Implements java. |
| public ResultSet | getSuperTables(String
a catalog name; "" retrieves those without a catalog;
catalog, String null means drop catalog name from the selection criteriaa schema name pattern; "" retrieves those
without a schema schemaPattern, String a table name pattern; may be a fully-qualified
name tableNamePattern)Implements java. |
| public ResultSet | getSuperTypes(String
a catalog name; "" retrieves those without a catalog;
catalog, String null means drop catalog name from the selection criteriaa schema name pattern; "" retrieves those
without a schema schemaPattern, String a UDT name pattern; may be a fully-qualified
name typeNamePattern)Implements java. |
| public String | getSystemFunctions()
Implements java. |
| public ResultSet | getTablePrivileges(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schemaPattern, String null means that the schema name should not be used to narrow
the searcha table name pattern; must match the
table name as it is stored in the database tableNamePattern)Implements java. |
| public ResultSet | getTables(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name pattern; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schemaPattern, String null means that the schema name should not be used to narrow
the searcha table name pattern; must match the
table name as it is stored in the database tableNamePattern, String[] a list of table types, which must be from the list of table types
returned from types)getTableTypes, to include; null returns
all typesImplements java. |
| public ResultSet | getTableTypes()
Implements java. |
| public String | getTimeDateFunctions()
Implements java. |
| public ResultSet | getTypeInfo()
Implements java. |
| public ResultSet | getUDTs(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema pattern name; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schemaPattern, String null means that the schema name should not be used to narrow
the searcha type name pattern; must match the type name
as it is stored in the database; may be a fully qualified name typeNamePattern, int[] a list of user-defined types (JAVA_OBJECT,
STRUCT, or DISTINCT) to include; types)null returns all typesImplements java. |
| public String | |
| public String | getUserName()
Implements java. |
| public ResultSet | getVersionColumns(String
a catalog name; must match the catalog name as it
is stored in the database; "" retrieves those without a catalog;
catalog, String null means that the catalog name should not be used to narrow
the searcha schema name; must match the schema name
as it is stored in the database; "" retrieves those without a schema;
schema, String null means that the schema name should not be used to narrow
the searcha table name; must match the table name as it is stored
in the database table)Implements java. |
| public boolean | insertsAreDetected(int
the type)ResultSet type; one of
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEImplements java. ResultSet.rowInserted.
|
| public boolean | isCatalogAtStart()
Implements java. |
| public boolean | isReadOnly()
Implements java. |
| public boolean | isWrapperFor(Class<?>
a Class defining an interface. interfaces)Implements java. |
| public boolean | locatorsUpdateCopy()
Implements java. |
| public boolean | nullPlusNonNullIsNull()
Implements java. NULL and non-NULL values being
NULL.
|
| public boolean | nullsAreSortedAtEnd()
Implements java. NULL values are sorted at the end regardless of
sort order.
|
| public boolean | nullsAreSortedAtStart()
Implements java. NULL values are sorted at the start regardless
of sort order.
|
| public boolean | nullsAreSortedHigh()
Implements java. NULL values are sorted high.
|
| public boolean | nullsAreSortedLow()
Implements java. NULL values are sorted low.
|
| public boolean | othersDeletesAreVisible(int
the type)ResultSet type; one of
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEImplements java. |
| public boolean | othersInsertsAreVisible(int
the type)ResultSet type; one of
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEImplements java. |
| public boolean | othersUpdatesAreVisible(int
the type)ResultSet type; one of
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEImplements java. |
| public boolean | ownDeletesAreVisible(int
the type)ResultSet type; one of
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEImplements java. |
| public boolean | ownInsertsAreVisible(int
the type)ResultSet type; one of
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEImplements java. |
| public boolean | ownUpdatesAreVisible(int
the type)ResultSet type; one of
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEImplements java. ResultSet object,
the result set's own updates are visible.
|
| public boolean | storesLowerCaseIdentifiers()
Implements java. |
| public boolean | storesLowerCaseQuotedIdentifiers()
Implements java. |
| public boolean | storesMixedCaseIdentifiers()
Implements java. |
| public boolean | storesMixedCaseQuotedIdentifiers()
Implements java. |
| public boolean | storesUpperCaseIdentifiers()
Implements java. |
| public boolean | storesUpperCaseQuotedIdentifiers()
Implements java. |
| public boolean | supportsAlterTableWithAddColumn()
Implements java. ALTER TABLE
with add column.
|
| public boolean | supportsAlterTableWithDropColumn()
Implements java. ALTER TABLE
with drop column.
|
| public boolean | supportsANSI92EntryLevelSQL()
Implements java. |
| public boolean | supportsANSI92FullSQL()
Implements java. |
| public boolean | supportsANSI92IntermediateSQL()
Implements java. |
| public boolean | supportsBatchUpdates()
Implements java. |
| public boolean | supportsCatalogsInDataManipulation()
Implements java. |
| public boolean | supportsCatalogsInIndexDefinitions()
Implements java. |
| public boolean | supportsCatalogsInPrivilegeDefinitions()
Implements java. |
| public boolean | supportsCatalogsInProcedureCalls()
Implements java. |
| public boolean | supportsCatalogsInTableDefinitions()
Implements java. |
| public boolean | supportsColumnAliasing()
Implements java. |
| public boolean | supportsConvert()
Implements java. CONVERT for the conversion of one JDBC type to another.
|
| public boolean | supportsConvert(int
the type to convert from; one of the type codes from
the class fromType, int java.sql.Typesthe type to convert to; one of the type codes from
the class toType)java.sql.TypesImplements java. CONVERT for conversions between the JDBC types fromType
and toType.
|
| public boolean | supportsCoreSQLGrammar()
Implements java. |
| public boolean | supportsCorrelatedSubqueries()
Implements java. |
| public boolean | supportsDataDefinitionAndDataManipulationTransactions()
Implements java. |
| public boolean | supportsDataManipulationTransactionsOnly()
Implements java. |
| public boolean | supportsDifferentTableCorrelationNames()
Implements java. |
| public boolean | supportsExpressionsInOrderBy()
Implements java. ORDER BY lists.
|
| public boolean | supportsExtendedSQLGrammar()
Implements java. |
| public boolean | supportsFullOuterJoins()
Implements java. |
| public boolean | supportsGetGeneratedKeys()
Implements java. |
| public boolean | supportsGroupBy()
Implements java. GROUP BY clause.
|
| public boolean | supportsGroupByBeyondSelect()
Implements java. SELECT statement in a GROUP BY clause
provided that all of the columns in the SELECT statement
are included in the GROUP BY clause.
|
| public boolean | supportsGroupByUnrelated()
Implements java. SELECT statement in a
GROUP BY clause.
|
| public boolean | supportsIntegrityEnhancementFacility()
Implements java. |
| public boolean | supportsLikeEscapeClause()
Implements java. LIKE escape clause.
|
| public boolean | supportsLimitedOuterJoins()
Implements java. |
| public boolean | supportsMinimumSQLGrammar()
Implements java. |
| public boolean | supportsMixedCaseIdentifiers()
Implements java. |
| public boolean | supportsMixedCaseQuotedIdentifiers()
Implements java. |
| public boolean | supportsMultipleOpenResults()
Implements java. ResultSet objects
returned from a CallableStatement object
simultaneously.
|
| public boolean | supportsMultipleResultSets()
Implements java. ResultSet objects from a single call to the
method execute.
|
| public boolean | supportsMultipleTransactions()
Implements java. |
| public boolean | supportsNamedParameters()
Implements java. |
| public boolean | supportsNonNullableColumns()
Implements java. |
| public boolean | supportsOpenCursorsAcrossCommit()
Implements java. |
| public boolean | supportsOpenCursorsAcrossRollback()
Implements java. |
| public boolean | supportsOpenStatementsAcrossCommit()
Implements java. |
| public boolean | supportsOpenStatementsAcrossRollback()
Implements java. |
| public boolean | supportsOrderByUnrelated()
Implements java. SELECT statement in an
ORDER BY clause.
|
| public boolean | supportsOuterJoins()
Implements java. |
| public boolean | supportsPositionedDelete()
Implements java. DELETE
statements.
|
| public boolean | supportsPositionedUpdate()
Implements java. UPDATE
statements.
|
| public boolean | supportsRefCursors()
Overrides default java. |
| public boolean | supportsResultSetConcurrency(int
defined in type, int java.sql.ResultSettype defined in concurrency)java.sql.ResultSetImplements java. |
| public boolean | supportsResultSetHoldability(int
one of the following constants:
holdability)ResultSet.HOLD_CURSORS_OVER_COMMIT or
ResultSet.CLOSE_CURSORS_AT_COMMITImplements java. |
| public boolean | supportsResultSetType(int
defined in type)java.sql.ResultSetImplements java. |
| public boolean | supportsSavepoints()
Implements java. |
| public boolean | supportsSchemasInDataManipulation()
Implements java. |
| public boolean | supportsSchemasInIndexDefinitions()
Implements java. |
| public boolean | supportsSchemasInPrivilegeDefinitions()
Implements java. |
| public boolean | supportsSchemasInProcedureCalls()
Implements java. |
| public boolean | supportsSchemasInTableDefinitions()
Implements java. |
| public boolean | supportsSelectForUpdate()
Implements java. SELECT FOR UPDATE
statements.
|
| public boolean | supportsStatementPooling()
Implements java. |
| public boolean | supportsStoredFunctionsUsingCallSyntax()
Implements java. |
| public boolean | supportsStoredProcedures()
Implements java. |
| public boolean | supportsSubqueriesInComparisons()
Implements java. |
| public boolean | supportsSubqueriesInExists()
Implements java. EXISTS expressions.
|
| public boolean | supportsSubqueriesInIns()
Implements java. IN expressions.
|
| public boolean | supportsSubqueriesInQuantifieds()
Implements java. |
| public boolean | supportsTableCorrelationNames()
Implements java. |
| public boolean | supportsTransactionIsolationLevel(int
one of the transaction isolation levels defined in
level)java.sql.ConnectionImplements java. |
| public boolean | supportsTransactions()
Implements java. |
| public boolean | supportsUnion()
Implements java. UNION.
|
| public boolean | supportsUnionAll()
Implements java. UNION ALL.
|
| public <T> T | unwrap(Class<T>
A Class defining an interface that the result must implement. interfaces)Implements java. |
| public boolean | updatesAreDetected(int
the type)ResultSet type; one of
ResultSet.TYPE_FORWARD_ONLY,
ResultSet.TYPE_SCROLL_INSENSITIVE, or
ResultSet.TYPE_SCROLL_SENSITIVEImplements java. ResultSet.rowUpdated.
|
| public boolean | usesLocalFilePerTable()
Implements java. |
| public boolean | usesLocalFiles()
Implements java. |