Class JmixTransactionManager

java.lang.Object
org.springframework.transaction.support.AbstractPlatformTransactionManager
org.springframework.orm.jpa.JpaTransactionManager
io.jmix.data.impl.JmixTransactionManager
All Implemented Interfaces:
Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.transaction.ConfigurableTransactionManager, org.springframework.transaction.PlatformTransactionManager, org.springframework.transaction.support.ResourceTransactionManager, org.springframework.transaction.TransactionManager
Direct Known Subclasses:
JmixEclipselinkTransactionManager

public class JmixTransactionManager extends org.springframework.orm.jpa.JpaTransactionManager implements org.springframework.context.ApplicationContextAware
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.springframework.context.ApplicationContext
     
    protected String
     
    static final String
     
    protected String
     

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

    logger, SYNCHRONIZATION_ALWAYS, SYNCHRONIZATION_NEVER, SYNCHRONIZATION_ON_ACTUAL_TRANSACTION
  • Constructor Summary

    Constructors
    Constructor
    Description
    JmixTransactionManager(String storeName, jakarta.persistence.EntityManagerFactory entityManagerFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doCommit(org.springframework.transaction.support.DefaultTransactionStatus status)
     
    protected void
    doRollback(org.springframework.transaction.support.DefaultTransactionStatus status)
     
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     

    Methods inherited from class org.springframework.orm.jpa.JpaTransactionManager

    afterPropertiesSet, closeEntityManagerAfterFailedBegin, createEntityManagerForTransaction, doBegin, doCleanupAfterCompletion, doGetTransaction, doResume, doSetRollbackOnly, doSuspend, getDataSource, getEntityManagerFactory, getJpaDialect, getJpaPropertyMap, getPersistenceUnitName, getResourceFactory, isExistingTransaction, obtainEntityManagerFactory, setBeanFactory, setDataSource, setEntityManagerFactory, setEntityManagerInitializer, setJpaDialect, setJpaProperties, setJpaPropertyMap, setPersistenceUnitName, shouldCommitOnGlobalRollbackOnly

    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, 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
  • Field Details

    • keyPattern

      public static final String keyPattern
      See Also:
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • storeName

      protected String storeName
    • key

      protected String key
  • Constructor Details

    • JmixTransactionManager

      public JmixTransactionManager(String storeName, jakarta.persistence.EntityManagerFactory entityManagerFactory)
  • Method Details

    • doCommit

      protected void doCommit(org.springframework.transaction.support.DefaultTransactionStatus status)
      Overrides:
      doCommit in class org.springframework.orm.jpa.JpaTransactionManager
    • doRollback

      protected void doRollback(org.springframework.transaction.support.DefaultTransactionStatus status)
      Overrides:
      doRollback in class org.springframework.orm.jpa.JpaTransactionManager
    • getKey

      public String getKey()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException