|
Spring LDAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.transaction.support.AbstractPlatformTransactionManager
org.springframework.orm.hibernate3.HibernateTransactionManager
org.springframework.ldap.transaction.compensating.manager.ContextSourceAndHibernateTransactionManager
public class ContextSourceAndHibernateTransactionManager
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
| Field Summary |
|---|
| Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager |
|---|
logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION |
| Constructor Summary | |
|---|---|
ContextSourceAndHibernateTransactionManager()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Deprecated. |
protected void |
doBegin(Object transaction,
TransactionDefinition definition)
Deprecated. |
protected void |
doCleanupAfterCompletion(Object transaction)
Deprecated. |
protected void |
doCommit(DefaultTransactionStatus status)
Deprecated. |
protected Object |
doGetTransaction()
Deprecated. |
protected void |
doResume(Object transaction,
Object suspendedResources)
Deprecated. |
protected void |
doRollback(DefaultTransactionStatus status)
Deprecated. |
protected Object |
doSuspend(Object transaction)
Deprecated. |
ContextSource |
getContextSource()
Deprecated. |
protected boolean |
isExistingTransaction(Object transaction)
Deprecated. |
void |
setContextSource(ContextSource contextSource)
Deprecated. |
void |
setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy)
Deprecated. |
| 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 |
|---|
public ContextSourceAndHibernateTransactionManager()
| Method Detail |
|---|
protected boolean isExistingTransaction(Object transaction)
isExistingTransaction in class HibernateTransactionManagerprotected Object doGetTransaction()
doGetTransaction in class HibernateTransactionManager
protected void doBegin(Object transaction,
TransactionDefinition definition)
doBegin in class HibernateTransactionManagerprotected void doCleanupAfterCompletion(Object transaction)
doCleanupAfterCompletion in class HibernateTransactionManagerprotected void doCommit(DefaultTransactionStatus status)
doCommit in class HibernateTransactionManagerprotected void doRollback(DefaultTransactionStatus status)
doRollback in class HibernateTransactionManagerpublic ContextSource getContextSource()
public void setContextSource(ContextSource contextSource)
public void setRenamingStrategy(TempEntryRenamingStrategy renamingStrategy)
protected Object doSuspend(Object transaction)
doSuspend in class HibernateTransactionManager
protected void doResume(Object transaction,
Object suspendedResources)
doResume in class HibernateTransactionManagerpublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class HibernateTransactionManager
|
Spring LDAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||