@Component(value="blOfferCustomPersistenceHandler") public class OfferCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
Modifier and Type | Field and Description |
---|---|
protected static String |
OFFER_ITEM_QUALIFIER_RULE_TYPE |
protected static String |
OFFER_ITEM_TARGET_RULE_TYPE |
protected static String |
QUALIFIERS_CAN_BE_QUALIFIERS |
protected static String |
QUALIFIERS_CAN_BE_TARGETS |
protected static String |
SHOW_ADVANCED_VISIBILITY_OPTIONS |
protected static String |
STACKABLE |
DEFAULT_ORDER
Constructor and Description |
---|
OfferCustomPersistenceHandler() |
Modifier and Type | Method and Description |
---|---|
protected FieldMetadata |
buildAdvancedVisibilityOptionsFieldMetaData() |
protected Property |
buildAdvancedVisibilityOptionsProperty(Property timeRule) |
protected Property |
buildOfferItemQualifierRuleTypeProperty(Property qualifiersCanBeQualifiers,
Property qualifiersCanBeTargets) |
protected Property |
buildOfferItemTargetRuleTypeProperty(Property stackable) |
protected FieldMetadata |
buildQualifiersCanBeQualifiersFieldMetaData() |
protected Property |
buildQualifiersCanBeQualifiersProperty(Property offerItemQualifierRuleType) |
protected FieldMetadata |
buildQualifiersCanBeTargetsFieldMetaData() |
protected Property |
buildQualifiersCanBeTargetsProperty(Property offerItemQualifierRuleType) |
protected FieldMetadata |
buildStackableFieldMetaData() |
protected Property |
buildStackableProperty(Property offerItemTargetRuleType) |
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 |
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) |
DynamicResultSet |
inspect(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
InspectHelper helper) |
protected boolean |
isQualifierTargetType(Property offerItemQualifierRuleType) |
protected boolean |
isQualifierType(Property offerItemQualifierRuleType) |
protected boolean |
isTargetType(Property offerItemQualifierRuleType) |
Entity |
update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
add, canHandleAdd, canHandleRemove, getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, remove, willHandleSecurity
protected static final String SHOW_ADVANCED_VISIBILITY_OPTIONS
protected static final String QUALIFIERS_CAN_BE_QUALIFIERS
protected static final String QUALIFIERS_CAN_BE_TARGETS
protected static final String OFFER_ITEM_QUALIFIER_RULE_TYPE
protected static final String STACKABLE
protected static final String OFFER_ITEM_TARGET_RULE_TYPE
public Boolean canHandleInspect(PersistencePackage persistencePackage)
CustomPersistenceHandler
canHandleInspect
in interface CustomPersistenceHandler
canHandleInspect
in class CustomPersistenceHandlerAdapter
persistencePackage
- details about the inspect operationpublic Boolean canHandleFetch(PersistencePackage persistencePackage)
CustomPersistenceHandler
canHandleFetch
in interface CustomPersistenceHandler
canHandleFetch
in class CustomPersistenceHandlerAdapter
persistencePackage
- details about the fetch operationpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
CustomPersistenceHandler
canHandleUpdate
in interface CustomPersistenceHandler
canHandleUpdate
in class CustomPersistenceHandlerAdapter
persistencePackage
- details about the update operationpublic DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException
inspect
in interface CustomPersistenceHandler
inspect
in class CustomPersistenceHandlerAdapter
ServiceException
protected FieldMetadata buildAdvancedVisibilityOptionsFieldMetaData()
protected FieldMetadata buildQualifiersCanBeQualifiersFieldMetaData()
protected FieldMetadata buildQualifiersCanBeTargetsFieldMetaData()
protected FieldMetadata buildStackableFieldMetaData()
public DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
fetch
in interface CustomPersistenceHandler
fetch
in class CustomPersistenceHandlerAdapter
ServiceException
protected Property buildAdvancedVisibilityOptionsProperty(Property timeRule)
protected Property buildQualifiersCanBeQualifiersProperty(Property offerItemQualifierRuleType)
protected Property buildQualifiersCanBeTargetsProperty(Property offerItemQualifierRuleType)
protected boolean isQualifierType(Property offerItemQualifierRuleType)
protected boolean isTargetType(Property offerItemQualifierRuleType)
protected boolean isQualifierTargetType(Property offerItemQualifierRuleType)
public Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
update
in interface CustomPersistenceHandler
update
in class CustomPersistenceHandlerAdapter
ServiceException
protected Property buildOfferItemQualifierRuleTypeProperty(Property qualifiersCanBeQualifiers, Property qualifiersCanBeTargets)
Copyright © 2020. All rights reserved.