|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.transaction.support.TransactionSynchronizationAdapter
org.springframework.orm.hibernate4.SpringFlushSynchronization
class SpringFlushSynchronization
Simple synchronization adapter that propagates a flush()
call
to the underlying Hibernate Session. Used in combination with JTA.
Field Summary | |
---|---|
private Session |
session
|
Fields inherited from interface org.springframework.transaction.support.TransactionSynchronization |
---|
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
SpringFlushSynchronization(Session session)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
void |
flush()
Flush the underlying session to the datastore, if applicable: for example, a Hibernate/JPA session. |
int |
hashCode()
|
Methods inherited from class org.springframework.transaction.support.TransactionSynchronizationAdapter |
---|
afterCommit, afterCompletion, beforeCommit, beforeCompletion, getOrder, resume, suspend |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Session session
Constructor Detail |
---|
public SpringFlushSynchronization(Session session)
Method Detail |
---|
public void flush()
TransactionSynchronization
flush
in interface TransactionSynchronization
flush
in class TransactionSynchronizationAdapter
TransactionStatus.flush()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |