|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.connection.UserSuppliedConnectionProvider
org.alfresco.repo.domain.schema.SchemaBootstrap.SchemaBootstrapConnectionProvider
public static class SchemaBootstrap.SchemaBootstrapConnectionProvider
This is a workaround for the odd Spring-Hibernate interaction during configuration. The Hibernate code assumes that schema scripts will be generated during context initialization. We want to do it afterwards and have a little more control. Hence this class.
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 Summary | |
---|---|
SchemaBootstrap.SchemaBootstrapConnectionProvider()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaBootstrap.SchemaBootstrapConnectionProvider()
Method Detail |
---|
public static void setBootstrapConnection(java.sql.Connection connection)
public void close()
close
in interface org.hibernate.connection.ConnectionProvider
close
in class org.hibernate.connection.UserSuppliedConnectionProvider
public void closeConnection(java.sql.Connection conn)
closeConnection
in interface org.hibernate.connection.ConnectionProvider
closeConnection
in class org.hibernate.connection.UserSuppliedConnectionProvider
public void configure(java.util.Properties props) throws org.hibernate.HibernateException
configure
in interface org.hibernate.connection.ConnectionProvider
configure
in class org.hibernate.connection.UserSuppliedConnectionProvider
org.hibernate.HibernateException
public java.sql.Connection getConnection()
getConnection
in interface org.hibernate.connection.ConnectionProvider
getConnection
in class org.hibernate.connection.UserSuppliedConnectionProvider
SchemaBootstrap.SchemaBootstrapConnectionProvider.setBootstrapConnection(Connection)
public boolean supportsAggressiveRelease()
supportsAggressiveRelease
in interface org.hibernate.connection.ConnectionProvider
supportsAggressiveRelease
in class org.hibernate.connection.UserSuppliedConnectionProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |