@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 org.broadleafcommerce.common.sandbox.service.SandBoxService |
sandBoxService |
DEFAULT_ORDER| Constructor and Description |
|---|
PageTemplateCustomPersistenceHandler() |
getMetadata, getOrder, getResultSet, remove, willHandleSecurityprotected PageService pageService
protected org.broadleafcommerce.common.sandbox.service.SandBoxService sandBoxService
protected DynamicFieldPersistenceHandlerHelper dynamicFieldUtil
protected javax.persistence.EntityManager em
public PageTemplateCustomPersistenceHandler()
public Boolean canHandleFetch(PersistencePackage persistencePackage)
canHandleFetch in interface CustomPersistenceHandlercanHandleFetch in class CustomPersistenceHandlerAdapterpublic Boolean canHandleAdd(PersistencePackage persistencePackage)
canHandleAdd in interface CustomPersistenceHandlercanHandleAdd in class CustomPersistenceHandlerAdapterpublic Boolean canHandleInspect(PersistencePackage persistencePackage)
canHandleInspect in interface CustomPersistenceHandlercanHandleInspect in class CustomPersistenceHandlerAdapterpublic Boolean canHandleRemove(PersistencePackage persistencePackage)
canHandleRemove in interface CustomPersistenceHandlercanHandleRemove in class CustomPersistenceHandlerAdapterpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
canHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterprotected org.broadleafcommerce.common.sandbox.domain.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 org.broadleafcommerce.common.exception.ServiceException
inspect in interface CustomPersistenceHandlerinspect in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionpublic DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
fetch in interface CustomPersistenceHandlerfetch in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionpublic 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 DynamicEntityRetrieverExceptionpublic Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
update in interface CustomPersistenceHandlerupdate in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionpublic Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
add in interface CustomPersistenceHandleradd in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionprotected Entity addOrUpdate(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
org.broadleafcommerce.common.exception.ServiceExceptionCopyright © 2017. All rights reserved.