org.hibernate.engine.jdbc.spi.SchemaNameResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* 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 .
*/
package org.hibernate.engine.jdbc.spi;
import java.sql.Connection;
/**
* Contract for resolving the schema of a {@link Connection}.
*
* @author Steve Ebersole
*/
public interface SchemaNameResolver {
/**
* 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);
}