Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.springframework.orm.hibernate.support
Class AbstractLobType.SpringLobCreatorSynchronization  view AbstractLobType.SpringLobCreatorSynchronization download AbstractLobType.SpringLobCreatorSynchronization.java

java.lang.Object
  extended byorg.springframework.transaction.support.TransactionSynchronizationAdapter
      extended byorg.springframework.orm.hibernate.support.AbstractLobType.SpringLobCreatorSynchronization
All Implemented Interfaces:
org.springframework.core.Ordered, org.springframework.transaction.support.TransactionSynchronization
Enclosing class:
AbstractLobType

private static class AbstractLobType.SpringLobCreatorSynchronization
extends org.springframework.transaction.support.TransactionSynchronizationAdapter

Callback for resource cleanup at the end of a Spring transaction. Invokes LobCreator.close to clean up temporary LOBs that might have been created.


Field Summary
private  boolean beforeCompletionCalled
           
private  org.springframework.jdbc.support.lob.LobCreator lobCreator
           
 
Fields inherited from interface org.springframework.transaction.support.TransactionSynchronization
STATUS_COMMITTED, STATUS_ROLLED_BACK, STATUS_UNKNOWN
 
Constructor Summary
AbstractLobType.SpringLobCreatorSynchronization(org.springframework.jdbc.support.lob.LobCreator lobCreator)
           
 
Method Summary
 void afterCompletion(int status)
          Invoked after transaction commit/rollback.
 void beforeCompletion()
          Invoked before transaction commit/rollback (after "beforeCommit", even if beforeCommit threw an exception).
 int getOrder()
          Return the order value of this object, higher value meaning greater in terms of sorting.
 
Methods inherited from class org.springframework.transaction.support.TransactionSynchronizationAdapter
beforeCommit, resume, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lobCreator

private final org.springframework.jdbc.support.lob.LobCreator lobCreator

beforeCompletionCalled

private boolean beforeCompletionCalled
Constructor Detail

AbstractLobType.SpringLobCreatorSynchronization

public AbstractLobType.SpringLobCreatorSynchronization(org.springframework.jdbc.support.lob.LobCreator lobCreator)
Method Detail

getOrder

public int getOrder()
Description copied from interface: org.springframework.core.Ordered
Return the order value of this object, higher value meaning greater in terms of sorting. Normally starting with 0 or 1, Integer.MAX_VALUE indicating greatest. Same order values will result in arbitrary positions for the affected objects.

Higher value can be interpreted as lower priority, consequently the first object has highest priority (somewhat analogous to Servlet "load-on-startup" values).


beforeCompletion

public void beforeCompletion()
Description copied from interface: org.springframework.transaction.support.TransactionSynchronization
Invoked before transaction commit/rollback (after "beforeCommit", even if beforeCommit threw an exception). Can e.g. perform resource cleanup.

Note that exceptions will get propagated to the commit caller and cause a rollback of the transaction.


afterCompletion

public void afterCompletion(int status)
Description copied from interface: org.springframework.transaction.support.TransactionSynchronization
Invoked after transaction commit/rollback. Can e.g. perform resource cleanup, in this case after transaction completion.

Note that exceptions will get propagated to the commit or rollback caller, although they will not influence the outcome of the transaction.