public class HibernateLongSessionContext extends BuggyHibernateBaseContext
LOG, m_session, m_sessionMaker| Constructor and Description |
|---|
HibernateLongSessionContext(to.etc.webapp.query.QDataContextFactory src,
HibernateSessionMaker sessionMaker) |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(Object o)
Should never be used on a long-used context (20091206 jal, error in table update if object not saved 1st).
|
void |
commit()
Commit; make sure a transaction exists (because nothing is flushed anyway) then commit.
|
void |
conversationAttached(ConversationContext cc) |
void |
conversationDestroyed(ConversationContext cc) |
void |
conversationDetached(ConversationContext cc) |
void |
conversationNew(ConversationContext cc) |
org.hibernate.Session |
getSession()
This override allocates a session in flushmode manual.
|
addCommitAction, checkValid, close, find, getBeforeCache, getConnection, getInstance, inTransaction, isIgnoreClose, isKeepOriginals, original, rollback, runCommitHandlers, setConversationInvalid, setIgnoreClose, setKeepOriginals, setSessionMaker, startTransactionaddListener, delete, find, get, getFactory, getHandlerFactory, getInstance, query, query, query, queryOne, queryOne, queryOne, refresh, savepublic HibernateLongSessionContext(to.etc.webapp.query.QDataContextFactory src,
HibernateSessionMaker sessionMaker)
public org.hibernate.Session getSession()
throws Exception
getSession in class BuggyHibernateBaseContextExceptionBuggyHibernateBaseContext.getSession()public void conversationDestroyed(ConversationContext cc) throws Exception
BuggyHibernateBaseContextconversationDestroyed in interface IConversationStateListenerconversationDestroyed in class BuggyHibernateBaseContextExceptionIConversationStateListener.conversationDestroyed(to.etc.domui.state.ConversationContext)public void conversationDetached(ConversationContext cc) throws Exception
BuggyHibernateBaseContextconversationDetached in interface IConversationStateListenerconversationDetached in class BuggyHibernateBaseContextExceptionIConversationStateListener.conversationDetached(to.etc.domui.state.ConversationContext)public void conversationAttached(ConversationContext cc) throws Exception
BuggyHibernateBaseContextconversationAttached in interface IConversationStateListenerconversationAttached in class BuggyHibernateBaseContextExceptionpublic void conversationNew(ConversationContext cc) throws Exception
BuggyHibernateBaseContextconversationNew in interface IConversationStateListenerconversationNew in class BuggyHibernateBaseContextExceptionIConversationStateListener.conversationNew(to.etc.domui.state.ConversationContext)public void commit()
throws Exception
commit in interface to.etc.webapp.query.QDataContextcommit in class BuggyHibernateBaseContextExceptionBuggyHibernateBaseContext.commit()public void attach(Object o) throws Exception
attach in interface to.etc.webapp.query.QDataContextattach in class to.etc.webapp.query.QAbstractDataContextExceptionQAbstractDataContext.attach(java.lang.Object)Copyright © 2017 etc.to. All rights reserved.