Class ExtractedDatabaseMetaDataImpl
java.lang.Object
org.hibernate.engine.jdbc.env.internal.ExtractedDatabaseMetaDataImpl
- All Implemented Interfaces:
ExtractedDatabaseMetaData
Standard implementation of
ExtractedDatabaseMetaData
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Did the driver report to DDL statements performed within a transaction performing an implicit commit of the transaction.Retrieve the name of the catalog in effect when we connected to the database.Retrieve the name of the schema in effect when we connected to the database.The name of the database, according to the JDBC driver.The version of the database, according to the JDBC driver.int
Retrieve the default JDBC fetch size.int
Retrieve the default transaction isolation level.Retrieve the JDBC driver name.Obtain the JDBC Environment from which this metadata came.Retrieve the list ofSequenceInformation
objects which describe the underlying database sequences.Retrieve the type of codes the driver says it uses forSQLState
.int
Retrieve the transaction isolation level.getUrl()
Retrieve the JDBC URL.boolean
boolean
Did the driver report to supporting batched updates?boolean
Does this driver support named catalogs in DML?boolean
Did the driver report to support performing DDL within transactions?boolean
Did the driver report to supporting retrieval of generated keys?boolean
Does the driver report supporting named parameters?boolean
Does the driver report supportingTypes.REF_CURSOR
?boolean
Does this driver support named schemas in DML?boolean
Did the driver report to supporting scrollable result sets?
-
Method Details
-
supportsRefCursors
public boolean supportsRefCursors()Description copied from interface:ExtractedDatabaseMetaData
Does the driver report supportingTypes.REF_CURSOR
?- Specified by:
supportsRefCursors
in interfaceExtractedDatabaseMetaData
- Returns:
true
indicates the driver reported true;false
indicates the driver reported false or that the driver could not be asked.- See Also:
-
getJdbcEnvironment
Description copied from interface:ExtractedDatabaseMetaData
Obtain the JDBC Environment from which this metadata came.- Specified by:
getJdbcEnvironment
in interfaceExtractedDatabaseMetaData
- Returns:
- The JDBC environment
-
supportsSchemas
public boolean supportsSchemas()Description copied from interface:ExtractedDatabaseMetaData
Does this driver support named schemas in DML?- Specified by:
supportsSchemas
in interfaceExtractedDatabaseMetaData
- Returns:
false
indicates the driver reported false;true
indicates the driver reported true or that the driver could not be asked.
-
supportsCatalogs
public boolean supportsCatalogs()Description copied from interface:ExtractedDatabaseMetaData
Does this driver support named catalogs in DML?- Specified by:
supportsCatalogs
in interfaceExtractedDatabaseMetaData
- Returns:
false
indicates the driver reported false;true
indicates the driver reported true or that the driver could not be asked.
-
supportsNamedParameters
public boolean supportsNamedParameters()Description copied from interface:ExtractedDatabaseMetaData
Does the driver report supporting named parameters?- Specified by:
supportsNamedParameters
in interfaceExtractedDatabaseMetaData
- Returns:
true
indicates the driver reported true;false
indicates the driver reported false or that the driver could not be asked.- See Also:
-
supportsScrollableResults
public boolean supportsScrollableResults()Description copied from interface:ExtractedDatabaseMetaData
Did the driver report to supporting scrollable result sets?- Specified by:
supportsScrollableResults
in interfaceExtractedDatabaseMetaData
- Returns:
- True if the driver reported to support
ResultSet.TYPE_SCROLL_INSENSITIVE
. - See Also:
-
supportsGetGeneratedKeys
public boolean supportsGetGeneratedKeys()Description copied from interface:ExtractedDatabaseMetaData
Did the driver report to supporting retrieval of generated keys?- Specified by:
supportsGetGeneratedKeys
in interfaceExtractedDatabaseMetaData
- Returns:
- True if the driver reported to support calls to
Statement.getGeneratedKeys()
- See Also:
-
supportsBatchUpdates
public boolean supportsBatchUpdates()Description copied from interface:ExtractedDatabaseMetaData
Did the driver report to supporting batched updates?- Specified by:
supportsBatchUpdates
in interfaceExtractedDatabaseMetaData
- Returns:
- True if the driver supports batched updates
- See Also:
-
supportsDataDefinitionInTransaction
public boolean supportsDataDefinitionInTransaction()Description copied from interface:ExtractedDatabaseMetaData
Did the driver report to support performing DDL within transactions?- Specified by:
supportsDataDefinitionInTransaction
in interfaceExtractedDatabaseMetaData
- Returns:
- True if the drivers supports DDL statements within transactions.
- See Also:
-
doesDataDefinitionCauseTransactionCommit
public boolean doesDataDefinitionCauseTransactionCommit()Description copied from interface:ExtractedDatabaseMetaData
Did the driver report to DDL statements performed within a transaction performing an implicit commit of the transaction.- Specified by:
doesDataDefinitionCauseTransactionCommit
in interfaceExtractedDatabaseMetaData
- Returns:
- True if the driver/database performs an implicit commit of transaction when DDL statement is performed
- See Also:
-
getSqlStateType
Description copied from interface:ExtractedDatabaseMetaData
Retrieve the type of codes the driver says it uses forSQLState
. They might follow either the X/Open standard or the SQL92 standard.- Specified by:
getSqlStateType
in interfaceExtractedDatabaseMetaData
- Returns:
- The SQLState strategy reportedly used by this driver/database.
- See Also:
-
getConnectionCatalogName
Description copied from interface:ExtractedDatabaseMetaData
Retrieve the name of the catalog in effect when we connected to the database.- Specified by:
getConnectionCatalogName
in interfaceExtractedDatabaseMetaData
- Returns:
- The catalog name
- See Also:
-
getConnectionSchemaName
Description copied from interface:ExtractedDatabaseMetaData
Retrieve the name of the schema in effect when we connected to the database.- Specified by:
getConnectionSchemaName
in interfaceExtractedDatabaseMetaData
- Returns:
- The schema name
-
getDatabaseProductName
Description copied from interface:ExtractedDatabaseMetaData
The name of the database, according to the JDBC driver.- Specified by:
getDatabaseProductName
in interfaceExtractedDatabaseMetaData
-
getDatabaseProductVersion
Description copied from interface:ExtractedDatabaseMetaData
The version of the database, according to the JDBC driver.- Specified by:
getDatabaseProductVersion
in interfaceExtractedDatabaseMetaData
-
getUrl
Description copied from interface:ExtractedDatabaseMetaData
Retrieve the JDBC URL.- Specified by:
getUrl
in interfaceExtractedDatabaseMetaData
- See Also:
-
getDriver
Description copied from interface:ExtractedDatabaseMetaData
Retrieve the JDBC driver name.- Specified by:
getDriver
in interfaceExtractedDatabaseMetaData
- See Also:
-
getTransactionIsolation
public int getTransactionIsolation()Description copied from interface:ExtractedDatabaseMetaData
Retrieve the transaction isolation level.- Specified by:
getTransactionIsolation
in interfaceExtractedDatabaseMetaData
- See Also:
-
getDefaultTransactionIsolation
public int getDefaultTransactionIsolation()Description copied from interface:ExtractedDatabaseMetaData
Retrieve the default transaction isolation level.- Specified by:
getDefaultTransactionIsolation
in interfaceExtractedDatabaseMetaData
- See Also:
-
getDefaultFetchSize
public int getDefaultFetchSize()Description copied from interface:ExtractedDatabaseMetaData
Retrieve the default JDBC fetch size.- Specified by:
getDefaultFetchSize
in interfaceExtractedDatabaseMetaData
-
getSequenceInformationList
Description copied from interface:ExtractedDatabaseMetaData
Retrieve the list ofSequenceInformation
objects which describe the underlying database sequences.- Specified by:
getSequenceInformationList
in interfaceExtractedDatabaseMetaData
- Returns:
SequenceInformation
objects.
-
isJdbcMetadataAccessible
public boolean isJdbcMetadataAccessible()
-