@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 PersistenceModule[] |
modules |
protected Map<String,String> |
targetEntityManagers |
protected TargetModeType |
targetMode |
Constructor and Description |
---|
PersistenceManagerImpl() |
protected DynamicEntityDao dynamicEntityDao
protected List<CustomPersistenceHandler> customPersistenceHandlers
protected List<CustomPersistenceHandlerFilter> customPersistenceHandlerFilters
protected SecurityVerifier adminRemoteSecurityService
protected PersistenceModule[] modules
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 ClassMetadata getMergedClassMetadata(Class<?>[] entities, Map<MergedPropertyType,Map<String,FieldMetadata>> mergedProperties)
getMergedClassMetadata
in interface InspectHelper
getMergedClassMetadata
in interface PersistenceManager
public DynamicResultSet inspect(PersistencePackage persistencePackage) throws ServiceException, ClassNotFoundException
inspect
in interface PersistenceManager
ServiceException
ClassNotFoundException
public DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
fetch
in interface PersistenceManager
ServiceException
protected DynamicResultSet postFetch(DynamicResultSet resultSet, PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException
ServiceException
public Entity add(PersistencePackage persistencePackage) throws ServiceException
add
in interface PersistenceManager
ServiceException
protected Entity postAdd(Entity entity, PersistencePackage persistencePackage) throws ServiceException
ServiceException
public Entity update(PersistencePackage persistencePackage) throws ServiceException
update
in interface PersistenceManager
ServiceException
protected Entity postUpdate(Entity entity, PersistencePackage persistencePackage) throws ServiceException
ServiceException
public void remove(PersistencePackage persistencePackage) throws ServiceException
remove
in interface PersistenceManager
ServiceException
public PersistenceModule getCompatibleModule(OperationType operationType)
getCompatibleModule
in interface InspectHelper
public DynamicEntityDao getDynamicEntityDao()
getDynamicEntityDao
in interface PersistenceManager
public void setDynamicEntityDao(DynamicEntityDao dynamicEntityDao)
setDynamicEntityDao
in interface PersistenceManager
public Map<String,String> getTargetEntityManagers()
getTargetEntityManagers
in interface PersistenceManager
public void setTargetEntityManagers(Map<String,String> targetEntityManagers)
setTargetEntityManagers
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
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)
Copyright © 2014. All rights reserved.