public class DAOUtilTransactionManager extends org.springframework.jdbc.datasource.DataSourceTransactionManager implements PluginEventListener
TransactionManager
. This transaction manager
allow to use transaction in a given plugin, but does not influence other plugins. To create transactions throw multiple plugins, use
LuteceTransactionManager
Constructor and Description |
---|
DAOUtilTransactionManager()
Registers the listener to
PluginService . |
Modifier and Type | Method and Description |
---|---|
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
|
afterPropertiesSet, getResourceFactory, isEnforceReadOnly, setDataSource, setEnforceReadOnly
commit, getDefaultTimeout, getTransaction, getTransactionSynchronization, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionSynchronization, setTransactionSynchronizationName, setValidateExistingTransaction
public DAOUtilTransactionManager()
PluginService
.public String getPluginName()
public void setPluginName(String strPluginName)
strPluginName
- the plugin namepublic void processPluginEvent(PluginEvent event)
processPluginEvent
in interface PluginEventListener
event
- The event to processpublic DataSource getDataSource()
getDataSource
in class org.springframework.jdbc.datasource.DataSourceTransactionManager
Copyright © 2020 City of Paris. All rights reserved.