fr.paris.lutece.portal.service.database
Class DAOUtilTransactionManager

java.lang.Object
  extended by org.springframework.transaction.support.AbstractPlatformTransactionManager
      extended by org.springframework.jdbc.datasource.DataSourceTransactionManager
          extended by fr.paris.lutece.portal.service.database.DAOUtilTransactionManager
All Implemented Interfaces:
PluginEventListener, Serializable, org.springframework.beans.factory.InitializingBean, org.springframework.transaction.PlatformTransactionManager, org.springframework.transaction.support.ResourceTransactionManager

public class DAOUtilTransactionManager
extends org.springframework.jdbc.datasource.DataSourceTransactionManager
implements PluginEventListener

DataSource transaction manager.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
org.springframework.transaction.support.AbstractPlatformTransactionManager.SuspendedResourcesHolder
 
Field Summary
 
Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
 
Constructor Summary
DAOUtilTransactionManager()
          Registers the listener to PluginService.
 
Method Summary
 DataSource getDataSource()
          Returns a "fake" datasource to avoid spring checks failure when pool are not initialized.
 String getPluginName()
          Gets the plugin name
 void processPluginEvent(PluginEvent event)
          Process a plugin event
 void setPluginName(String strPluginName)
          Sets the plugin name
 
Methods inherited from class org.springframework.jdbc.datasource.DataSourceTransactionManager
afterPropertiesSet, doBegin, doCleanupAfterCompletion, doCommit, doGetTransaction, doResume, doRollback, doSetRollbackOnly, doSuspend, getResourceFactory, isExistingTransaction, setDataSource
 
Methods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
commit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, newTransactionStatus, prepareForCommit, prepareSynchronization, prepareTransactionStatus, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction, shouldCommitOnGlobalRollbackOnly, suspend, triggerBeforeCommit, triggerBeforeCompletion, useSavepointForNestedTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.transaction.PlatformTransactionManager
commit, getTransaction, rollback
 

Constructor Detail

DAOUtilTransactionManager

public DAOUtilTransactionManager()
Registers the listener to PluginService.

Method Detail

getPluginName

public String getPluginName()
Gets the plugin name

Returns:
the plugin name

setPluginName

public void setPluginName(String strPluginName)
Sets the plugin name

Parameters:
strPluginName - the plugin name

processPluginEvent

public void processPluginEvent(PluginEvent event)
Process a plugin event

Specified by:
processPluginEvent in interface PluginEventListener
Parameters:
event - The event to process

getDataSource

public DataSource getDataSource()
Returns a "fake" datasource to avoid spring checks failure when pool are not initialized. Returns the current datasource otherwise.

Overrides:
getDataSource in class org.springframework.jdbc.datasource.DataSourceTransactionManager
Returns:
the data source


Copyright © 2014 Mairie de Paris. All Rights Reserved.