Top Description Methods
org.hibernate.engine.jdbc.env.spi

public Interface ExtractedDatabaseMetaData

Known Direct Implementers
org.hibernate.engine.jdbc.env.internal.ExtractedDatabaseMetaDataImpl
Annotations
@SuppressWarnings:UnusedDeclaration
Imports
java.util.ArrayList, .Collections, .LinkedHashSet, .List, .Set, org.hibernate.engine.jdbc.spi.TypeInfo, org.hibernate.tool.schema.extract.spi.SequenceInformation

Information extracted from java.sql.DatabaseMetaData regarding what the JDBC driver reports as being supported or not. Obviously java.sql.DatabaseMetaData reports many things, these are a few in which we have particular interest.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

True if the driver/database performs an implicit commit of transaction when DDL statement is performed
doesDataDefinitionCauseTransactionCommit
()

Did the driver report to DDL statements performed within a transaction performing an implicit commit of the transaction.

public String

Returns:

The catalog name
getConnectionCatalogName
()

Retrieve the name of the catalog in effect when we connected to the database.

public String

Returns:

The schema name
getConnectionSchemaName
()

Retrieve the name of the schema in effect when we connected to the database.

public JdbcEnvironment

Returns:

The JDBC environment
getJdbcEnvironment
()

Obtain the JDBC Environment from which this metadata came.

public default List<SequenceInformation>

Returns:

SequenceInformation objects.
getSequenceInformationList
()

Retrieve the list of SequenceInformation objects which describe the underlying database sequences.

public SQLStateType

Returns:

The SQLState strategy reportedly used by this driver/database.
getSqlStateType
()

Retrieve the type of codes the driver says it uses for SQLState.

public boolean

Returns:

True if the driver supports batched updates
supportsBatchUpdates
()

Did the driver report to supporting batched updates?

public boolean

Returns:

True if the drivers supports DDL statements within transactions.
supportsDataDefinitionInTransaction
()

Did the driver report to support performing DDL within transactions?

public boolean

Returns:

True if the if the driver reported to support calls to java.sql.Statement#getGeneratedKeys
supportsGetGeneratedKeys
()

Did the driver report to supporting retrieval of generated keys?

public boolean

Returns:

true indicates the driver reported true; false indicates the driver reported false or that the driver could not be asked.
supportsNamedParameters
()

Does the driver report supporting named parameters?

public boolean

Returns:

true indicates the driver reported true; false indicates the driver reported false or that the driver could not be asked.
supportsRefCursors
()

Does the driver report supporting REF_CURSORs?

public boolean

Returns:

True if the driver reported to support java.sql.ResultSet#TYPE_SCROLL_INSENSITIVE.
supportsScrollableResults
()

Did the driver report to supporting scrollable result sets?

Method Detail

doesDataDefinitionCauseTransactionCommitback to summary
public boolean doesDataDefinitionCauseTransactionCommit()

Did the driver report to DDL statements performed within a transaction performing an implicit commit of the transaction.

Returns:boolean

True if the driver/database performs an implicit commit of transaction when DDL statement is performed

See Also
java.sql.DatabaseMetaData#dataDefinitionCausesTransactionCommit()
getConnectionCatalogNameback to summary
public String getConnectionCatalogName()

Retrieve the name of the catalog in effect when we connected to the database.

Returns:String

The catalog name

getConnectionSchemaNameback to summary
public String getConnectionSchemaName()

Retrieve the name of the schema in effect when we connected to the database.

Returns:String

The schema name

getJdbcEnvironmentback to summary
public JdbcEnvironment getJdbcEnvironment()

Obtain the JDBC Environment from which this metadata came.

Returns:JdbcEnvironment

The JDBC environment

getSequenceInformationListback to summary
public default List<SequenceInformation> getSequenceInformationList()

Retrieve the list of SequenceInformation objects which describe the underlying database sequences.

Returns:List<SequenceInformation>

SequenceInformation objects.

getSqlStateTypeback to summary
public SQLStateType getSqlStateType()

Retrieve the type of codes the driver says it uses for SQLState. They might follow either the X/Open standard or the SQL92 standard.

Returns:SQLStateType

The SQLState strategy reportedly used by this driver/database.

See Also
java.sql.DatabaseMetaData#getSQLStateType()
supportsBatchUpdatesback to summary
public boolean supportsBatchUpdates()

Did the driver report to supporting batched updates?

Returns:boolean

True if the driver supports batched updates

See Also
java.sql.DatabaseMetaData#supportsBatchUpdates
supportsDataDefinitionInTransactionback to summary
public boolean supportsDataDefinitionInTransaction()

Did the driver report to support performing DDL within transactions?

Returns:boolean

True if the drivers supports DDL statements within transactions.

See Also
java.sql.DatabaseMetaData#dataDefinitionIgnoredInTransactions
supportsGetGeneratedKeysback to summary
public boolean supportsGetGeneratedKeys()

Did the driver report to supporting retrieval of generated keys?

Returns:boolean

True if the if the driver reported to support calls to java.sql.Statement#getGeneratedKeys

See Also
java.sql.DatabaseMetaData#supportsGetGeneratedKeys
supportsNamedParametersback to summary
public boolean supportsNamedParameters()

Does the driver report supporting named parameters?

Returns:boolean

true indicates the driver reported true; false indicates the driver reported false or that the driver could not be asked.

supportsRefCursorsback to summary
public boolean supportsRefCursors()

Does the driver report supporting REF_CURSORs?

Returns:boolean

true indicates the driver reported true; false indicates the driver reported false or that the driver could not be asked.

supportsScrollableResultsback to summary
public boolean supportsScrollableResults()

Did the driver report to supporting scrollable result sets?

Returns:boolean

True if the driver reported to support java.sql.ResultSet#TYPE_SCROLL_INSENSITIVE.

See Also
java.sql.DatabaseMetaData#supportsResultSetType