public class TxSessionManager extends SessionManager
LOG_CONTROL| Constructor and Description |
|---|
TxSessionManager() |
| Modifier and Type | Method and Description |
|---|---|
protected Session |
getSession(String contextName,
String mappingName)
Get a
Session for the given contextName
and mappingName. |
protected void |
logExceptionQuietly(Exception bad)
Log errors occurring during command execution.
|
protected void |
resetSession(String contextName,
String mappingName)
Reset the cached
Session if using Hibernate. |
protected void |
runTx(Session session,
ClientContext clientContext,
TxCommand command)
Method to execute the
command. |
doLog, getDatabaseContextName, getDatabaseMappingName, getLogfileDateFormat, getSession, getSession, getSessionFactory, logControl, logParams, setLogfileDateFormatprotected Session getSession(String contextName, String mappingName)
Session for the given contextName
and mappingName.
Keep the previously cached Session if using Hibernate.contextName - the database context namemappingName - the database mapping nameprotected void resetSession(String contextName, String mappingName)
Session if using Hibernate.contextName - the database context namemappingName - the database mapping nameprotected void runTx(Session session, ClientContext clientContext, TxCommand command)
command.session - Session contextclientContext - Client Contextcommand - The command to runprotected void logExceptionQuietly(Exception bad)
bad - ExceptionCopyright © 2006–2017 Esito AS. All rights reserved.