public class SpringSessionSynchronization extends Object implements org.springframework.transaction.support.TransactionSynchronization, org.springframework.core.Ordered
Constructor and Description |
---|
SpringSessionSynchronization(SessionHolder sessionHolder,
SessionFactory sessionFactory) |
SpringSessionSynchronization(SessionHolder sessionHolder,
SessionFactory sessionFactory,
boolean newSession) |
Modifier and Type | Method and Description |
---|---|
void |
afterCommit() |
void |
afterCompletion(int status) |
void |
beforeCommit(boolean readOnly) |
void |
beforeCompletion() |
void |
flush() |
int |
getOrder() |
void |
resume() |
void |
suspend() |
public SpringSessionSynchronization(SessionHolder sessionHolder, SessionFactory sessionFactory)
public SpringSessionSynchronization(SessionHolder sessionHolder, SessionFactory sessionFactory, boolean newSession)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void suspend()
suspend
in interface org.springframework.transaction.support.TransactionSynchronization
public void resume()
resume
in interface org.springframework.transaction.support.TransactionSynchronization
public void flush()
public void beforeCommit(boolean readOnly) throws org.springframework.dao.DataAccessException
beforeCommit
in interface org.springframework.transaction.support.TransactionSynchronization
org.springframework.dao.DataAccessException
public void beforeCompletion()
beforeCompletion
in interface org.springframework.transaction.support.TransactionSynchronization
public void afterCommit()
afterCommit
in interface org.springframework.transaction.support.TransactionSynchronization
public void afterCompletion(int status)
afterCompletion
in interface org.springframework.transaction.support.TransactionSynchronization