|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.orm.hibernate.support.HibernatePersistenceContextInterceptor
public class HibernatePersistenceContextInterceptor
Constructor Summary | |
---|---|
HibernatePersistenceContextInterceptor()
|
Method Summary | |
---|---|
void |
clear()
Clear any pending changes |
void |
destroy()
Called to finalize the persistent context |
void |
disconnect()
Disconnects the persistence context |
void |
flush()
Flushes any pending changes to the DB |
org.hibernate.SessionFactory |
getSessionFactory()
|
void |
init()
Called to intialisation the persistent context |
boolean |
isOpen()
Checks whether the persistence context is open |
void |
reconnect()
Reconnects the persistence context |
void |
setReadOnly()
Sets the persistence context to read-only mode |
void |
setReadWrite()
Sets the persistence context to read-write mode |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernatePersistenceContextInterceptor()
Method Detail |
---|
public void destroy()
PersistenceContextInterceptor
destroy
in interface PersistenceContextInterceptor
public void disconnect()
PersistenceContextInterceptor
disconnect
in interface PersistenceContextInterceptor
public void reconnect()
PersistenceContextInterceptor
reconnect
in interface PersistenceContextInterceptor
public void flush()
PersistenceContextInterceptor
flush
in interface PersistenceContextInterceptor
public void clear()
PersistenceContextInterceptor
clear
in interface PersistenceContextInterceptor
public void setReadOnly()
PersistenceContextInterceptor
setReadOnly
in interface PersistenceContextInterceptor
public void setReadWrite()
PersistenceContextInterceptor
setReadWrite
in interface PersistenceContextInterceptor
public boolean isOpen()
PersistenceContextInterceptor
isOpen
in interface PersistenceContextInterceptor
public void init()
PersistenceContextInterceptor
init
in interface PersistenceContextInterceptor
public org.hibernate.SessionFactory getSessionFactory()
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- the sessionFactory to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |