Class GeneratedPromotionResult
- java.lang.Object
-
- de.hybris.platform.util.BridgeAbstraction
-
- de.hybris.platform.jalo.Item
-
- de.hybris.platform.jalo.ExtensibleItem
-
- de.hybris.platform.jalo.c2l.LocalizableItem
-
- de.hybris.platform.jalo.GenericItem
-
- de.hybris.platform.promotions.jalo.GeneratedPromotionResult
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable
- Direct Known Subclasses:
PromotionResult
public abstract class GeneratedPromotionResult extends GenericItem
Generated class for typePromotionResult.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACTIONSQualifier of thePromotionResult.actionsattributestatic java.lang.StringALLPROMOTIONACTIONSQualifier of thePromotionResult.allPromotionActionsattributeprotected static OneToManyHandler<AbstractPromotionAction>ALLPROMOTIONACTIONSHANDLEROneToManyHandlerfor handling 1:n ALLPROMOTIONACTIONS's relation attributes from 'many' side.static java.lang.StringCERTAINTYQualifier of thePromotionResult.certaintyattributestatic java.lang.StringCONSUMEDENTRIESQualifier of thePromotionResult.consumedEntriesattributestatic java.lang.StringCUSTOMQualifier of thePromotionResult.customattributeprotected static java.util.Map<java.lang.String,Item.AttributeMode>DEFAULT_INITIAL_ATTRIBUTESstatic java.lang.StringORDERQualifier of thePromotionResult.orderattributeprotected static BidirectionalOneToManyHandler<GeneratedPromotionResult>ORDERHANDLERBidirectionalOneToManyHandlerfor handling 1:n ORDER's relation attributes from 'one' side.static java.lang.StringPROMOTIONQualifier of thePromotionResult.promotionattribute-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description GeneratedPromotionResult()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddToAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)Generated method - Addsvalueto allPromotionActions.voidaddToAllPromotionActions(AbstractPromotionAction value)Generated method - Addsvalueto allPromotionActions.protected ItemcreateItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)Has to be implemented for each concrete subtype of item.java.util.Collection<AbstractPromotionAction>getActions()Generated method - Getter of thePromotionResult.actionsattribute.abstract java.util.Collection<AbstractPromotionAction>getActions(SessionContext ctx)Generated method - Getter of thePromotionResult.actionsattribute.java.util.Set<AbstractPromotionAction>getAllPromotionActions()Generated method - Getter of thePromotionResult.allPromotionActionsattribute.java.util.Set<AbstractPromotionAction>getAllPromotionActions(SessionContext ctx)Generated method - Getter of thePromotionResult.allPromotionActionsattribute.java.lang.FloatgetCertainty()Generated method - Getter of thePromotionResult.certaintyattribute.java.lang.FloatgetCertainty(SessionContext ctx)Generated method - Getter of thePromotionResult.certaintyattribute.floatgetCertaintyAsPrimitive()Generated method - Getter of thePromotionResult.certaintyattribute.floatgetCertaintyAsPrimitive(SessionContext ctx)Generated method - Getter of thePromotionResult.certaintyattribute.java.util.Collection<PromotionOrderEntryConsumed>getConsumedEntries()Generated method - Getter of thePromotionResult.consumedEntriesattribute.abstract java.util.Collection<PromotionOrderEntryConsumed>getConsumedEntries(SessionContext ctx)Generated method - Getter of thePromotionResult.consumedEntriesattribute.java.lang.StringgetCustom()Generated method - Getter of thePromotionResult.customattribute.java.lang.StringgetCustom(SessionContext ctx)Generated method - Getter of thePromotionResult.customattribute.protected java.util.Map<java.lang.String,Item.AttributeMode>getDefaultAttributeModes()AbstractOrdergetOrder()Generated method - Getter of thePromotionResult.orderattribute.AbstractOrdergetOrder(SessionContext ctx)Generated method - Getter of thePromotionResult.orderattribute.AbstractPromotiongetPromotion()Generated method - Getter of thePromotionResult.promotionattribute.AbstractPromotiongetPromotion(SessionContext ctx)Generated method - Getter of thePromotionResult.promotionattribute.voidremoveFromAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)Generated method - Removesvaluefrom allPromotionActions.voidremoveFromAllPromotionActions(AbstractPromotionAction value)Generated method - Removesvaluefrom allPromotionActions.abstract voidsetActions(SessionContext ctx, java.util.Collection<AbstractPromotionAction> value)Generated method - Setter of thePromotionResult.actionsattribute.voidsetActions(java.util.Collection<AbstractPromotionAction> value)Generated method - Setter of thePromotionResult.actionsattribute.voidsetAllPromotionActions(SessionContext ctx, java.util.Set<AbstractPromotionAction> value)Generated method - Setter of thePromotionResult.allPromotionActionsattribute.voidsetAllPromotionActions(java.util.Set<AbstractPromotionAction> value)Generated method - Setter of thePromotionResult.allPromotionActionsattribute.voidsetCertainty(float value)Generated method - Setter of thePromotionResult.certaintyattribute.voidsetCertainty(SessionContext ctx, float value)Generated method - Setter of thePromotionResult.certaintyattribute.voidsetCertainty(SessionContext ctx, java.lang.Float value)Generated method - Setter of thePromotionResult.certaintyattribute.voidsetCertainty(java.lang.Float value)Generated method - Setter of thePromotionResult.certaintyattribute.abstract voidsetConsumedEntries(SessionContext ctx, java.util.Collection<PromotionOrderEntryConsumed> value)Generated method - Setter of thePromotionResult.consumedEntriesattribute.voidsetConsumedEntries(java.util.Collection<PromotionOrderEntryConsumed> value)Generated method - Setter of thePromotionResult.consumedEntriesattribute.voidsetCustom(SessionContext ctx, java.lang.String value)Generated method - Setter of thePromotionResult.customattribute.voidsetCustom(java.lang.String value)Generated method - Setter of thePromotionResult.customattribute.voidsetOrder(AbstractOrder value)Generated method - Setter of thePromotionResult.orderattribute.voidsetOrder(SessionContext ctx, AbstractOrder value)Generated method - Setter of thePromotionResult.orderattribute.voidsetPromotion(SessionContext ctx, AbstractPromotion value)Generated method - Setter of thePromotionResult.promotionattribute.voidsetPromotion(AbstractPromotion value)Generated method - Setter of thePromotionResult.promotionattribute.-
Methods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, setRelatedItems
-
Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Field Detail
-
ACTIONS
public static final java.lang.String ACTIONS
Qualifier of thePromotionResult.actionsattribute- See Also:
- Constant Field Values
-
CONSUMEDENTRIES
public static final java.lang.String CONSUMEDENTRIES
Qualifier of thePromotionResult.consumedEntriesattribute- See Also:
- Constant Field Values
-
PROMOTION
public static final java.lang.String PROMOTION
Qualifier of thePromotionResult.promotionattribute- See Also:
- Constant Field Values
-
CERTAINTY
public static final java.lang.String CERTAINTY
Qualifier of thePromotionResult.certaintyattribute- See Also:
- Constant Field Values
-
CUSTOM
public static final java.lang.String CUSTOM
Qualifier of thePromotionResult.customattribute- See Also:
- Constant Field Values
-
ORDER
public static final java.lang.String ORDER
Qualifier of thePromotionResult.orderattribute- See Also:
- Constant Field Values
-
ALLPROMOTIONACTIONS
public static final java.lang.String ALLPROMOTIONACTIONS
Qualifier of thePromotionResult.allPromotionActionsattribute- See Also:
- Constant Field Values
-
ORDERHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedPromotionResult> ORDERHANDLER
BidirectionalOneToManyHandlerfor handling 1:n ORDER's relation attributes from 'one' side.
-
ALLPROMOTIONACTIONSHANDLER
protected static final OneToManyHandler<AbstractPromotionAction> ALLPROMOTIONACTIONSHANDLER
OneToManyHandlerfor handling 1:n ALLPROMOTIONACTIONS's relation attributes from 'many' side.
-
DEFAULT_INITIAL_ATTRIBUTES
protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
-
-
Method Detail
-
getDefaultAttributeModes
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
- Overrides:
getDefaultAttributeModesin classItem
-
getActions
public abstract java.util.Collection<AbstractPromotionAction> getActions(SessionContext ctx)
Generated method - Getter of thePromotionResult.actionsattribute.- Returns:
- the actions - List of actions
-
getActions
public java.util.Collection<AbstractPromotionAction> getActions()
Generated method - Getter of thePromotionResult.actionsattribute.- Returns:
- the actions - List of actions
-
setActions
public abstract void setActions(SessionContext ctx, java.util.Collection<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.actionsattribute.- Parameters:
value- the actions - List of actions
-
setActions
public void setActions(java.util.Collection<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.actionsattribute.- Parameters:
value- the actions - List of actions
-
getAllPromotionActions
public java.util.Set<AbstractPromotionAction> getAllPromotionActions(SessionContext ctx)
Generated method - Getter of thePromotionResult.allPromotionActionsattribute.- Returns:
- the allPromotionActions
-
getAllPromotionActions
public java.util.Set<AbstractPromotionAction> getAllPromotionActions()
Generated method - Getter of thePromotionResult.allPromotionActionsattribute.- Returns:
- the allPromotionActions
-
setAllPromotionActions
public void setAllPromotionActions(SessionContext ctx, java.util.Set<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.allPromotionActionsattribute.- Parameters:
value- the allPromotionActions
-
setAllPromotionActions
public void setAllPromotionActions(java.util.Set<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.allPromotionActionsattribute.- Parameters:
value- the allPromotionActions
-
addToAllPromotionActions
public void addToAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)
Generated method - Addsvalueto allPromotionActions.- Parameters:
value- the item to add to allPromotionActions
-
addToAllPromotionActions
public void addToAllPromotionActions(AbstractPromotionAction value)
Generated method - Addsvalueto allPromotionActions.- Parameters:
value- the item to add to allPromotionActions
-
removeFromAllPromotionActions
public void removeFromAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)
Generated method - Removesvaluefrom allPromotionActions.- Parameters:
value- the item to remove from allPromotionActions
-
removeFromAllPromotionActions
public void removeFromAllPromotionActions(AbstractPromotionAction value)
Generated method - Removesvaluefrom allPromotionActions.- Parameters:
value- the item to remove from allPromotionActions
-
getCertainty
public java.lang.Float getCertainty(SessionContext ctx)
Generated method - Getter of thePromotionResult.certaintyattribute.- Returns:
- the certainty - Certainty
-
getCertainty
public java.lang.Float getCertainty()
Generated method - Getter of thePromotionResult.certaintyattribute.- Returns:
- the certainty - Certainty
-
getCertaintyAsPrimitive
public float getCertaintyAsPrimitive(SessionContext ctx)
Generated method - Getter of thePromotionResult.certaintyattribute.- Returns:
- the certainty - Certainty
-
getCertaintyAsPrimitive
public float getCertaintyAsPrimitive()
Generated method - Getter of thePromotionResult.certaintyattribute.- Returns:
- the certainty - Certainty
-
setCertainty
public void setCertainty(SessionContext ctx, java.lang.Float value)
Generated method - Setter of thePromotionResult.certaintyattribute.- Parameters:
value- the certainty - Certainty
-
setCertainty
public void setCertainty(java.lang.Float value)
Generated method - Setter of thePromotionResult.certaintyattribute.- Parameters:
value- the certainty - Certainty
-
setCertainty
public void setCertainty(SessionContext ctx, float value)
Generated method - Setter of thePromotionResult.certaintyattribute.- Parameters:
value- the certainty - Certainty
-
setCertainty
public void setCertainty(float value)
Generated method - Setter of thePromotionResult.certaintyattribute.- Parameters:
value- the certainty - Certainty
-
getConsumedEntries
public abstract java.util.Collection<PromotionOrderEntryConsumed> getConsumedEntries(SessionContext ctx)
Generated method - Getter of thePromotionResult.consumedEntriesattribute.- Returns:
- the consumedEntries - List of consumed entries
-
getConsumedEntries
public java.util.Collection<PromotionOrderEntryConsumed> getConsumedEntries()
Generated method - Getter of thePromotionResult.consumedEntriesattribute.- Returns:
- the consumedEntries - List of consumed entries
-
setConsumedEntries
public abstract void setConsumedEntries(SessionContext ctx, java.util.Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of thePromotionResult.consumedEntriesattribute.- Parameters:
value- the consumedEntries - List of consumed entries
-
setConsumedEntries
public void setConsumedEntries(java.util.Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of thePromotionResult.consumedEntriesattribute.- Parameters:
value- the consumedEntries - List of consumed entries
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
Description copied from class:ItemHas to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) duringComposedType.newInstance(Map).In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap)too.
Sn example:public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) ); // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes( SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret = super.getNonInitialAttributes( ctx, allAttributes ); // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }- Overrides:
createItemin classGenericItem- Parameters:
ctx- the current session context which this item is created withintype- the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )- Returns:
- the new item instance
- Throws:
JaloBusinessException- indicates an error during creation - any changes will be rollbacked
-
getCustom
public java.lang.String getCustom(SessionContext ctx)
Generated method - Getter of thePromotionResult.customattribute.- Returns:
- the custom - Custom data stored on this promotion result by the promotion.
-
getCustom
public java.lang.String getCustom()
Generated method - Getter of thePromotionResult.customattribute.- Returns:
- the custom - Custom data stored on this promotion result by the promotion.
-
setCustom
public void setCustom(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePromotionResult.customattribute.- Parameters:
value- the custom - Custom data stored on this promotion result by the promotion.
-
setCustom
public void setCustom(java.lang.String value)
Generated method - Setter of thePromotionResult.customattribute.- Parameters:
value- the custom - Custom data stored on this promotion result by the promotion.
-
getOrder
public AbstractOrder getOrder(SessionContext ctx)
Generated method - Getter of thePromotionResult.orderattribute.- Returns:
- the order
-
getOrder
public AbstractOrder getOrder()
Generated method - Getter of thePromotionResult.orderattribute.- Returns:
- the order
-
setOrder
public void setOrder(SessionContext ctx, AbstractOrder value)
Generated method - Setter of thePromotionResult.orderattribute.- Parameters:
value- the order
-
setOrder
public void setOrder(AbstractOrder value)
Generated method - Setter of thePromotionResult.orderattribute.- Parameters:
value- the order
-
getPromotion
public AbstractPromotion getPromotion(SessionContext ctx)
Generated method - Getter of thePromotionResult.promotionattribute.- Returns:
- the promotion - The promotion
-
getPromotion
public AbstractPromotion getPromotion()
Generated method - Getter of thePromotionResult.promotionattribute.- Returns:
- the promotion - The promotion
-
setPromotion
public void setPromotion(SessionContext ctx, AbstractPromotion value)
Generated method - Setter of thePromotionResult.promotionattribute.- Parameters:
value- the promotion - The promotion
-
setPromotion
public void setPromotion(AbstractPromotion value)
Generated method - Setter of thePromotionResult.promotionattribute.- Parameters:
value- the promotion - The promotion
-
-