org.granite.tide.spring
Class TideDataPublishingTransactionTemplate

java.lang.Object
  extended by org.springframework.transaction.support.DefaultTransactionDefinition
      extended by org.springframework.transaction.support.TransactionTemplate
          extended by org.granite.tide.spring.TideDataPublishingTransactionTemplate
All Implemented Interfaces:
Serializable, InitializingBean, TransactionOperations, TransactionDefinition

public class TideDataPublishingTransactionTemplate
extends TransactionTemplate
implements InitializingBean

Extended Spring Transaction template which handles publishing of data changes This can be used outside of any Granite context and can replace the default Spring TransactionTemplate

Author:
William DRAI
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.transaction.support.TransactionTemplate
logger
 
Fields inherited from class org.springframework.transaction.support.DefaultTransactionDefinition
PREFIX_ISOLATION, PREFIX_PROPAGATION, PREFIX_TIMEOUT, READ_ONLY_MARKER
 
Fields inherited from interface org.springframework.transaction.TransactionDefinition
ISOLATION_DEFAULT, ISOLATION_READ_COMMITTED, ISOLATION_READ_UNCOMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, PROPAGATION_MANDATORY, PROPAGATION_NESTED, PROPAGATION_NEVER, PROPAGATION_NOT_SUPPORTED, PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT
 
Constructor Summary
TideDataPublishingTransactionTemplate()
           
 
Method Summary
 void afterPropertiesSet()
           
<T> T
execute(TransactionCallback<T> action)
           
 void setDataUpdatePostprocessor(DataUpdatePostprocessor dataUpdatePostprocessor)
           
 void setGravity(Gravity gravity)
           
 void setTideDataPublishingWrapper(TideDataPublishingWrapper tideDataPublishingWrapper)
           
 
Methods inherited from class org.springframework.transaction.support.TransactionTemplate
getTransactionManager, setTransactionManager
 
Methods inherited from class org.springframework.transaction.support.DefaultTransactionDefinition
equals, getDefinitionDescription, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setIsolationLevelName, setName, setPropagationBehavior, setPropagationBehaviorName, setReadOnly, setTimeout, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TideDataPublishingTransactionTemplate

public TideDataPublishingTransactionTemplate()
Method Detail

setGravity

@Autowired
public void setGravity(Gravity gravity)

setTideDataPublishingWrapper

public void setTideDataPublishingWrapper(TideDataPublishingWrapper tideDataPublishingWrapper)

setDataUpdatePostprocessor

@Autowired(required=false)
public void setDataUpdatePostprocessor(DataUpdatePostprocessor dataUpdatePostprocessor)

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class TransactionTemplate

execute

public <T> T execute(TransactionCallback<T> action)
          throws TransactionException
Specified by:
execute in interface TransactionOperations
Overrides:
execute in class TransactionTemplate
Throws:
TransactionException