@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.ApplicationContextAware
org.springframework.beans.BeansException
public Class<?>[] getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass)
getAllPolymorphicEntitiesFromCeiling
in interface PersistenceManager
public Class<?>[] getUpDownInheritance(String testClassname) throws ClassNotFoundException
getUpDownInheritance
in interface PersistenceManager
ClassNotFoundException
public Class<?>[] getUpDownInheritance(Class<?> testClass)
getUpDownInheritance
in interface PersistenceManager
public Class<?>[] getPolymorphicEntities(String ceilingEntityFullyQualifiedClassname) throws ClassNotFoundException
getPolymorphicEntities
in interface PersistenceManager
ClassNotFoundException
public Map<String,FieldMetadata> getSimpleMergedProperties(String entityName, PersistencePerspective persistencePerspective)
getSimpleMergedProperties
in interface InspectHelper
getSimpleMergedProperties
in interface PersistenceManager
public 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 InspectHelper
buildClassMetadata
in interface PersistenceManager
public PersistenceResponse inspect(PersistencePackage persistencePackage) throws ServiceException, ClassNotFoundException
inspect
in interface PersistenceManager
ServiceException
ClassNotFoundException
public String getIdPropertyName(String entityClass)
getIdPropertyName
in interface PersistenceManager
protected PersistenceResponse executePostInspectHandlers(PersistencePackage persistencePackage, PersistenceResponse persistenceResponse) throws ServiceException
ServiceException
public PersistenceResponse fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
fetch
in interface PersistenceManager
ServiceException
protected 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
- ServiceException
public PersistenceResponse add(PersistencePackage persistencePackage) throws ServiceException
add
in interface PersistenceManager
ServiceException
protected PersistenceResponse executeValidationProcessors(PersistencePackage persistencePackage, PersistenceResponse persistenceResponse) throws ServiceException
ServiceException
protected PersistenceResponse executePostAddHandlers(PersistencePackage persistencePackage, PersistenceResponse persistenceResponse) throws ServiceException
ServiceException
protected void executeDeferredOperations(PersistencePackage persistencePackage) throws ServiceException
ServiceException
@Deprecated protected Entity postAdd(Entity entity, PersistencePackage persistencePackage) throws ServiceException
entity
- persistencePackage
- ServiceException
public PersistenceResponse update(PersistencePackage persistencePackage) throws ServiceException
update
in interface PersistenceManager
ServiceException
protected PersistenceResponse executePostUpdateHandlers(PersistencePackage persistencePackage, PersistenceResponse persistenceResponse) throws ServiceException
ServiceException
@Deprecated protected Entity postUpdate(Entity entity, PersistencePackage persistencePackage) throws ServiceException
entity
- persistencePackage
- ServiceException
public PersistenceResponse remove(PersistencePackage persistencePackage) throws ServiceException
remove
in interface PersistenceManager
ServiceException
protected PersistenceResponse executePostRemoveHandlers(PersistencePackage persistencePackage, PersistenceResponse persistenceResponse) throws ServiceException
ServiceException
public PersistenceModule getCompatibleModule(OperationType operationType)
getCompatibleModule
in interface InspectHelper
public void configureDynamicEntityDao(Class entityClass, TargetModeType targetModeType)
configureDynamicEntityDao
in interface PersistenceManager
protected javax.persistence.EntityManager getEntityManager(Class entityClass, TargetModeType targetModeType)
public void configureDefaultDynamicEntityDao(TargetModeType targetModeType)
PersistenceManager
DynamicEntityDao
with a blPU-based standardEntityManager
using the passed in TargetModeType
configureDefaultDynamicEntityDao
in interface PersistenceManager
protected javax.persistence.EntityManager getDefaultEntityManager(TargetModeType targetModeType)
public DynamicEntityDao getDynamicEntityDao()
getDynamicEntityDao
in interface PersistenceManager
public void setDynamicEntityDao(DynamicEntityDao dynamicEntityDao)
setDynamicEntityDao
in interface PersistenceManager
public TargetModeType getTargetMode()
getTargetMode
in interface PersistenceManager
public void setTargetMode(TargetModeType targetMode)
setTargetMode
in interface PersistenceManager
public List<CustomPersistenceHandler> getCustomPersistenceHandlers()
getCustomPersistenceHandlers
in interface PersistenceManager
protected void setMainEntityName(PersistencePackage pp, Entity entity)
public void setCustomPersistenceHandlers(List<CustomPersistenceHandler> customPersistenceHandlers)
setCustomPersistenceHandlers
in interface PersistenceManager
public 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.