Class PentahoTransactionManager
- java.lang.Object
-
- org.springframework.transaction.support.AbstractPlatformTransactionManager
-
- org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager
-
- org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoTransactionManager
-
- All Implemented Interfaces:
Serializable
,org.springframework.beans.factory.InitializingBean
,org.springframework.transaction.PlatformTransactionManager
,org.springframework.transaction.TransactionManager
public class PentahoTransactionManager extends org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager
A customized version of the SE-JCR LocalTransactionManager which captures transaction information to inform session creation and pooling.Created by nbaker on 10/17/16.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PentahoTransactionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doBegin(Object transaction, org.springframework.transaction.TransactionDefinition transactionDefinition)
org.springframework.transaction.TransactionDefinition
getTransactionDefinition()
Get the thread-bound TransactionDefinition.boolean
isCreatingTransaction()
Returns whether or not a real transaction is in the process of being created.-
Methods inherited from class org.springframework.extensions.jcr.jackrabbit.LocalTransactionManager
afterPropertiesSet, doCleanupAfterCompletion, doCommit, doGetTransaction, doResume, doRollback, doSetRollbackOnly, doSuspend, getSessionFactory, isExistingTransaction, setSessionFactory
-
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
-
-
-
-
Method Detail
-
doBegin
protected void doBegin(Object transaction, org.springframework.transaction.TransactionDefinition transactionDefinition) throws org.springframework.transaction.TransactionException
- Overrides:
doBegin
in classorg.springframework.extensions.jcr.jackrabbit.LocalTransactionManager
- Throws:
org.springframework.transaction.TransactionException
-
getTransactionDefinition
public org.springframework.transaction.TransactionDefinition getTransactionDefinition()
Get the thread-bound TransactionDefinition.- Returns:
- active definition
-
isCreatingTransaction
public boolean isCreatingTransaction()
Returns whether or not a real transaction is in the process of being created.- Returns:
-
-