/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.engine.jdbc.spi;
import java.sql.Connection;
Contract for resolving the schema of a Connection
. Author: Steve Ebersole
/**
* Contract for resolving the schema of a {@link Connection}.
*
* @author Steve Ebersole
*/
public interface SchemaNameResolver {
Given a JDBC Connection
, resolve the name of the schema (if one) to which it connects. Params: - connection – The JDBC connection
Returns: The name of the schema (may be null).
/**
* Given a JDBC {@link Connection}, resolve the name of the schema (if one) to which it connects.
*
* @param connection The JDBC connection
*
* @return The name of the schema (may be null).
*/
public String resolveSchemaName(Connection connection);
}