Class ExtractedDatabaseMetaDataImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.env.internal.ExtractedDatabaseMetaDataImpl
-
- All Implemented Interfaces:
ExtractedDatabaseMetaData
public class ExtractedDatabaseMetaDataImpl extends Object implements ExtractedDatabaseMetaData
Standard implementation of ExtractedDatabaseMetaData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtractedDatabaseMetaDataImpl.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doesDataDefinitionCauseTransactionCommit()
Did the driver report to DDL statements performed within a transaction performing an implicit commit of the transaction.String
getConnectionCatalogName()
Retrieve the name of the catalog in effect when we connected to the database.String
getConnectionSchemaName()
Retrieve the name of the schema in effect when we connected to the database.JdbcEnvironment
getJdbcEnvironment()
Obtain the JDBC Environment from which this metadata came.List<SequenceInformation>
getSequenceInformationList()
Retrieve the list ofSequenceInformation
objects which describe the underlying database sequences.SQLStateType
getSqlStateType()
Retrieve the type of codes the driver says it uses forSQLState
.boolean
isJdbcMetadataAccessible()
boolean
supportsBatchUpdates()
Did the driver report to supporting batched updates?boolean
supportsDataDefinitionInTransaction()
Did the driver report to support performing DDL within transactions?boolean
supportsGetGeneratedKeys()
Did the driver report to supporting retrieval of generated keys?boolean
supportsNamedParameters()
Does the driver report supporting named parameters?boolean
supportsRefCursors()
Does the driver report supportingTypes.REF_CURSOR
?boolean
supportsScrollableResults()
Did the driver report to supporting scrollable result sets?
-
-
-
Method Detail
-
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:
DatabaseMetaData.supportsRefCursors()
,Dialect.supportsRefCursors()
-
getJdbcEnvironment
public JdbcEnvironment getJdbcEnvironment()
Description copied from interface:ExtractedDatabaseMetaData
Obtain the JDBC Environment from which this metadata came.- Specified by:
getJdbcEnvironment
in interfaceExtractedDatabaseMetaData
- Returns:
- The JDBC environment
-
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:
QuerySettings.CALLABLE_NAMED_PARAMS_ENABLED
-
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:
DatabaseMetaData.supportsResultSetType(int)
,JdbcSettings.USE_SCROLLABLE_RESULTSET
-
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:
DatabaseMetaData.supportsGetGeneratedKeys()
,JdbcSettings.USE_GET_GENERATED_KEYS
-
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:
DatabaseMetaData.supportsBatchUpdates()
,Dialect.supportsBatchUpdates()
-
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:
DatabaseMetaData.dataDefinitionIgnoredInTransactions()
-
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:
DatabaseMetaData.dataDefinitionCausesTransactionCommit()
-
getSqlStateType
public SQLStateType 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:
DatabaseMetaData.getSQLStateType()
-
getConnectionCatalogName
public String 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:
MappingSettings.DEFAULT_SCHEMA
-
getConnectionSchemaName
public String 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
-
getSequenceInformationList
public List<SequenceInformation> 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()
-
-