@Component(value="blStructuredContentTypeCustomPersistenceHandler") public class StructuredContentTypeCustomPersistenceHandler extends CustomPersistenceHandlerAdapter implements DynamicEntityRetriever
| Modifier and Type | Field and Description |
|---|---|
protected DynamicFieldPersistenceHandlerHelper |
dynamicFieldUtil |
protected javax.persistence.EntityManager |
em |
protected StructuredContentService |
structuredContentService |
DEFAULT_ORDER| Constructor and Description |
|---|
StructuredContentTypeCustomPersistenceHandler() |
getMetadata, getOrder, getResultSet, remove, willHandleSecurityprotected StructuredContentService structuredContentService
protected DynamicFieldPersistenceHandlerHelper dynamicFieldUtil
protected javax.persistence.EntityManager em
public StructuredContentTypeCustomPersistenceHandler()
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 CustomPersistenceHandlerAdapterpublic 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 Entity fetchEntityBasedOnId(String structuredContentId, List<String> dirtyFields) throws Exception
fetchEntityBasedOnId in interface DynamicEntityRetrieverExceptionpublic String getFieldContainerClassName()
getFieldContainerClassName in interface DynamicEntityRetrieverpublic 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
StructuredContent is saved in order to fill out the dynamic form for the structured content typeupdate in interface CustomPersistenceHandlerupdate in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionpublic Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
StructuredContent is saved in order to fill out the dynamic form for the structured content typeadd 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.