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

public Interface JdbcEnvironment

extends Service
Known Direct Implementers
org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl
Imports
org.hibernate.boot.model.naming.Identifier, org.hibernate.dialect.Dialect, org.hibernate.engine.jdbc.spi.SqlExceptionHelper, org.hibernate.service.Service, org.hibernate.sql.ast.SqlAstTranslatorFactory

Initial look at this concept we keep talking about with merging information from java.sql.DatabaseMetaData and Dialect
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Identifier

Returns:

The current catalog.
getCurrentCatalog
()

Get the current database catalog.

public Identifier

Returns:

The current schema
getCurrentSchema
()

Get the current database catalog.

public Dialect

Returns:

The dialect.
getDialect
()

Get the dialect for this environment.

public ExtractedDatabaseMetaData

Returns:

The values extracted from JDBC DatabaseMetaData
getExtractedDatabaseMetaData
()

Access to the bits of information we pulled off the JDBC java.sql.DatabaseMetaData (that did not get "interpreted" into the helpers/delegates available here).

public IdentifierHelper

Returns:

The identifier helper.
getIdentifierHelper
()

Obtain the helper for dealing with identifiers in this environment.

public LobCreatorBuilder

Returns:

The LobCreator builder.
getLobCreatorBuilder
()

Retrieve the delegate for building org.hibernate.engine.jdbc.LobCreator instances.

public NameQualifierSupport

Returns:

The NameQualifierSupport.
getNameQualifierSupport
()

Obtain the level of support for qualified names.

public QualifiedObjectNameFormatter

Returns:

Qualified name support.
getQualifiedObjectNameFormatter
()

Obtain support for formatting qualified object names.
public SqlAstTranslatorFactory
public SqlExceptionHelper

Returns:

This environment's helper.
getSqlExceptionHelper
()

Obtain the helper for dealing with JDBC java.sql.SQLException faults.

Method Detail

getCurrentCatalogback to summary
public Identifier getCurrentCatalog()

Get the current database catalog. Typically will come from either java.sql.Connection#getCatalog() or hibernate.default_catalog.

Returns:Identifier

The current catalog.

getCurrentSchemaback to summary
public Identifier getCurrentSchema()

Get the current database catalog. Typically will come from either SchemaNameResolver#resolveSchemaName(java.sql.Connection, Dialect) or hibernate.default_catalog.

Returns:Identifier

The current schema

getDialectback to summary
public Dialect getDialect()

Get the dialect for this environment.

Returns:Dialect

The dialect.

getExtractedDatabaseMetaDataback to summary
public ExtractedDatabaseMetaData getExtractedDatabaseMetaData()

Access to the bits of information we pulled off the JDBC java.sql.DatabaseMetaData (that did not get "interpreted" into the helpers/delegates available here).

Returns:ExtractedDatabaseMetaData

The values extracted from JDBC DatabaseMetaData

getIdentifierHelperback to summary
public IdentifierHelper getIdentifierHelper()

Obtain the helper for dealing with identifiers in this environment.

Note that the Identifiers returned from this IdentifierHelper already account for auto-quoting :) yaay!

Returns:IdentifierHelper

The identifier helper.

getLobCreatorBuilderback to summary
public LobCreatorBuilder getLobCreatorBuilder()

Retrieve the delegate for building org.hibernate.engine.jdbc.LobCreator instances.

Returns:LobCreatorBuilder

The LobCreator builder.

getNameQualifierSupportback to summary
public NameQualifierSupport getNameQualifierSupport()

Obtain the level of support for qualified names.

Returns:NameQualifierSupport

The NameQualifierSupport.

getQualifiedObjectNameFormatterback to summary
public QualifiedObjectNameFormatter getQualifiedObjectNameFormatter()

Obtain support for formatting qualified object names.

Returns:QualifiedObjectNameFormatter

Qualified name support.

Annotations
@Deprecated
getSqlAstTranslatorFactoryback to summary
public SqlAstTranslatorFactory getSqlAstTranslatorFactory()
getSqlExceptionHelperback to summary
public SqlExceptionHelper getSqlExceptionHelper()

Obtain the helper for dealing with JDBC java.sql.SQLException faults.

Returns:SqlExceptionHelper

This environment's helper.