Interface PersistenceManager
- All Known Implementing Classes:
PersistenceManagerImpl
public interface PersistenceManager
-
Method Summary
Modifier and TypeMethodDescriptionadd
(PersistencePackage persistencePackage) buildClassMetadata
(Class<?>[] entities, PersistencePackage persistencePackage, Map<MergedPropertyType, Map<String, FieldMetadata>> mergedProperties) void
configureDefaultDynamicEntityDao
(TargetModeType targetModeType) This method produces aDynamicEntityDao
with a blPU-based standardEntityManager using the passed inTargetModeType
void
configureDynamicEntityDao
(Class entityClass, TargetModeType targetMode) fetch
(PersistencePackage persistencePackage, CriteriaTransferObject cto) Class<?>[]
getAllPolymorphicEntitiesFromCeiling
(Class<?> ceilingClass) getIdPropertyName
(String entityClass) Class<?>[]
getPolymorphicEntities
(String ceilingEntityFullyQualifiedClassname) getSimpleMergedProperties
(String entityName, PersistencePerspective persistencePerspective) Class<?>[]
getUpDownInheritance
(Class<?> testClass) Class<?>[]
getUpDownInheritance
(String testClassname) inspect
(PersistencePackage persistencePackage) remove
(PersistencePackage persistencePackage) void
setCustomPersistenceHandlers
(List<CustomPersistenceHandler> customPersistenceHandlers) void
setDynamicEntityDao
(DynamicEntityDao dynamicEntityDao) void
setTargetMode
(TargetModeType targetMode) update
(PersistencePackage persistencePackage)
-
Method Details
-
getAllPolymorphicEntitiesFromCeiling
-
getPolymorphicEntities
Class<?>[] getPolymorphicEntities(String ceilingEntityFullyQualifiedClassname) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
getSimpleMergedProperties
Map<String,FieldMetadata> getSimpleMergedProperties(String entityName, PersistencePerspective persistencePerspective) throws ClassNotFoundException, SecurityException, IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, NoSuchFieldException -
buildClassMetadata
ClassMetadata buildClassMetadata(Class<?>[] entities, PersistencePackage persistencePackage, Map<MergedPropertyType, Map<String, throws IllegalArgumentExceptionFieldMetadata>> mergedProperties) - Throws:
IllegalArgumentException
-
inspect
PersistenceResponse inspect(PersistencePackage persistencePackage) throws ServiceException, ClassNotFoundException -
fetch
PersistenceResponse fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException - Throws:
ServiceException
-
add
- Throws:
ServiceException
-
update
- Throws:
ServiceException
-
remove
- Throws:
ServiceException
-
configureDynamicEntityDao
-
configureDefaultDynamicEntityDao
This method produces aDynamicEntityDao
with a blPU-based standardEntityManager using the passed inTargetModeType
-
getDynamicEntityDao
DynamicEntityDao getDynamicEntityDao() -
setDynamicEntityDao
-
getTargetMode
TargetModeType getTargetMode() -
setTargetMode
-
getCustomPersistenceHandlers
List<CustomPersistenceHandler> getCustomPersistenceHandlers() -
setCustomPersistenceHandlers
-
getUpDownInheritance
-
getUpDownInheritance
- Throws:
ClassNotFoundException
-
getIdPropertyName
-