public interface PersistenceService
| Modifier and Type | Method and Description | 
|---|---|
| Class<?> | getCeilingImplClassFromEntityManagers(String className)Retrieves the topmost implementation for the given className by checking each registered  EntityManager. | 
| javax.persistence.EntityManager | getEntityManager(Map<String,Object> managerMap)Gathers the  EntityManagerfrom the provided managerMap | 
| org.springframework.transaction.PlatformTransactionManager | getTransactionManager(Map<String,Object> managerMap)Gathers the  PlatformTransactionManagerfrom the provided managerMap | 
| javax.persistence.EntityManager | identifyDefaultEntityManager(TargetModeType targetModeType)Identifies the default  EntityManagerfor the given targetModeType
 NOTE: This assumes that theEntityManageris based on blPU | 
| org.springframework.transaction.PlatformTransactionManager | identifyDefaultTransactionManager(TargetModeType targetModeType)Identifies the default  PlatformTransactionManagerfor the given targetModeType
 NOTE: This assumes that thePlatformTransactionManageris based on blPU | 
| javax.persistence.EntityManager | identifyEntityManager(Class entityClass)Identifies the  EntityManagerfor the given entityClass, using the default targetModeType ofTargetModeType.SANDBOX | 
| javax.persistence.EntityManager | identifyEntityManager(Class entityClass,
                     TargetModeType targetModeType)Identifies the  EntityManagerfor the given entityClass and targetModeType | 
| org.springframework.transaction.PlatformTransactionManager | identifyTransactionManager(String className,
                          TargetModeType targetModeType)Identifies the  PlatformTransactionManagerfor the given className and targetModeType | 
| boolean | validateEntityClassName(String entityClassName)Determine if a test class name represents a known entity class registered with Hibernate | 
boolean validateEntityClassName(String entityClassName)
entityClassName - javax.persistence.EntityManager identifyEntityManager(Class entityClass)
EntityManager for the given entityClass, using the default targetModeType of TargetModeType.SANDBOXentityClass - EntityManagerjavax.persistence.EntityManager identifyEntityManager(Class entityClass, TargetModeType targetModeType)
EntityManager for the given entityClass and targetModeTypeentityClass - targetModeType - EntityManagerorg.springframework.transaction.PlatformTransactionManager identifyTransactionManager(String className, TargetModeType targetModeType)
PlatformTransactionManager for the given className and targetModeTypeclassName - targetModeType - PlatformTransactionManagerjavax.persistence.EntityManager identifyDefaultEntityManager(TargetModeType targetModeType)
EntityManager for the given targetModeType
 NOTE: This assumes that the EntityManager is based on blPUtargetModeType - EntityManagerorg.springframework.transaction.PlatformTransactionManager identifyDefaultTransactionManager(TargetModeType targetModeType)
PlatformTransactionManager for the given targetModeType
 NOTE: This assumes that the PlatformTransactionManager is based on blPUtargetModeType - PlatformTransactionManagerjavax.persistence.EntityManager getEntityManager(Map<String,Object> managerMap)
EntityManager from the provided managerMapmanagerMap - EntityManagerorg.springframework.transaction.PlatformTransactionManager getTransactionManager(Map<String,Object> managerMap)
PlatformTransactionManager from the provided managerMapmanagerMap - PlatformTransactionManager@Nullable Class<?> getCeilingImplClassFromEntityManagers(String className)
EntityManager. If
 this is not found in the entity managers, this returns nullclassName - Copyright © 2020. All rights reserved.