Package io.jmix.data

Class StoreAwareLocator

java.lang.Object
io.jmix.data.StoreAwareLocator

@Component("data_StoreAwareLocator") public class StoreAwareLocator extends Object
  • Field Details

    • applicationContext

      @Autowired protected org.springframework.context.ApplicationContext applicationContext
    • transactionManagerLocator

      @Autowired protected TransactionManagerLocator transactionManagerLocator
  • Constructor Details

    • StoreAwareLocator

      public StoreAwareLocator()
  • Method Details

    • getDataSource

      public DataSource getDataSource(String storeName)
    • getJdbcTemplate

      public org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate(String storeName)
    • getTransactionManager

      public org.springframework.transaction.PlatformTransactionManager getTransactionManager(String storeName)
    • getTransactionTemplate

      public org.springframework.transaction.support.TransactionTemplate getTransactionTemplate(String storeName)
    • getEntityManagerFactory

      public jakarta.persistence.EntityManagerFactory getEntityManagerFactory(String storeName)
    • getEntityManager

      public jakarta.persistence.EntityManager getEntityManager(String storeName)
    • getTransactionManagerKey

      public String getTransactionManagerKey(String storeName)
    • getBean

      protected <T> T getBean(String storeName, String beanName, Class<T> beanClass)