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

public Interface SchemaNameResolver

Known Direct Implementers
org.hibernate.engine.jdbc.env.internal.DefaultSchemaNameResolver, org.hibernate.engine.jdbc.env.internal.DefaultSchemaNameResolver.SchemaNameResolverJava17Delegate, org.hibernate.engine.jdbc.env.internal.DefaultSchemaNameResolver.SchemaNameResolverFallbackDelegate
Imports
java.sql.Connection, .SQLException, org.hibernate.dialect.Dialect

Contract for resolving the schema of a Connection.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The name of the schema (may be null).
resolveSchemaName
(Connection
The JDBC connection
connection
,
Dialect dialect)

Given a JDBC Connection, resolve the name of the schema (if one) to which it connects.

Method Detail

resolveSchemaNameback to summary
public String resolveSchemaName(Connection connection, Dialect dialect) throws SQLException

Given a JDBC Connection, resolve the name of the schema (if one) to which it connects.

Parameters
connection:Connection

The JDBC connection

dialect:Dialect

The Dialect

Returns:String

The name of the schema (may be null).