public abstract class SQLSessionFactoryUtils extends Object
SQLSessionFactory.| Modifier and Type | Field and Description |
|---|---|
static int |
SESSION_SYNCHRONIZATION_ORDER |
| Constructor and Description |
|---|
SQLSessionFactoryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyTransactionTimeout(br.com.anteros.persistence.session.query.SQLQuery query,
br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static void |
closeSession(br.com.anteros.persistence.session.SQLSession session) |
static br.com.anteros.persistence.session.SQLSession |
doGetSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory,
boolean allowCreate) |
static DataSource |
getDataSource(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static TransactionManager |
getJtaTransactionManager(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory,
br.com.anteros.persistence.session.SQLSession session) |
static br.com.anteros.persistence.session.SQLSession |
getNewSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static br.com.anteros.persistence.session.SQLSession |
getSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static br.com.anteros.persistence.session.SQLSession |
getSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory,
boolean allowCreate) |
static boolean |
hasTransactionalSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static void |
initDeferredClose(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static boolean |
isDeferredCloseActive(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static boolean |
isSessionTransactional(br.com.anteros.persistence.session.SQLSession session,
br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static org.springframework.jdbc.support.SQLExceptionTranslator |
newJdbcExceptionTranslator(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static void |
processDeferredClose(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static void |
releaseSession(br.com.anteros.persistence.session.SQLSession session,
br.com.anteros.persistence.session.SQLSessionFactory sessionFactory) |
static String |
toString(br.com.anteros.persistence.session.SQLSession session) |
public static final int SESSION_SYNCHRONIZATION_ORDER
public static DataSource getDataSource(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public static org.springframework.jdbc.support.SQLExceptionTranslator newJdbcExceptionTranslator(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public static TransactionManager getJtaTransactionManager(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory, br.com.anteros.persistence.session.SQLSession session) throws Exception
Exceptionpublic static br.com.anteros.persistence.session.SQLSession getSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory,
boolean allowCreate)
throws org.springframework.dao.DataAccessResourceFailureException,
IllegalStateException
org.springframework.dao.DataAccessResourceFailureExceptionIllegalStateExceptionpublic static br.com.anteros.persistence.session.SQLSession getSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
throws org.springframework.dao.DataAccessResourceFailureException
org.springframework.dao.DataAccessResourceFailureExceptionpublic static br.com.anteros.persistence.session.SQLSession doGetSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory,
boolean allowCreate)
throws Exception,
IllegalStateException
ExceptionIllegalStateExceptionpublic static br.com.anteros.persistence.session.SQLSession getNewSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public static String toString(br.com.anteros.persistence.session.SQLSession session)
public static boolean hasTransactionalSession(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public static boolean isSessionTransactional(br.com.anteros.persistence.session.SQLSession session,
br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public static void applyTransactionTimeout(br.com.anteros.persistence.session.query.SQLQuery query,
br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public static boolean isDeferredCloseActive(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public static void initDeferredClose(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public static void processDeferredClose(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public static void releaseSession(br.com.anteros.persistence.session.SQLSession session,
br.com.anteros.persistence.session.SQLSessionFactory sessionFactory)
public static void closeSession(br.com.anteros.persistence.session.SQLSession session)
Copyright © 2017 Anteros Tecnologia. All rights reserved.