org.broadleafcommerce.openadmin.server.service.persistence
Class PersistenceManagerImpl
java.lang.Object
org.broadleafcommerce.openadmin.server.service.persistence.PersistenceManagerImpl
- All Implemented Interfaces:
- InspectHelper, PersistenceManager, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
@Component(value="blPersistenceManager")
@Scope(value="prototype")
public class PersistenceManagerImpl
- extends Object
- implements InspectHelper, PersistenceManager, org.springframework.context.ApplicationContextAware
|
Method Summary |
Entity |
add(PersistencePackage persistencePackage)
|
DynamicResultSet |
fetch(PersistencePackage persistencePackage,
com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto)
|
AdminSecurityServiceRemote |
getAdminRemoteSecurityService()
|
Class<?>[] |
getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass)
|
PersistenceModule |
getCompatibleModule(OperationType operationType)
|
List<CustomPersistenceHandlerFilter> |
getCustomPersistenceHandlerFilters()
|
List<CustomPersistenceHandler> |
getCustomPersistenceHandlers()
|
DynamicEntityDao |
getDynamicEntityDao()
|
ClassMetadata |
getMergedClassMetadata(Class<?>[] entities,
Map<MergedPropertyType,Map<String,FieldMetadata>> mergedProperties)
|
PersistenceModule[] |
getModules()
|
Class<?>[] |
getPolymorphicEntities(String ceilingEntityFullyQualifiedClassname)
|
Map<String,FieldMetadata> |
getSimpleMergedProperties(String entityName,
PersistencePerspective persistencePerspective)
|
Map<String,String> |
getTargetEntityManagers()
|
TargetModeType |
getTargetMode()
|
Class<?>[] |
getUpDownInheritance(Class<?> testClass)
|
Class<?>[] |
getUpDownInheritance(String testClassname)
|
DynamicResultSet |
inspect(PersistencePackage persistencePackage)
|
protected Entity |
postAdd(Entity entity,
PersistencePackage persistencePackage)
|
void |
postConstruct()
|
protected DynamicResultSet |
postFetch(DynamicResultSet resultSet,
PersistencePackage persistencePackage)
|
protected Entity |
postUpdate(Entity entity,
PersistencePackage persistencePackage)
|
void |
remove(PersistencePackage persistencePackage)
|
void |
setAdminRemoteSecurityService(AdminSecurityServiceRemote adminRemoteSecurityService)
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setCustomPersistenceHandlerFilters(List<CustomPersistenceHandlerFilter> customPersistenceHandlerFilters)
|
void |
setCustomPersistenceHandlers(List<CustomPersistenceHandler> customPersistenceHandlers)
|
void |
setDynamicEntityDao(DynamicEntityDao dynamicEntityDao)
|
void |
setModules(PersistenceModule[] modules)
|
void |
setTargetEntityManagers(Map<String,String> targetEntityManagers)
|
void |
setTargetMode(TargetModeType targetMode)
|
Entity |
update(PersistencePackage persistencePackage)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dynamicEntityDao
protected DynamicEntityDao dynamicEntityDao
customPersistenceHandlers
protected List<CustomPersistenceHandler> customPersistenceHandlers
customPersistenceHandlerFilters
protected List<CustomPersistenceHandlerFilter> customPersistenceHandlerFilters
targetEntityManagers
protected Map<String,String> targetEntityManagers
adminRemoteSecurityService
protected AdminSecurityServiceRemote adminRemoteSecurityService
modules
protected PersistenceModule[] modules
targetMode
protected TargetModeType targetMode
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
PersistenceManagerImpl
public PersistenceManagerImpl()
postConstruct
@PostConstruct
public void postConstruct()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
getAllPolymorphicEntitiesFromCeiling
public Class<?>[] getAllPolymorphicEntitiesFromCeiling(Class<?> ceilingClass)
- Specified by:
getAllPolymorphicEntitiesFromCeiling in interface PersistenceManager
getUpDownInheritance
public Class<?>[] getUpDownInheritance(String testClassname)
throws ClassNotFoundException
- Specified by:
getUpDownInheritance in interface PersistenceManager
- Throws:
ClassNotFoundException
getUpDownInheritance
public Class<?>[] getUpDownInheritance(Class<?> testClass)
- Specified by:
getUpDownInheritance in interface PersistenceManager
getPolymorphicEntities
public Class<?>[] getPolymorphicEntities(String ceilingEntityFullyQualifiedClassname)
throws ClassNotFoundException
- Specified by:
getPolymorphicEntities in interface PersistenceManager
- Throws:
ClassNotFoundException
getSimpleMergedProperties
public Map<String,FieldMetadata> getSimpleMergedProperties(String entityName,
PersistencePerspective persistencePerspective)
throws ClassNotFoundException,
SecurityException,
IllegalArgumentException,
NoSuchMethodException,
IllegalAccessException,
InvocationTargetException,
NoSuchFieldException
- Specified by:
getSimpleMergedProperties in interface InspectHelper- Specified by:
getSimpleMergedProperties in interface PersistenceManager
- Throws:
ClassNotFoundException
SecurityException
IllegalArgumentException
NoSuchMethodException
IllegalAccessException
InvocationTargetException
NoSuchFieldException
getMergedClassMetadata
public ClassMetadata getMergedClassMetadata(Class<?>[] entities,
Map<MergedPropertyType,Map<String,FieldMetadata>> mergedProperties)
throws ClassNotFoundException,
IllegalArgumentException
- Specified by:
getMergedClassMetadata in interface InspectHelper- Specified by:
getMergedClassMetadata in interface PersistenceManager
- Throws:
ClassNotFoundException
IllegalArgumentException
inspect
public DynamicResultSet inspect(PersistencePackage persistencePackage)
throws ServiceException,
ClassNotFoundException
- Specified by:
inspect in interface PersistenceManager
- Throws:
ServiceException
ClassNotFoundException
fetch
public DynamicResultSet fetch(PersistencePackage persistencePackage,
com.anasoft.os.daofusion.cto.client.CriteriaTransferObject cto)
throws ServiceException
- Specified by:
fetch in interface PersistenceManager
- Throws:
ServiceException
postFetch
protected DynamicResultSet postFetch(DynamicResultSet resultSet,
PersistencePackage persistencePackage)
throws ServiceException
- Throws:
ServiceException
add
public Entity add(PersistencePackage persistencePackage)
throws ServiceException
- Specified by:
add in interface PersistenceManager
- Throws:
ServiceException
postAdd
protected Entity postAdd(Entity entity,
PersistencePackage persistencePackage)
throws ServiceException
- Throws:
ServiceException
update
public Entity update(PersistencePackage persistencePackage)
throws ServiceException
- Specified by:
update in interface PersistenceManager
- Throws:
ServiceException
postUpdate
protected Entity postUpdate(Entity entity,
PersistencePackage persistencePackage)
throws ServiceException
- Throws:
ServiceException
remove
public void remove(PersistencePackage persistencePackage)
throws ServiceException
- Specified by:
remove in interface PersistenceManager
- Throws:
ServiceException
getCompatibleModule
public PersistenceModule getCompatibleModule(OperationType operationType)
- Specified by:
getCompatibleModule in interface InspectHelper
getDynamicEntityDao
public DynamicEntityDao getDynamicEntityDao()
- Specified by:
getDynamicEntityDao in interface PersistenceManager
setDynamicEntityDao
public void setDynamicEntityDao(DynamicEntityDao dynamicEntityDao)
- Specified by:
setDynamicEntityDao in interface PersistenceManager
getTargetEntityManagers
public Map<String,String> getTargetEntityManagers()
- Specified by:
getTargetEntityManagers in interface PersistenceManager
setTargetEntityManagers
public void setTargetEntityManagers(Map<String,String> targetEntityManagers)
- Specified by:
setTargetEntityManagers in interface PersistenceManager
getTargetMode
public TargetModeType getTargetMode()
- Specified by:
getTargetMode in interface PersistenceManager
setTargetMode
public void setTargetMode(TargetModeType targetMode)
- Specified by:
setTargetMode in interface PersistenceManager
getCustomPersistenceHandlers
public List<CustomPersistenceHandler> getCustomPersistenceHandlers()
- Specified by:
getCustomPersistenceHandlers in interface PersistenceManager
setCustomPersistenceHandlers
public void setCustomPersistenceHandlers(List<CustomPersistenceHandler> customPersistenceHandlers)
- Specified by:
setCustomPersistenceHandlers in interface PersistenceManager
getAdminRemoteSecurityService
public AdminSecurityServiceRemote getAdminRemoteSecurityService()
setAdminRemoteSecurityService
public void setAdminRemoteSecurityService(AdminSecurityServiceRemote adminRemoteSecurityService)
getCustomPersistenceHandlerFilters
public List<CustomPersistenceHandlerFilter> getCustomPersistenceHandlerFilters()
setCustomPersistenceHandlerFilters
public void setCustomPersistenceHandlerFilters(List<CustomPersistenceHandlerFilter> customPersistenceHandlerFilters)
getModules
public PersistenceModule[] getModules()
setModules
public void setModules(PersistenceModule[] modules)
Copyright © 2013. All Rights Reserved.