public class GrailsSessionContext
Based on org.springframework.orm.hibernate4.SpringSessionContext.
Modifiers | Name | Description |
---|---|---|
protected boolean |
allowCreate |
|
protected org.hibernate.context.spi.CurrentSessionContext |
jtaSessionContext |
|
protected org.hibernate.engine.spi.SessionFactoryImplementor |
sessionFactory |
|
protected java.lang.reflect.Constructor<?> |
springFlushSynchronizationConstructor |
|
protected java.lang.reflect.Constructor<?> |
springSessionSynchronizationConstructor |
Constructor and description |
---|
GrailsSessionContext
(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) Constructor. |
Type | Name and description |
---|---|
protected java.lang.Object |
create(java.lang.reflect.Constructor<?> constructor, java.lang.Object... args) |
protected org.springframework.transaction.support.TransactionSynchronization |
createSpringFlushSynchronization(org.hibernate.Session session) |
protected org.springframework.transaction.support.TransactionSynchronization |
createSpringSessionSynchronization(org.springframework.orm.hibernate4.SessionHolder sessionHolder) |
org.hibernate.Session |
currentSession() Retrieve the Spring-managed Session for the current thread, if any. |
protected javax.transaction.TransactionManager |
getJtaTransactionManager(org.hibernate.Session session) |
void |
initJta() |
protected java.lang.reflect.Constructor<?> |
lookupConstructor(java.lang.String className, java.lang.Class<?>... argTypes) |
protected void |
lookupConstructors() |
protected void |
registerJtaSynchronization(org.hibernate.Session session, org.springframework.orm.hibernate4.SessionHolder sessionHolder) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor.
sessionFactory
- the SessionFactory to provide current Sessions forRetrieve the Spring-managed Session for the current thread, if any.