Package io.jmix.data
Class StoreAwareLocator
java.lang.Object
io.jmix.data.StoreAwareLocator
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected TransactionManagerLocator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
getDataSource
(String storeName) jakarta.persistence.EntityManager
getEntityManager
(String storeName) jakarta.persistence.EntityManagerFactory
getEntityManagerFactory
(String storeName) org.springframework.jdbc.core.JdbcTemplate
getJdbcTemplate
(String storeName) org.springframework.transaction.PlatformTransactionManager
getTransactionManager
(String storeName) getTransactionManagerKey
(String storeName) org.springframework.transaction.support.TransactionTemplate
getTransactionTemplate
(String storeName)
-
Field Details
-
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext -
transactionManagerLocator
-
-
Constructor Details
-
StoreAwareLocator
public StoreAwareLocator()
-
-
Method Details
-
getDataSource
-
getJdbcTemplate
-
getTransactionManager
public org.springframework.transaction.PlatformTransactionManager getTransactionManager(String storeName) -
getTransactionTemplate
public org.springframework.transaction.support.TransactionTemplate getTransactionTemplate(String storeName) -
getEntityManagerFactory
-
getEntityManager
-
getTransactionManagerKey
-
getBean
-