Class ContextSourceAndHibernateTransactionManager
java.lang.Object
org.springframework.transaction.support.AbstractPlatformTransactionManager
org.springframework.orm.hibernate5.HibernateTransactionManager
org.springframework.ldap.transaction.compensating.manager.ContextSourceAndHibernateTransactionManager
- All Implemented Interfaces:
Serializable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.InitializingBean
,org.springframework.transaction.ConfigurableTransactionManager
,org.springframework.transaction.PlatformTransactionManager
,org.springframework.transaction.support.ResourceTransactionManager
,org.springframework.transaction.TransactionManager
@Deprecated
public class ContextSourceAndHibernateTransactionManager
extends org.springframework.orm.hibernate5.HibernateTransactionManager
Deprecated.
The idea of wrapping two transaction managers without actual XA support is
probably not such a good idea after all. AbstractPlatformTransactionManager is not
designed for this usage.
A Transaction Manager to manage LDAP and Hibernate 3 operations within the same
transaction. Note that even though the same logical transaction is used, this is
not a JTA XA transaction; no two-phase commit will be performed, and thus commit
and rollback may yield unexpected results.
This Transaction Manager is as good as it gets when you are using in LDAP in combination with a Hibernate 3 and unable to use XA transactions because LDAP is not transactional by design to begin with.
Furthermore, this manager does not support nested transactions
This Transaction Manager is as good as it gets when you are using in LDAP in combination with a Hibernate 3 and unable to use XA transactions because LDAP is not transactional by design to begin with.
Furthermore, this manager does not support nested transactions
- Since:
- 1.2.2
- See Also:
-
Field Summary
Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.protected void
Deprecated.protected void
doCleanupAfterCompletion
(Object transaction) Deprecated.protected void
doCommit
(org.springframework.transaction.support.DefaultTransactionStatus status) Deprecated.protected Object
Deprecated.protected void
Deprecated.protected void
doRollback
(org.springframework.transaction.support.DefaultTransactionStatus status) Deprecated.protected Object
Deprecated.Deprecated.protected boolean
isExistingTransaction
(Object transaction) Deprecated.void
setContextSource
(ContextSource contextSource) Deprecated.void
setRenamingStrategy
(TempEntryRenamingStrategy renamingStrategy) Deprecated.Methods inherited from class org.springframework.orm.hibernate5.HibernateTransactionManager
convertHibernateAccessException, disconnectOnCompletion, doSetRollbackOnly, getDataSource, getEntityInterceptor, getResourceFactory, getSessionFactory, obtainSessionFactory, setAllowResultAccessAfterCompletion, setAutodetectDataSource, setBeanFactory, setDataSource, setEntityInterceptor, setEntityInterceptorBeanName, setHibernateManagedSession, setPrepareConnection, setSessionFactory, setSessionInitializer
Methods inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager
commit, determineTimeout, getDefaultTimeout, getTransaction, getTransactionExecutionListeners, getTransactionSynchronization, invokeAfterCompletion, isFailEarlyOnGlobalRollbackOnly, isGlobalRollbackOnParticipationFailure, isNestedTransactionAllowed, isRollbackOnCommitFailure, isValidateExistingTransaction, prepareForCommit, prepareSynchronization, registerAfterCompletionWithExistingTransaction, resume, rollback, setDefaultTimeout, setFailEarlyOnGlobalRollbackOnly, setGlobalRollbackOnParticipationFailure, setNestedTransactionAllowed, setRollbackOnCommitFailure, setTransactionExecutionListeners, 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.ConfigurableTransactionManager
addListener
Methods inherited from interface org.springframework.transaction.PlatformTransactionManager
commit, getTransaction, rollback
-
Constructor Details
-
ContextSourceAndHibernateTransactionManager
public ContextSourceAndHibernateTransactionManager()Deprecated.
-
-
Method Details
-
isExistingTransaction
Deprecated.- Overrides:
isExistingTransaction
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
doGetTransaction
Deprecated.- Overrides:
doGetTransaction
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
doBegin
protected void doBegin(Object transaction, org.springframework.transaction.TransactionDefinition definition) Deprecated.- Overrides:
doBegin
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
doCleanupAfterCompletion
Deprecated.- Overrides:
doCleanupAfterCompletion
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
doCommit
protected void doCommit(org.springframework.transaction.support.DefaultTransactionStatus status) Deprecated.- Overrides:
doCommit
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
doRollback
protected void doRollback(org.springframework.transaction.support.DefaultTransactionStatus status) Deprecated.- Overrides:
doRollback
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
getContextSource
Deprecated. -
setContextSource
Deprecated. -
setRenamingStrategy
Deprecated. -
doSuspend
Deprecated.- Overrides:
doSuspend
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
doResume
Deprecated.- Overrides:
doResume
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-
afterPropertiesSet
public void afterPropertiesSet()Deprecated.- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classorg.springframework.orm.hibernate5.HibernateTransactionManager
-