public class BuggyHibernateBaseContext extends to.etc.webapp.query.QAbstractDataContext implements to.etc.webapp.query.QDataContext, IConversationStateListener
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
protected org.hibernate.Session |
m_session |
protected HibernateSessionMaker |
m_sessionMaker |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommitAction(to.etc.webapp.core.IRunnable cx) |
protected void |
checkValid() |
void |
close()
This version just delegates to the Factory immediately.
|
void |
commit() |
void |
conversationAttached(ConversationContext cc) |
void |
conversationDestroyed(ConversationContext cc) |
void |
conversationDetached(ConversationContext cc) |
void |
conversationNew(ConversationContext cc) |
<T> T |
find(Class<T> clz,
Object pk) |
to.etc.webapp.query.DefaultBeforeImageCache |
getBeforeCache() |
Connection |
getConnection()
We explicitly undeprecate here.
|
<T> T |
getInstance(Class<T> clz,
Object pk) |
org.hibernate.Session |
getSession()
INTERNAL USE ONLY Get the Hibernate session present in this QDataContext; allocate a new
Session if no session is currently active.
|
boolean |
inTransaction() |
boolean |
isIgnoreClose() |
boolean |
isKeepOriginals() |
<T> T |
original(T copy) |
void |
rollback() |
protected void |
runCommitHandlers() |
protected void |
setConversationInvalid(String conversationInvalid) |
void |
setIgnoreClose(boolean on) |
void |
setKeepOriginals() |
protected void |
setSessionMaker(HibernateSessionMaker sm)
Set the Hibernate session maker factory.
|
void |
startTransaction() |
addListener, attach, delete, find, get, getFactory, getHandlerFactory, getInstance, query, query, query, queryOne, queryOne, queryOne, refresh, saveprotected static final org.slf4j.Logger LOG
protected HibernateSessionMaker m_sessionMaker
protected org.hibernate.Session m_session
protected void setSessionMaker(HibernateSessionMaker sm)
sm - public org.hibernate.Session getSession()
throws Exception
Exceptionprotected final void checkValid()
protected void setConversationInvalid(String conversationInvalid)
public void setIgnoreClose(boolean on)
setIgnoreClose in interface to.etc.webapp.query.QDataContextQDataContext.setIgnoreClose(boolean)public boolean isIgnoreClose()
public void close()
close in interface AutoCloseableclose in interface to.etc.webapp.query.QDataContextQDataContext.close()public void startTransaction()
throws Exception
startTransaction in interface to.etc.webapp.query.QDataContextExceptionQDataContext.startTransaction()public void commit()
throws Exception
commit in interface to.etc.webapp.query.QDataContextExceptionQDataContext.commit()public boolean inTransaction()
throws Exception
inTransaction in interface to.etc.webapp.query.QDataContextExceptionQDataContext.inTransaction()public void rollback()
throws Exception
rollback in interface to.etc.webapp.query.QDataContextExceptionQDataContext.rollback()public <T> T original(T copy)
original in interface to.etc.webapp.query.QDataContextpublic void setKeepOriginals()
setKeepOriginals in interface to.etc.webapp.query.QDataContextQDataContext.setKeepOriginals()public boolean isKeepOriginals()
@Nonnull public to.etc.webapp.query.DefaultBeforeImageCache getBeforeCache()
public Connection getConnection() throws Exception
getConnection in interface to.etc.webapp.query.QDataContextExceptionQDataContext.getConnection()public void addCommitAction(to.etc.webapp.core.IRunnable cx)
addCommitAction in interface to.etc.webapp.query.QDataContextpublic <T> T find(Class<T> clz, Object pk) throws Exception
find in interface to.etc.webapp.query.QDataContextfind in class to.etc.webapp.query.QAbstractDataContextExceptionpublic <T> T getInstance(Class<T> clz, Object pk) throws Exception
getInstance in interface to.etc.webapp.query.QDataContextgetInstance in class to.etc.webapp.query.QAbstractDataContextExceptionpublic void conversationAttached(ConversationContext cc) throws Exception
conversationAttached in interface IConversationStateListenerExceptionpublic void conversationDestroyed(ConversationContext cc) throws Exception
conversationDestroyed in interface IConversationStateListenerExceptionIConversationStateListener.conversationDestroyed(to.etc.domui.state.ConversationContext)public void conversationDetached(ConversationContext cc) throws Exception
conversationDetached in interface IConversationStateListenerExceptionIConversationStateListener.conversationDetached(to.etc.domui.state.ConversationContext)public void conversationNew(ConversationContext cc) throws Exception
conversationNew in interface IConversationStateListenerExceptionIConversationStateListener.conversationNew(to.etc.domui.state.ConversationContext)Copyright © 2017 etc.to. All rights reserved.