org.hibernate.engine.jdbc.connections.internal.ConnectionCreator 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.connections.internal;
import java.sql.Connection;
/**
* Contract for creating JDBC Connections on demand
*
* @author Steve Ebersole
*/
interface ConnectionCreator {
/**
* Obtain the URL to which this creator connects. Intended just for informational (logging) purposes.
*
* @return The connection URL.
*/
public String getUrl();
/**
* Create a Connection
*
* @return The created Connection
*/
public Connection createConnection();
}