public class SQLSessionHolder
extends org.springframework.transaction.support.ResourceHolderSupport
| Constructor and Description |
|---|
SQLSessionHolder(Object key,
br.com.anteros.persistence.session.SQLSession session) |
SQLSessionHolder(br.com.anteros.persistence.session.SQLSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSession(Object key,
br.com.anteros.persistence.session.SQLSession session) |
void |
addSession(br.com.anteros.persistence.session.SQLSession session) |
void |
clear() |
boolean |
containsSession(br.com.anteros.persistence.session.SQLSession session) |
boolean |
doesNotHoldNonDefaultSession() |
br.com.anteros.persistence.session.SQLSession |
getAnySession() |
br.com.anteros.persistence.session.SQLSession |
getSession() |
br.com.anteros.persistence.session.SQLSession |
getSession(Object key) |
br.com.anteros.persistence.transaction.Transaction |
getTransaction() |
br.com.anteros.persistence.session.SQLSession |
getValidatedSession() |
br.com.anteros.persistence.session.SQLSession |
getValidatedSession(Object key) |
boolean |
isEmpty() |
br.com.anteros.persistence.session.SQLSession |
removeSession(Object key) |
void |
setTransaction(br.com.anteros.persistence.transaction.Transaction transaction) |
getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unboundpublic SQLSessionHolder(br.com.anteros.persistence.session.SQLSession session)
public SQLSessionHolder(Object key, br.com.anteros.persistence.session.SQLSession session)
public br.com.anteros.persistence.session.SQLSession getSession()
public br.com.anteros.persistence.session.SQLSession getSession(Object key)
public br.com.anteros.persistence.session.SQLSession getValidatedSession()
throws Exception
Exceptionpublic br.com.anteros.persistence.session.SQLSession getValidatedSession(Object key) throws Exception
Exceptionpublic br.com.anteros.persistence.session.SQLSession getAnySession()
public void addSession(br.com.anteros.persistence.session.SQLSession session)
public void addSession(Object key, br.com.anteros.persistence.session.SQLSession session)
public br.com.anteros.persistence.session.SQLSession removeSession(Object key)
public boolean containsSession(br.com.anteros.persistence.session.SQLSession session)
public boolean isEmpty()
public boolean doesNotHoldNonDefaultSession()
public void setTransaction(br.com.anteros.persistence.transaction.Transaction transaction)
public br.com.anteros.persistence.transaction.Transaction getTransaction()
public void clear()
clear in class org.springframework.transaction.support.ResourceHolderSupportCopyright © 2017 Anteros Tecnologia. All rights reserved.