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.String
ACTIONS
Qualifier of thePromotionResult.actions
attributestatic java.lang.String
ALLPROMOTIONACTIONS
Qualifier of thePromotionResult.allPromotionActions
attributeprotected static OneToManyHandler<AbstractPromotionAction>
ALLPROMOTIONACTIONSHANDLER
OneToManyHandler
for handling 1:n ALLPROMOTIONACTIONS's relation attributes from 'many' side.static java.lang.String
CERTAINTY
Qualifier of thePromotionResult.certainty
attributestatic java.lang.String
CONSUMEDENTRIES
Qualifier of thePromotionResult.consumedEntries
attributestatic java.lang.String
CUSTOM
Qualifier of thePromotionResult.custom
attributeprotected static java.util.Map<java.lang.String,Item.AttributeMode>
DEFAULT_INITIAL_ATTRIBUTES
static java.lang.String
ORDER
Qualifier of thePromotionResult.order
attributeprotected static BidirectionalOneToManyHandler<GeneratedPromotionResult>
ORDERHANDLER
BidirectionalOneToManyHandler
for handling 1:n ORDER's relation attributes from 'one' side.static java.lang.String
PROMOTION
Qualifier of thePromotionResult.promotion
attribute-
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 void
addToAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)
Generated method - Addsvalue
to allPromotionActions.void
addToAllPromotionActions(AbstractPromotionAction value)
Generated method - Addsvalue
to allPromotionActions.protected Item
createItem(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.actions
attribute.abstract java.util.Collection<AbstractPromotionAction>
getActions(SessionContext ctx)
Generated method - Getter of thePromotionResult.actions
attribute.java.util.Set<AbstractPromotionAction>
getAllPromotionActions()
Generated method - Getter of thePromotionResult.allPromotionActions
attribute.java.util.Set<AbstractPromotionAction>
getAllPromotionActions(SessionContext ctx)
Generated method - Getter of thePromotionResult.allPromotionActions
attribute.java.lang.Float
getCertainty()
Generated method - Getter of thePromotionResult.certainty
attribute.java.lang.Float
getCertainty(SessionContext ctx)
Generated method - Getter of thePromotionResult.certainty
attribute.float
getCertaintyAsPrimitive()
Generated method - Getter of thePromotionResult.certainty
attribute.float
getCertaintyAsPrimitive(SessionContext ctx)
Generated method - Getter of thePromotionResult.certainty
attribute.java.util.Collection<PromotionOrderEntryConsumed>
getConsumedEntries()
Generated method - Getter of thePromotionResult.consumedEntries
attribute.abstract java.util.Collection<PromotionOrderEntryConsumed>
getConsumedEntries(SessionContext ctx)
Generated method - Getter of thePromotionResult.consumedEntries
attribute.java.lang.String
getCustom()
Generated method - Getter of thePromotionResult.custom
attribute.java.lang.String
getCustom(SessionContext ctx)
Generated method - Getter of thePromotionResult.custom
attribute.protected java.util.Map<java.lang.String,Item.AttributeMode>
getDefaultAttributeModes()
AbstractOrder
getOrder()
Generated method - Getter of thePromotionResult.order
attribute.AbstractOrder
getOrder(SessionContext ctx)
Generated method - Getter of thePromotionResult.order
attribute.AbstractPromotion
getPromotion()
Generated method - Getter of thePromotionResult.promotion
attribute.AbstractPromotion
getPromotion(SessionContext ctx)
Generated method - Getter of thePromotionResult.promotion
attribute.void
removeFromAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)
Generated method - Removesvalue
from allPromotionActions.void
removeFromAllPromotionActions(AbstractPromotionAction value)
Generated method - Removesvalue
from allPromotionActions.abstract void
setActions(SessionContext ctx, java.util.Collection<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.actions
attribute.void
setActions(java.util.Collection<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.actions
attribute.void
setAllPromotionActions(SessionContext ctx, java.util.Set<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.allPromotionActions
attribute.void
setAllPromotionActions(java.util.Set<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.allPromotionActions
attribute.void
setCertainty(float value)
Generated method - Setter of thePromotionResult.certainty
attribute.void
setCertainty(SessionContext ctx, float value)
Generated method - Setter of thePromotionResult.certainty
attribute.void
setCertainty(SessionContext ctx, java.lang.Float value)
Generated method - Setter of thePromotionResult.certainty
attribute.void
setCertainty(java.lang.Float value)
Generated method - Setter of thePromotionResult.certainty
attribute.abstract void
setConsumedEntries(SessionContext ctx, java.util.Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of thePromotionResult.consumedEntries
attribute.void
setConsumedEntries(java.util.Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of thePromotionResult.consumedEntries
attribute.void
setCustom(SessionContext ctx, java.lang.String value)
Generated method - Setter of thePromotionResult.custom
attribute.void
setCustom(java.lang.String value)
Generated method - Setter of thePromotionResult.custom
attribute.void
setOrder(AbstractOrder value)
Generated method - Setter of thePromotionResult.order
attribute.void
setOrder(SessionContext ctx, AbstractOrder value)
Generated method - Setter of thePromotionResult.order
attribute.void
setPromotion(SessionContext ctx, AbstractPromotion value)
Generated method - Setter of thePromotionResult.promotion
attribute.void
setPromotion(AbstractPromotion value)
Generated method - Setter of thePromotionResult.promotion
attribute.-
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.actions
attribute- See Also:
- Constant Field Values
-
CONSUMEDENTRIES
public static final java.lang.String CONSUMEDENTRIES
Qualifier of thePromotionResult.consumedEntries
attribute- See Also:
- Constant Field Values
-
PROMOTION
public static final java.lang.String PROMOTION
Qualifier of thePromotionResult.promotion
attribute- See Also:
- Constant Field Values
-
CERTAINTY
public static final java.lang.String CERTAINTY
Qualifier of thePromotionResult.certainty
attribute- See Also:
- Constant Field Values
-
CUSTOM
public static final java.lang.String CUSTOM
Qualifier of thePromotionResult.custom
attribute- See Also:
- Constant Field Values
-
ORDER
public static final java.lang.String ORDER
Qualifier of thePromotionResult.order
attribute- See Also:
- Constant Field Values
-
ALLPROMOTIONACTIONS
public static final java.lang.String ALLPROMOTIONACTIONS
Qualifier of thePromotionResult.allPromotionActions
attribute- See Also:
- Constant Field Values
-
ORDERHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedPromotionResult> ORDERHANDLER
BidirectionalOneToManyHandler
for handling 1:n ORDER's relation attributes from 'one' side.
-
ALLPROMOTIONACTIONSHANDLER
protected static final OneToManyHandler<AbstractPromotionAction> ALLPROMOTIONACTIONSHANDLER
OneToManyHandler
for 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:
getDefaultAttributeModes
in classItem
-
getActions
public abstract java.util.Collection<AbstractPromotionAction> getActions(SessionContext ctx)
Generated method - Getter of thePromotionResult.actions
attribute.- Returns:
- the actions - List of actions
-
getActions
public java.util.Collection<AbstractPromotionAction> getActions()
Generated method - Getter of thePromotionResult.actions
attribute.- Returns:
- the actions - List of actions
-
setActions
public abstract void setActions(SessionContext ctx, java.util.Collection<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.actions
attribute.- Parameters:
value
- the actions - List of actions
-
setActions
public void setActions(java.util.Collection<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.actions
attribute.- Parameters:
value
- the actions - List of actions
-
getAllPromotionActions
public java.util.Set<AbstractPromotionAction> getAllPromotionActions(SessionContext ctx)
Generated method - Getter of thePromotionResult.allPromotionActions
attribute.- Returns:
- the allPromotionActions
-
getAllPromotionActions
public java.util.Set<AbstractPromotionAction> getAllPromotionActions()
Generated method - Getter of thePromotionResult.allPromotionActions
attribute.- Returns:
- the allPromotionActions
-
setAllPromotionActions
public void setAllPromotionActions(SessionContext ctx, java.util.Set<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.allPromotionActions
attribute.- Parameters:
value
- the allPromotionActions
-
setAllPromotionActions
public void setAllPromotionActions(java.util.Set<AbstractPromotionAction> value)
Generated method - Setter of thePromotionResult.allPromotionActions
attribute.- Parameters:
value
- the allPromotionActions
-
addToAllPromotionActions
public void addToAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)
Generated method - Addsvalue
to allPromotionActions.- Parameters:
value
- the item to add to allPromotionActions
-
addToAllPromotionActions
public void addToAllPromotionActions(AbstractPromotionAction value)
Generated method - Addsvalue
to allPromotionActions.- Parameters:
value
- the item to add to allPromotionActions
-
removeFromAllPromotionActions
public void removeFromAllPromotionActions(SessionContext ctx, AbstractPromotionAction value)
Generated method - Removesvalue
from allPromotionActions.- Parameters:
value
- the item to remove from allPromotionActions
-
removeFromAllPromotionActions
public void removeFromAllPromotionActions(AbstractPromotionAction value)
Generated method - Removesvalue
from allPromotionActions.- Parameters:
value
- the item to remove from allPromotionActions
-
getCertainty
public java.lang.Float getCertainty(SessionContext ctx)
Generated method - Getter of thePromotionResult.certainty
attribute.- Returns:
- the certainty - Certainty
-
getCertainty
public java.lang.Float getCertainty()
Generated method - Getter of thePromotionResult.certainty
attribute.- Returns:
- the certainty - Certainty
-
getCertaintyAsPrimitive
public float getCertaintyAsPrimitive(SessionContext ctx)
Generated method - Getter of thePromotionResult.certainty
attribute.- Returns:
- the certainty - Certainty
-
getCertaintyAsPrimitive
public float getCertaintyAsPrimitive()
Generated method - Getter of thePromotionResult.certainty
attribute.- Returns:
- the certainty - Certainty
-
setCertainty
public void setCertainty(SessionContext ctx, java.lang.Float value)
Generated method - Setter of thePromotionResult.certainty
attribute.- Parameters:
value
- the certainty - Certainty
-
setCertainty
public void setCertainty(java.lang.Float value)
Generated method - Setter of thePromotionResult.certainty
attribute.- Parameters:
value
- the certainty - Certainty
-
setCertainty
public void setCertainty(SessionContext ctx, float value)
Generated method - Setter of thePromotionResult.certainty
attribute.- Parameters:
value
- the certainty - Certainty
-
setCertainty
public void setCertainty(float value)
Generated method - Setter of thePromotionResult.certainty
attribute.- Parameters:
value
- the certainty - Certainty
-
getConsumedEntries
public abstract java.util.Collection<PromotionOrderEntryConsumed> getConsumedEntries(SessionContext ctx)
Generated method - Getter of thePromotionResult.consumedEntries
attribute.- Returns:
- the consumedEntries - List of consumed entries
-
getConsumedEntries
public java.util.Collection<PromotionOrderEntryConsumed> getConsumedEntries()
Generated method - Getter of thePromotionResult.consumedEntries
attribute.- Returns:
- the consumedEntries - List of consumed entries
-
setConsumedEntries
public abstract void setConsumedEntries(SessionContext ctx, java.util.Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of thePromotionResult.consumedEntries
attribute.- Parameters:
value
- the consumedEntries - List of consumed entries
-
setConsumedEntries
public void setConsumedEntries(java.util.Collection<PromotionOrderEntryConsumed> value)
Generated method - Setter of thePromotionResult.consumedEntries
attribute.- 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:Item
Has 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:
createItem
in 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.custom
attribute.- Returns:
- the custom - Custom data stored on this promotion result by the promotion.
-
getCustom
public java.lang.String getCustom()
Generated method - Getter of thePromotionResult.custom
attribute.- 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.custom
attribute.- 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.custom
attribute.- 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.order
attribute.- Returns:
- the order
-
getOrder
public AbstractOrder getOrder()
Generated method - Getter of thePromotionResult.order
attribute.- Returns:
- the order
-
setOrder
public void setOrder(SessionContext ctx, AbstractOrder value)
Generated method - Setter of thePromotionResult.order
attribute.- Parameters:
value
- the order
-
setOrder
public void setOrder(AbstractOrder value)
Generated method - Setter of thePromotionResult.order
attribute.- Parameters:
value
- the order
-
getPromotion
public AbstractPromotion getPromotion(SessionContext ctx)
Generated method - Getter of thePromotionResult.promotion
attribute.- Returns:
- the promotion - The promotion
-
getPromotion
public AbstractPromotion getPromotion()
Generated method - Getter of thePromotionResult.promotion
attribute.- Returns:
- the promotion - The promotion
-
setPromotion
public void setPromotion(SessionContext ctx, AbstractPromotion value)
Generated method - Setter of thePromotionResult.promotion
attribute.- Parameters:
value
- the promotion - The promotion
-
setPromotion
public void setPromotion(AbstractPromotion value)
Generated method - Setter of thePromotionResult.promotion
attribute.- Parameters:
value
- the promotion - The promotion
-
-