@Component(value="blSkuLookupByProductCustomPersistenceHandler") public class SkuLookupByProductCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
Sku inspects and fetches where the `toOneLookup` custom criteria is on the
persistence package and the lookup is product specific. This allows for special product-based filtering and display
functionality for specific sku look-ups.| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected static String |
FILTER_SKUS_BY_PRODUCT |
protected SkuCustomPersistenceHandler |
skuPersistenceHandler |
protected static String |
TO_ONE_LOOKUP_CRITERIA |
DEFAULT_ORDER| Constructor and Description |
|---|
SkuLookupByProductCustomPersistenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
canHandleFetch(PersistencePackage persistencePackage) |
DynamicResultSet |
fetch(PersistencePackage persistencePackage,
CriteriaTransferObject cto,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
int |
getOrder() |
protected boolean |
isRequestForSkusFilteredByProduct(PersistencePackage persistencePackage) |
add, canHandleAdd, canHandleInspect, canHandleRemove, canHandleUpdate, getClassForName, getMetadata, getPolymorphicClasses, getResultSet, inspect, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, remove, update, willHandleSecurityprotected static final String TO_ONE_LOOKUP_CRITERIA
protected static final String FILTER_SKUS_BY_PRODUCT
protected CatalogService catalogService
protected SkuCustomPersistenceHandler skuPersistenceHandler
public SkuLookupByProductCustomPersistenceHandler()
public 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.ServiceExceptionprotected boolean isRequestForSkusFilteredByProduct(PersistencePackage persistencePackage)
public int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class CustomPersistenceHandlerAdapterCopyright © 2022. All rights reserved.