@Component(value="blPersistenceManager") @Scope(value="prototype") public class PersistenceManagerImpl extends Object implements InspectHelper, PersistenceManager, org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected SecurityVerifier |
adminRemoteSecurityService |
protected org.springframework.context.ApplicationContext |
applicationContext |
protected List<CustomPersistenceHandlerFilter> |
customPersistenceHandlerFilters |
protected List<CustomPersistenceHandler> |
customPersistenceHandlers |
protected DynamicEntityDao |
dynamicEntityDao |
protected FetchTypeDetection |
fetchDetection |
protected PersistenceModule[] |
modules |
protected List<PersistenceManagerEventHandler> |
persistenceManagerEventHandlers |
protected PersistenceService |
persistenceService |
protected TargetModeType |
targetMode |
| Constructor and Description |
|---|
PersistenceManagerImpl() |
protected DynamicEntityDao dynamicEntityDao
protected PersistenceService persistenceService
protected List<CustomPersistenceHandler> customPersistenceHandlers
protected List<CustomPersistenceHandlerFilter> customPersistenceHandlerFilters
protected SecurityVerifier adminRemoteSecurityService
protected PersistenceModule[] modules
protected List<PersistenceManagerEventHandler> persistenceManagerEventHandlers
@Autowired(required=false) protected FetchTypeDetection fetchDetection
protected TargetModeType targetMode
protected org.springframework.context.ApplicationContext applicationContext
@PostConstruct public void postConstruct()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic Class<?>[] getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass)
getAllPolymorphicEntitiesFromCeiling in interface PersistenceManagerpublic Class<?>[] getUpDownInheritance(String testClassname) throws ClassNotFoundException
getUpDownInheritance in interface PersistenceManagerClassNotFoundExceptionpublic Class<?>[] getUpDownInheritance(Class<?> testClass)
getUpDownInheritance in interface PersistenceManagerpublic Class<?>[] getPolymorphicEntities(String ceilingEntityFullyQualifiedClassname) throws ClassNotFoundException
getPolymorphicEntities in interface PersistenceManagerClassNotFoundExceptionpublic Map<String,FieldMetadata> getSimpleMergedProperties(String entityName, PersistencePerspective persistencePerspective)
getSimpleMergedProperties in interface InspectHelpergetSimpleMergedProperties in interface PersistenceManagerpublic Property[] processMergedProperties(Class<?>[] entities, Map<MergedPropertyType,Map<String,FieldMetadata>> mergedProperties)
public ClassMetadata buildClassMetadata(Class<?>[] entities, PersistencePackage persistencePackage, Map<MergedPropertyType,Map<String,FieldMetadata>> mergedProperties)
buildClassMetadata in interface InspectHelperbuildClassMetadata in interface PersistenceManagerpublic PersistenceResponse inspect(PersistencePackage persistencePackage) throws ServiceException, ClassNotFoundException
inspect in interface PersistenceManagerServiceExceptionClassNotFoundExceptionpublic String getIdPropertyName(String entityClass)
getIdPropertyName in interface PersistenceManagerprotected PersistenceResponse executePostInspectHandlers(PersistencePackage persistencePackage, PersistenceResponse persistenceResponse) throws ServiceException
ServiceExceptionpublic PersistenceResponse fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
fetch in interface PersistenceManagerServiceExceptionprotected PersistenceResponse executePostFetchHandlers(PersistencePackage persistencePackage, CriteriaTransferObject cto, PersistenceResponse persistenceResponse) throws ServiceException
ServiceException@Deprecated protected DynamicResultSet postFetch(DynamicResultSet resultSet, PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
resultSet - persistencePackage - cto - ServiceExceptionpublic PersistenceResponse add(PersistencePackage persistencePackage) throws ServiceException
add in interface PersistenceManagerServiceExceptionprotected PersistenceResponse executeValidationProcessors(PersistencePackage persistencePackage, PersistenceResponse persistenceResponse) throws ServiceException
ServiceExceptionprotected PersistenceResponse executePostAddHandlers(PersistencePackage persistencePackage, PersistenceResponse persistenceResponse) throws ServiceException
ServiceExceptionprotected void executeDeferredOperations(PersistencePackage persistencePackage) throws ServiceException
ServiceException@Deprecated protected Entity postAdd(Entity entity, PersistencePackage persistencePackage) throws ServiceException
entity - persistencePackage - ServiceExceptionpublic PersistenceResponse update(PersistencePackage persistencePackage) throws ServiceException
update in interface PersistenceManagerServiceExceptionprotected PersistenceResponse executePostUpdateHandlers(PersistencePackage persistencePackage, PersistenceResponse persistenceResponse) throws ServiceException
ServiceException@Deprecated protected Entity postUpdate(Entity entity, PersistencePackage persistencePackage) throws ServiceException
entity - persistencePackage - ServiceExceptionpublic PersistenceResponse remove(PersistencePackage persistencePackage) throws ServiceException
remove in interface PersistenceManagerServiceExceptionprotected PersistenceResponse executePostRemoveHandlers(PersistencePackage persistencePackage, PersistenceResponse persistenceResponse) throws ServiceException
ServiceExceptionpublic PersistenceModule getCompatibleModule(OperationType operationType)
getCompatibleModule in interface InspectHelperpublic void configureDynamicEntityDao(Class entityClass, TargetModeType targetModeType)
configureDynamicEntityDao in interface PersistenceManagerprotected javax.persistence.EntityManager getEntityManager(Class entityClass, TargetModeType targetModeType)
public void configureDefaultDynamicEntityDao(TargetModeType targetModeType)
PersistenceManagerDynamicEntityDao with a blPU-based standardEntityManager
using the passed in TargetModeTypeconfigureDefaultDynamicEntityDao in interface PersistenceManagerprotected javax.persistence.EntityManager getDefaultEntityManager(TargetModeType targetModeType)
public DynamicEntityDao getDynamicEntityDao()
getDynamicEntityDao in interface PersistenceManagerpublic void setDynamicEntityDao(DynamicEntityDao dynamicEntityDao)
setDynamicEntityDao in interface PersistenceManagerpublic TargetModeType getTargetMode()
getTargetMode in interface PersistenceManagerpublic void setTargetMode(TargetModeType targetMode)
setTargetMode in interface PersistenceManagerpublic List<CustomPersistenceHandler> getCustomPersistenceHandlers()
getCustomPersistenceHandlers in interface PersistenceManagerprotected void setMainEntityName(PersistencePackage pp, Entity entity)
public void setCustomPersistenceHandlers(List<CustomPersistenceHandler> customPersistenceHandlers)
setCustomPersistenceHandlers in interface PersistenceManagerpublic SecurityVerifier getAdminRemoteSecurityService()
public void setAdminRemoteSecurityService(AdminSecurityServiceRemote adminRemoteSecurityService)
public List<CustomPersistenceHandlerFilter> getCustomPersistenceHandlerFilters()
public void setCustomPersistenceHandlerFilters(List<CustomPersistenceHandlerFilter> customPersistenceHandlerFilters)
public PersistenceModule[] getModules()
public void setModules(PersistenceModule[] modules)
protected void honorExplicitPersistenceHandlerSorting()
Copyright © 2019. All rights reserved.