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(Connection conn)
Does nothing.
|
void |
configure(Properties props)
Does nothing.
|
Connection |
getConnection() |
static void |
setBootstrapConnection(Connection connection)
Set the connection for Hibernate to use for schema generation.
|
boolean |
supportsAggressiveRelease() |
public SchemaBootstrap.SchemaBootstrapConnectionProvider()
public static void setBootstrapConnection(Connection connection)
public void close()
close in interface org.hibernate.connection.ConnectionProviderclose in class org.hibernate.connection.UserSuppliedConnectionProviderpublic void closeConnection(Connection conn)
closeConnection in interface org.hibernate.connection.ConnectionProvidercloseConnection in class org.hibernate.connection.UserSuppliedConnectionProviderpublic void configure(Properties props) throws org.hibernate.HibernateException
configure in interface org.hibernate.connection.ConnectionProviderconfigure in class org.hibernate.connection.UserSuppliedConnectionProviderorg.hibernate.HibernateExceptionpublic Connection getConnection()
getConnection in interface org.hibernate.connection.ConnectionProvidergetConnection in class org.hibernate.connection.UserSuppliedConnectionProvidersetBootstrapConnection(Connection)public boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProvidersupportsAggressiveRelease in class org.hibernate.connection.UserSuppliedConnectionProviderCopyright © 2005–2014 Alfresco Software. All rights reserved.