@Component(value="blPageTemplateCustomPersistenceHandler") public class PageTemplateCustomPersistenceHandler extends CustomPersistenceHandlerAdapter implements DynamicEntityRetriever
| Modifier and Type | Field and Description | 
|---|---|
| protected DynamicFieldPersistenceHandlerHelper | dynamicFieldUtil | 
| protected javax.persistence.EntityManager | em | 
| protected PageService | pageService | 
| protected SandBoxService | sandBoxService | 
DEFAULT_ORDER| Constructor and Description | 
|---|
| PageTemplateCustomPersistenceHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| Entity | add(PersistencePackage persistencePackage,
   DynamicEntityDao dynamicEntityDao,
   RecordHelper helper) | 
| protected Entity | addOrUpdate(PersistencePackage persistencePackage,
           DynamicEntityDao dynamicEntityDao,
           RecordHelper helper) | 
| Boolean | canHandleAdd(PersistencePackage persistencePackage)Is this persistence handler capable of dealing with an add request from the admin | 
| Boolean | canHandleFetch(PersistencePackage persistencePackage)Is this persistence handler capable of dealing with an fetch request from the admin | 
| Boolean | canHandleInspect(PersistencePackage persistencePackage)Is this persistence handler capable of dealing with an inspect request from the admin | 
| Boolean | canHandleRemove(PersistencePackage persistencePackage)Is this persistence handler capable of dealing with a remove request from the admin | 
| Boolean | canHandleUpdate(PersistencePackage persistencePackage)Is this persistence handler capable of dealing with an update request from the admin | 
| DynamicResultSet | fetch(PersistencePackage persistencePackage,
     CriteriaTransferObject cto,
     DynamicEntityDao dynamicEntityDao,
     RecordHelper helper) | 
| Entity | fetchDynamicEntity(Serializable root,
                  List<String> dirtyFields,
                  boolean includeId) | 
| Entity | fetchEntityBasedOnId(String pageId,
                    List<String> dirtyFields) | 
| String | getFieldContainerClassName() | 
| protected List<FieldGroup> | getFieldGroups(Page page,
              PageTemplate template) | 
| protected List<FieldGroup> | getFieldGroups(PersistencePackage pp,
              DynamicEntityDao dynamicEntityDao) | 
| protected SandBox | getSandBox() | 
| DynamicResultSet | inspect(PersistencePackage persistencePackage,
       DynamicEntityDao dynamicEntityDao,
       InspectHelper helper) | 
| protected void | populateFKLookupValues(DynamicEntityDao dynamicEntityDao,
                      Entity entity)Some of the values in this entity might be foreign key lookups. | 
| protected void | processFieldGroups(List<String> dirtyFields,
                  Map<String,PageField> pageFieldMap,
                  List<Property> propertiesList,
                  List<FieldGroup> fieldGroups) | 
| protected void | processIncludeId(boolean includeId,
                Page page,
                List<Property> propertiesList) | 
| Entity | update(PersistencePackage persistencePackage,
      DynamicEntityDao dynamicEntityDao,
      RecordHelper helper) | 
getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, remove, willHandleSecurityprotected PageService pageService
protected SandBoxService sandBoxService
protected DynamicFieldPersistenceHandlerHelper dynamicFieldUtil
protected javax.persistence.EntityManager em
public PageTemplateCustomPersistenceHandler()
public Boolean canHandleFetch(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleFetch in interface CustomPersistenceHandlercanHandleFetch in class CustomPersistenceHandlerAdapterpersistencePackage - details about the fetch operationpublic Boolean canHandleAdd(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleAdd in interface CustomPersistenceHandlercanHandleAdd in class CustomPersistenceHandlerAdapterpersistencePackage - details about the add operationpublic Boolean canHandleInspect(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleInspect in interface CustomPersistenceHandlercanHandleInspect in class CustomPersistenceHandlerAdapterpersistencePackage - details about the inspect operationpublic Boolean canHandleRemove(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleRemove in interface CustomPersistenceHandlercanHandleRemove in class CustomPersistenceHandlerAdapterpersistencePackage - details about the remove operationpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpersistencePackage - details about the update operationprotected SandBox getSandBox()
protected List<FieldGroup> getFieldGroups(Page page, PageTemplate template)
protected List<FieldGroup> getFieldGroups(PersistencePackage pp, DynamicEntityDao dynamicEntityDao)
public DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException
inspect in interface CustomPersistenceHandlerinspect in class CustomPersistenceHandlerAdapterServiceExceptionpublic DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
fetch in interface CustomPersistenceHandlerfetch in class CustomPersistenceHandlerAdapterServiceExceptionprotected void populateFKLookupValues(DynamicEntityDao dynamicEntityDao, Entity entity) throws ClassNotFoundException
dynamicEntityDao - entity - ClassNotFoundExceptionpublic String getFieldContainerClassName()
getFieldContainerClassName in interface DynamicEntityRetrieverpublic Entity fetchEntityBasedOnId(String pageId, List<String> dirtyFields) throws Exception
fetchEntityBasedOnId in interface DynamicEntityRetrieverExceptionpublic Entity fetchDynamicEntity(Serializable root, List<String> dirtyFields, boolean includeId) throws Exception
fetchDynamicEntity in interface DynamicEntityRetrieverExceptionprotected void processFieldGroups(List<String> dirtyFields, Map<String,PageField> pageFieldMap, List<Property> propertiesList, List<FieldGroup> fieldGroups)
protected void processIncludeId(boolean includeId,
                                Page page,
                                List<Property> propertiesList)
public Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
update in interface CustomPersistenceHandlerupdate in class CustomPersistenceHandlerAdapterServiceExceptionpublic Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
add in interface CustomPersistenceHandleradd in class CustomPersistenceHandlerAdapterServiceExceptionprotected Entity addOrUpdate(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
ServiceExceptionCopyright © 2020. All rights reserved.