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 classExtractedDatabaseMetaDataImpl.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoesDataDefinitionCauseTransactionCommit()Did the driver report to DDL statements performed within a transaction performing an implicit commit of the transaction.StringgetConnectionCatalogName()Retrieve the name of the catalog in effect when we connected to the database.StringgetConnectionSchemaName()Retrieve the name of the schema in effect when we connected to the database.JdbcEnvironmentgetJdbcEnvironment()Obtain the JDBC Environment from which this metadata came.List<SequenceInformation>getSequenceInformationList()Retrieve the list ofSequenceInformationobjects which describe the underlying database sequences.SQLStateTypegetSqlStateType()Retrieve the type of codes the driver says it uses forSQLState.booleanisJdbcMetadataAccessible()booleansupportsBatchUpdates()Did the driver report to supporting batched updates?booleansupportsDataDefinitionInTransaction()Did the driver report to support performing DDL within transactions?booleansupportsGetGeneratedKeys()Did the driver report to supporting retrieval of generated keys?booleansupportsNamedParameters()Does the driver report supporting named parameters?booleansupportsRefCursors()Does the driver report supporting REF_CURSORs?booleansupportsScrollableResults()Did the driver report to supporting scrollable result sets?
-
-
-
Method Detail
-
supportsRefCursors
public boolean supportsRefCursors()
Description copied from interface:ExtractedDatabaseMetaDataDoes the driver report supporting REF_CURSORs?- Specified by:
supportsRefCursorsin interfaceExtractedDatabaseMetaData- Returns:
trueindicates the driver reported true;falseindicates the driver reported false or that the driver could not be asked.
-
getJdbcEnvironment
public JdbcEnvironment getJdbcEnvironment()
Description copied from interface:ExtractedDatabaseMetaDataObtain the JDBC Environment from which this metadata came.- Specified by:
getJdbcEnvironmentin interfaceExtractedDatabaseMetaData- Returns:
- The JDBC environment
-
supportsNamedParameters
public boolean supportsNamedParameters()
Description copied from interface:ExtractedDatabaseMetaDataDoes the driver report supporting named parameters?- Specified by:
supportsNamedParametersin interfaceExtractedDatabaseMetaData- Returns:
trueindicates the driver reported true;falseindicates the driver reported false or that the driver could not be asked.
-
supportsScrollableResults
public boolean supportsScrollableResults()
Description copied from interface:ExtractedDatabaseMetaDataDid the driver report to supporting scrollable result sets?- Specified by:
supportsScrollableResultsin interfaceExtractedDatabaseMetaData- Returns:
- True if the driver reported to support
ResultSet.TYPE_SCROLL_INSENSITIVE. - See Also:
DatabaseMetaData.supportsResultSetType(int)
-
supportsGetGeneratedKeys
public boolean supportsGetGeneratedKeys()
Description copied from interface:ExtractedDatabaseMetaDataDid the driver report to supporting retrieval of generated keys?- Specified by:
supportsGetGeneratedKeysin interfaceExtractedDatabaseMetaData- Returns:
- True if the if the driver reported to support calls to
Statement.getGeneratedKeys() - See Also:
DatabaseMetaData.supportsGetGeneratedKeys()
-
supportsBatchUpdates
public boolean supportsBatchUpdates()
Description copied from interface:ExtractedDatabaseMetaDataDid the driver report to supporting batched updates?- Specified by:
supportsBatchUpdatesin interfaceExtractedDatabaseMetaData- Returns:
- True if the driver supports batched updates
- See Also:
DatabaseMetaData.supportsBatchUpdates()
-
supportsDataDefinitionInTransaction
public boolean supportsDataDefinitionInTransaction()
Description copied from interface:ExtractedDatabaseMetaDataDid the driver report to support performing DDL within transactions?- Specified by:
supportsDataDefinitionInTransactionin interfaceExtractedDatabaseMetaData- Returns:
- True if the drivers supports DDL statements within transactions.
- See Also:
DatabaseMetaData.dataDefinitionIgnoredInTransactions()
-
doesDataDefinitionCauseTransactionCommit
public boolean doesDataDefinitionCauseTransactionCommit()
Description copied from interface:ExtractedDatabaseMetaDataDid the driver report to DDL statements performed within a transaction performing an implicit commit of the transaction.- Specified by:
doesDataDefinitionCauseTransactionCommitin 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:ExtractedDatabaseMetaDataRetrieve the type of codes the driver says it uses forSQLState. They might follow either the X/Open standard or the SQL92 standard.- Specified by:
getSqlStateTypein interfaceExtractedDatabaseMetaData- Returns:
- The SQLState strategy reportedly used by this driver/database.
- See Also:
DatabaseMetaData.getSQLStateType()
-
getConnectionCatalogName
public String getConnectionCatalogName()
Description copied from interface:ExtractedDatabaseMetaDataRetrieve the name of the catalog in effect when we connected to the database.- Specified by:
getConnectionCatalogNamein interfaceExtractedDatabaseMetaData- Returns:
- The catalog name
-
getConnectionSchemaName
public String getConnectionSchemaName()
Description copied from interface:ExtractedDatabaseMetaDataRetrieve the name of the schema in effect when we connected to the database.- Specified by:
getConnectionSchemaNamein interfaceExtractedDatabaseMetaData- Returns:
- The schema name
-
getSequenceInformationList
public List<SequenceInformation> getSequenceInformationList()
Description copied from interface:ExtractedDatabaseMetaDataRetrieve the list ofSequenceInformationobjects which describe the underlying database sequences.- Specified by:
getSequenceInformationListin interfaceExtractedDatabaseMetaData- Returns:
SequenceInformationobjects.
-
isJdbcMetadataAccessible
public boolean isJdbcMetadataAccessible()
-
-