Class 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
    • Field Summary

      • Fields inherited from class org.springframework.transaction.support.AbstractPlatformTransactionManager

        logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
    • 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
    • Constructor Detail

      • PentahoTransactionManager

        public PentahoTransactionManager()
    • Method Detail

      • doBegin

        protected void doBegin​(Object transaction,
                               org.springframework.transaction.TransactionDefinition transactionDefinition)
                        throws org.springframework.transaction.TransactionException
        Overrides:
        doBegin in class org.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: