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 |
---|
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 static void setBootstrapConnection(Connection connection)
public void close()
close
in interface org.hibernate.connection.ConnectionProvider
close
in class org.hibernate.connection.UserSuppliedConnectionProvider
public void closeConnection(Connection conn)
closeConnection
in interface org.hibernate.connection.ConnectionProvider
closeConnection
in class org.hibernate.connection.UserSuppliedConnectionProvider
public void configure(Properties props) throws org.hibernate.HibernateException
configure
in interface org.hibernate.connection.ConnectionProvider
configure
in class org.hibernate.connection.UserSuppliedConnectionProvider
org.hibernate.HibernateException
public Connection getConnection()
getConnection
in interface org.hibernate.connection.ConnectionProvider
getConnection
in class org.hibernate.connection.UserSuppliedConnectionProvider
setBootstrapConnection(Connection)
public boolean supportsAggressiveRelease()
supportsAggressiveRelease
in interface org.hibernate.connection.ConnectionProvider
supportsAggressiveRelease
in class org.hibernate.connection.UserSuppliedConnectionProvider
Copyright © 2005–2017 Alfresco Software. All rights reserved.