public class SpringSessionSynchronization extends java.lang.Object implements org.springframework.transaction.support.TransactionSynchronization
An instance of org.springframework.transaction.support.TransactionSynchronization for the Datastore abstraction. Based on similar work for Hibernate
Modifiers | Name | Description |
---|---|---|
private Datastore |
datastore |
|
private boolean |
holderActive |
|
private boolean |
newSession |
|
private SessionHolder |
sessionHolder |
Constructor and description |
---|
SpringSessionSynchronization
(SessionHolder sessionHolder, Datastore datastore, boolean newSession) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
afterCommit() |
|
public void |
afterCompletion(int status) |
|
public void |
beforeCommit(boolean readOnly) |
|
public void |
beforeCompletion() |
|
public void |
flush() |
|
private Session |
getCurrentSession() Check whether there is a Hibernate Session for the current JTA transaction. |
|
public void |
resume() |
|
public void |
suspend() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Check whether there is a Hibernate Session for the current JTA transaction. Else, fall back to the default thread-bound Session.