@Component(value="blProductOptionsCustomPersistenceHandler") public class ProductOptionsCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected ProductOptionDao |
productOptionDao |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
DEFAULT_ORDER| Constructor and Description |
|---|
ProductOptionsCustomPersistenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
canHandleFetch(PersistencePackage persistencePackage) |
Boolean |
canHandleUpdate(PersistencePackage persistencePackage) |
DynamicResultSet |
fetch(PersistencePackage persistencePackage,
CriteriaTransferObject cto,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
protected boolean |
needsAllowedValue(ProductOption adminInstance)
This function checks if a Product Option's "Use in sku generation" field is set to true
without any allowed values set.
|
Entity |
update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
add, canHandleAdd, canHandleInspect, canHandleRemove, getMetadata, getOrder, getResultSet, inspect, remove, willHandleSecurityprotected ProductOptionDao productOptionDao
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
public ProductOptionsCustomPersistenceHandler()
public Boolean canHandleUpdate(PersistencePackage persistencePackage)
canHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpublic Boolean canHandleFetch(PersistencePackage persistencePackage)
canHandleFetch in interface CustomPersistenceHandlercanHandleFetch in class CustomPersistenceHandlerAdapterpublic 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 update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
update in interface CustomPersistenceHandlerupdate in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionprotected boolean needsAllowedValue(ProductOption adminInstance)
adminInstance: - The Product Option being validatedCopyright © 2017. All rights reserved.