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.context.ApplicationContextAware
public class PersistenceManagerImpl
- extends java.lang.Object
- implements InspectHelper, PersistenceManager, org.springframework.context.ApplicationContextAware
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sandBoxService
protected SandBoxService sandBoxService
dynamicEntityDao
protected DynamicEntityDao dynamicEntityDao
customPersistenceHandlers
protected java.util.List<CustomPersistenceHandler> customPersistenceHandlers
modules
protected PersistenceModule[] modules
targetEntityManagers
protected java.util.Map<TargetModeType,java.lang.String> targetEntityManagers
targetMode
protected TargetModeType targetMode
adminRemoteSecurityService
protected AdminSecurityServiceRemote adminRemoteSecurityService
PersistenceManagerImpl
public PersistenceManagerImpl(PersistenceModule[] modules)
close
public void close()
throws java.lang.Exception
- Specified by:
close in interface PersistenceManager
- Throws:
java.lang.Exception
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 java.lang.Class<?>[] getAllPolymorphicEntitiesFromCeiling(java.lang.Class<?> ceilingClass)
- Specified by:
getAllPolymorphicEntitiesFromCeiling in interface PersistenceManager
getPolymorphicEntities
public java.lang.Class<?>[] getPolymorphicEntities(java.lang.String ceilingEntityFullyQualifiedClassname)
throws java.lang.ClassNotFoundException
- Specified by:
getPolymorphicEntities in interface PersistenceManager
- Throws:
java.lang.ClassNotFoundException
getSimpleMergedProperties
public java.util.Map<java.lang.String,FieldMetadata> getSimpleMergedProperties(java.lang.String entityName,
PersistencePerspective persistencePerspective)
throws java.lang.ClassNotFoundException,
java.lang.SecurityException,
java.lang.IllegalArgumentException,
java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchFieldException
- Specified by:
getSimpleMergedProperties in interface InspectHelper- Specified by:
getSimpleMergedProperties in interface PersistenceManager
- Throws:
java.lang.ClassNotFoundException
java.lang.SecurityException
java.lang.IllegalArgumentException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchFieldException
getMergedClassMetadata
public ClassMetadata getMergedClassMetadata(java.lang.Class<?>[] entities,
java.util.Map<MergedPropertyType,java.util.Map<java.lang.String,FieldMetadata>> mergedProperties)
throws java.lang.ClassNotFoundException,
java.lang.IllegalArgumentException
- Specified by:
getMergedClassMetadata in interface InspectHelper- Specified by:
getMergedClassMetadata in interface PersistenceManager
- Throws:
java.lang.ClassNotFoundException
java.lang.IllegalArgumentException
inspect
public DynamicResultSet inspect(PersistencePackage persistencePackage)
throws ServiceException,
java.lang.ClassNotFoundException
- Specified by:
inspect in interface PersistenceManager
- Throws:
ServiceException
java.lang.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
add
public Entity add(PersistencePackage persistencePackage)
throws ServiceException
- Specified by:
add in interface PersistenceManager
- Throws:
ServiceException
update
public Entity update(PersistencePackage persistencePackage)
throws ServiceException
- Specified by:
update in interface PersistenceManager
- Throws:
ServiceException
remove
public void remove(PersistencePackage persistencePackage)
throws ServiceException
- Specified by:
remove in interface PersistenceManager
- Throws:
ServiceException
getCompatibleModule
protected PersistenceModule getCompatibleModule(OperationType operationType)
getSandBoxService
public SandBoxService getSandBoxService()
- Specified by:
getSandBoxService in interface PersistenceManager
setSandBoxService
public void setSandBoxService(SandBoxService sandBoxService)
- Specified by:
setSandBoxService in interface PersistenceManager
getDynamicEntityDao
public DynamicEntityDao getDynamicEntityDao()
- Specified by:
getDynamicEntityDao in interface PersistenceManager
setDynamicEntityDao
public void setDynamicEntityDao(DynamicEntityDao dynamicEntityDao)
- Specified by:
setDynamicEntityDao in interface PersistenceManager
getTargetEntityManagers
public java.util.Map<TargetModeType,java.lang.String> getTargetEntityManagers()
- Specified by:
getTargetEntityManagers in interface PersistenceManager
setTargetEntityManagers
public void setTargetEntityManagers(java.util.Map<TargetModeType,java.lang.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 java.util.List<CustomPersistenceHandler> getCustomPersistenceHandlers()
- Specified by:
getCustomPersistenceHandlers in interface PersistenceManager
setCustomPersistenceHandlers
public void setCustomPersistenceHandlers(java.util.List<CustomPersistenceHandler> customPersistenceHandlers)
- Specified by:
setCustomPersistenceHandlers in interface PersistenceManager
getAdminRemoteSecurityService
public AdminSecurityServiceRemote getAdminRemoteSecurityService()
setAdminRemoteSecurityService
public void setAdminRemoteSecurityService(AdminSecurityServiceRemote adminRemoteSecurityService)
Copyright © 2011. All Rights Reserved.