public static class SchemaBootstrap.SchemaBootstrapConnectionProvider
extends org.hibernate.connection.UserSuppliedConnectionProvider
The connection that is used will not be closed or manipulated in any way. This class merely serves to give the connection to Hibernate.
| Constructor and Description |
|---|
SchemaBootstrap.SchemaBootstrapConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Unsets the connection.
|
void |
closeConnection(java.sql.Connection conn)
Does nothing.
|
void |
configure(java.util.Properties props)
Does nothing.
|
java.sql.Connection |
getConnection() |
static void |
setBootstrapConnection(java.sql.Connection connection)
Set the connection for Hibernate to use for schema generation.
|
boolean |
supportsAggressiveRelease() |
public SchemaBootstrap.SchemaBootstrapConnectionProvider()
public static void setBootstrapConnection(java.sql.Connection connection)
public void close()
close in interface org.hibernate.connection.ConnectionProviderclose in class org.hibernate.connection.UserSuppliedConnectionProviderpublic void closeConnection(java.sql.Connection conn)
closeConnection in interface org.hibernate.connection.ConnectionProvidercloseConnection in class org.hibernate.connection.UserSuppliedConnectionProviderpublic void configure(java.util.Properties props)
throws org.hibernate.HibernateException
configure in interface org.hibernate.connection.ConnectionProviderconfigure in class org.hibernate.connection.UserSuppliedConnectionProviderorg.hibernate.HibernateExceptionpublic java.sql.Connection getConnection()
getConnection in interface org.hibernate.connection.ConnectionProvidergetConnection in class org.hibernate.connection.UserSuppliedConnectionProviderSchemaBootstrap.SchemaBootstrapConnectionProvider.setBootstrapConnection(Connection)public boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProvidersupportsAggressiveRelease in class org.hibernate.connection.UserSuppliedConnectionProviderCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.