Class GeneratedDiscount
- 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.jalo.order.price.GeneratedDiscount
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable
- Direct Known Subclasses:
Discount
public abstract class GeneratedDiscount extends GenericItem
Generated class for typeDiscount.- 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.StringABSOLUTEQualifier of theDiscount.absoluteattributestatic java.lang.StringCODEQualifier of theDiscount.codeattributestatic java.lang.StringCURRENCYQualifier of theDiscount.currencyattributeprotected static java.util.Map<java.lang.String,Item.AttributeMode>DEFAULT_INITIAL_ATTRIBUTESstatic java.lang.StringDISCOUNTSTRINGQualifier of theDiscount.discountStringattributestatic java.lang.StringGLOBALQualifier of theDiscount.globalattributestatic java.lang.StringNAMEQualifier of theDiscount.nameattributeprotected static java.lang.StringORDERDISCOUNTRELATION_MARKMODIFIEDRelation disable markmodifed parameter constants for OrderDiscountRelation from ((core))protected static java.lang.StringORDERDISCOUNTRELATION_SRC_ORDEREDRelation ordering override parameter constants for OrderDiscountRelation from ((core))protected static java.lang.StringORDERDISCOUNTRELATION_TGT_ORDEREDstatic java.lang.StringORDERSQualifier of theDiscount.ordersattributestatic java.lang.StringPRIORITYQualifier of theDiscount.priorityattributestatic java.lang.StringVALUEQualifier of theDiscount.valueattribute-
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 GeneratedDiscount()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddToOrders(AbstractOrder value)Generated method - Addsvalueto orders.voidaddToOrders(SessionContext ctx, AbstractOrder value)Generated method - Addsvalueto orders.java.util.Map<Language,java.lang.String>getAllName()Generated method - Getter of theDiscount.nameattribute.java.util.Map<Language,java.lang.String>getAllName(SessionContext ctx)Generated method - Getter of theDiscount.nameattribute.java.lang.StringgetCode()Generated method - Getter of theDiscount.codeattribute.java.lang.StringgetCode(SessionContext ctx)Generated method - Getter of theDiscount.codeattribute.CurrencygetCurrency()Generated method - Getter of theDiscount.currencyattribute.CurrencygetCurrency(SessionContext ctx)Generated method - Getter of theDiscount.currencyattribute.protected java.util.Map<java.lang.String,Item.AttributeMode>getDefaultAttributeModes()java.lang.StringgetDiscountString()Generated method - Getter of theDiscount.discountStringattribute.abstract java.lang.StringgetDiscountString(SessionContext ctx)Generated method - Getter of theDiscount.discountStringattribute.java.lang.StringgetName()Generated method - Getter of theDiscount.nameattribute.java.lang.StringgetName(SessionContext ctx)Generated method - Getter of theDiscount.nameattribute.java.util.Collection<AbstractOrder>getOrders()Generated method - Getter of theDiscount.ordersattribute.java.util.Collection<AbstractOrder>getOrders(SessionContext ctx)Generated method - Getter of theDiscount.ordersattribute.longgetOrdersCount()longgetOrdersCount(SessionContext ctx)java.lang.IntegergetPriority()Generated method - Getter of theDiscount.priorityattribute.java.lang.IntegergetPriority(SessionContext ctx)Generated method - Getter of theDiscount.priorityattribute.intgetPriorityAsPrimitive()Generated method - Getter of theDiscount.priorityattribute.intgetPriorityAsPrimitive(SessionContext ctx)Generated method - Getter of theDiscount.priorityattribute.java.lang.DoublegetValue()Generated method - Getter of theDiscount.valueattribute.java.lang.DoublegetValue(SessionContext ctx)Generated method - Getter of theDiscount.valueattribute.doublegetValueAsPrimitive()Generated method - Getter of theDiscount.valueattribute.doublegetValueAsPrimitive(SessionContext ctx)Generated method - Getter of theDiscount.valueattribute.java.lang.BooleanisAbsolute()Generated method - Getter of theDiscount.absoluteattribute.abstract java.lang.BooleanisAbsolute(SessionContext ctx)Generated method - Getter of theDiscount.absoluteattribute.booleanisAbsoluteAsPrimitive()Generated method - Getter of theDiscount.absoluteattribute.booleanisAbsoluteAsPrimitive(SessionContext ctx)Generated method - Getter of theDiscount.absoluteattribute.java.lang.BooleanisGlobal()Generated method - Getter of theDiscount.globalattribute.java.lang.BooleanisGlobal(SessionContext ctx)Generated method - Getter of theDiscount.globalattribute.booleanisGlobalAsPrimitive()Generated method - Getter of theDiscount.globalattribute.booleanisGlobalAsPrimitive(SessionContext ctx)Generated method - Getter of theDiscount.globalattribute.booleanisMarkModifiedDisabled(Item referencedItem)voidremoveFromOrders(AbstractOrder value)Generated method - Removesvaluefrom orders.voidremoveFromOrders(SessionContext ctx, AbstractOrder value)Generated method - Removesvaluefrom orders.voidsetAllName(SessionContext ctx, java.util.Map<Language,java.lang.String> value)Generated method - Setter of theDiscount.nameattribute.voidsetAllName(java.util.Map<Language,java.lang.String> value)Generated method - Setter of theDiscount.nameattribute.voidsetCode(SessionContext ctx, java.lang.String value)Generated method - Setter of theDiscount.codeattribute.voidsetCode(java.lang.String value)Generated method - Setter of theDiscount.codeattribute.voidsetCurrency(Currency value)Generated method - Setter of theDiscount.currencyattribute.voidsetCurrency(SessionContext ctx, Currency value)Generated method - Setter of theDiscount.currencyattribute.voidsetGlobal(boolean value)Generated method - Setter of theDiscount.globalattribute.voidsetGlobal(SessionContext ctx, boolean value)Generated method - Setter of theDiscount.globalattribute.voidsetGlobal(SessionContext ctx, java.lang.Boolean value)Generated method - Setter of theDiscount.globalattribute.voidsetGlobal(java.lang.Boolean value)Generated method - Setter of theDiscount.globalattribute.voidsetName(SessionContext ctx, java.lang.String value)Generated method - Setter of theDiscount.nameattribute.voidsetName(java.lang.String value)Generated method - Setter of theDiscount.nameattribute.voidsetOrders(SessionContext ctx, java.util.Collection<AbstractOrder> value)Generated method - Setter of theDiscount.ordersattribute.voidsetOrders(java.util.Collection<AbstractOrder> value)Generated method - Setter of theDiscount.ordersattribute.voidsetPriority(int value)Generated method - Setter of theDiscount.priorityattribute.voidsetPriority(SessionContext ctx, int value)Generated method - Setter of theDiscount.priorityattribute.voidsetPriority(SessionContext ctx, java.lang.Integer value)Generated method - Setter of theDiscount.priorityattribute.voidsetPriority(java.lang.Integer value)Generated method - Setter of theDiscount.priorityattribute.voidsetValue(double value)Generated method - Setter of theDiscount.valueattribute.voidsetValue(SessionContext ctx, double value)Generated method - Setter of theDiscount.valueattribute.voidsetValue(SessionContext ctx, java.lang.Double value)Generated method - Setter of theDiscount.valueattribute.voidsetValue(java.lang.Double value)Generated method - Setter of theDiscount.valueattribute.-
Methods inherited from class de.hybris.platform.jalo.GenericItem
createItem, 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, 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
-
ABSOLUTE
public static final java.lang.String ABSOLUTE
Qualifier of theDiscount.absoluteattribute- See Also:
- Constant Field Values
-
CODE
public static final java.lang.String CODE
Qualifier of theDiscount.codeattribute- See Also:
- Constant Field Values
-
CURRENCY
public static final java.lang.String CURRENCY
Qualifier of theDiscount.currencyattribute- See Also:
- Constant Field Values
-
GLOBAL
public static final java.lang.String GLOBAL
Qualifier of theDiscount.globalattribute- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Qualifier of theDiscount.nameattribute- See Also:
- Constant Field Values
-
PRIORITY
public static final java.lang.String PRIORITY
Qualifier of theDiscount.priorityattribute- See Also:
- Constant Field Values
-
VALUE
public static final java.lang.String VALUE
Qualifier of theDiscount.valueattribute- See Also:
- Constant Field Values
-
DISCOUNTSTRING
public static final java.lang.String DISCOUNTSTRING
Qualifier of theDiscount.discountStringattribute- See Also:
- Constant Field Values
-
ORDERS
public static final java.lang.String ORDERS
Qualifier of theDiscount.ordersattribute- See Also:
- Constant Field Values
-
ORDERDISCOUNTRELATION_SRC_ORDERED
protected static java.lang.String ORDERDISCOUNTRELATION_SRC_ORDERED
Relation ordering override parameter constants for OrderDiscountRelation from ((core))
-
ORDERDISCOUNTRELATION_TGT_ORDERED
protected static java.lang.String ORDERDISCOUNTRELATION_TGT_ORDERED
-
ORDERDISCOUNTRELATION_MARKMODIFIED
protected static java.lang.String ORDERDISCOUNTRELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for OrderDiscountRelation from ((core))
-
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
-
isAbsolute
public abstract java.lang.Boolean isAbsolute(SessionContext ctx)
Generated method - Getter of theDiscount.absoluteattribute.- Returns:
- the absolute
-
isAbsolute
public java.lang.Boolean isAbsolute()
Generated method - Getter of theDiscount.absoluteattribute.- Returns:
- the absolute
-
isAbsoluteAsPrimitive
public boolean isAbsoluteAsPrimitive(SessionContext ctx)
Generated method - Getter of theDiscount.absoluteattribute.- Returns:
- the absolute
-
isAbsoluteAsPrimitive
public boolean isAbsoluteAsPrimitive()
Generated method - Getter of theDiscount.absoluteattribute.- Returns:
- the absolute
-
getCode
public java.lang.String getCode(SessionContext ctx)
Generated method - Getter of theDiscount.codeattribute.- Returns:
- the code
-
getCode
public java.lang.String getCode()
Generated method - Getter of theDiscount.codeattribute.- Returns:
- the code
-
setCode
public void setCode(SessionContext ctx, java.lang.String value) throws ConsistencyCheckException
Generated method - Setter of theDiscount.codeattribute.- Parameters:
value- the code- Throws:
ConsistencyCheckException
-
setCode
public void setCode(java.lang.String value) throws ConsistencyCheckExceptionGenerated method - Setter of theDiscount.codeattribute.- Parameters:
value- the code- Throws:
ConsistencyCheckException
-
getCurrency
public Currency getCurrency(SessionContext ctx)
Generated method - Getter of theDiscount.currencyattribute.- Returns:
- the currency
-
getCurrency
public Currency getCurrency()
Generated method - Getter of theDiscount.currencyattribute.- Returns:
- the currency
-
setCurrency
public void setCurrency(SessionContext ctx, Currency value)
Generated method - Setter of theDiscount.currencyattribute.- Parameters:
value- the currency
-
setCurrency
public void setCurrency(Currency value)
Generated method - Setter of theDiscount.currencyattribute.- Parameters:
value- the currency
-
getDiscountString
public abstract java.lang.String getDiscountString(SessionContext ctx)
Generated method - Getter of theDiscount.discountStringattribute.- Returns:
- the discountString
-
getDiscountString
public java.lang.String getDiscountString()
Generated method - Getter of theDiscount.discountStringattribute.- Returns:
- the discountString
-
isGlobal
public java.lang.Boolean isGlobal(SessionContext ctx)
Generated method - Getter of theDiscount.globalattribute.- Returns:
- the global
-
isGlobal
public java.lang.Boolean isGlobal()
Generated method - Getter of theDiscount.globalattribute.- Returns:
- the global
-
isGlobalAsPrimitive
public boolean isGlobalAsPrimitive(SessionContext ctx)
Generated method - Getter of theDiscount.globalattribute.- Returns:
- the global
-
isGlobalAsPrimitive
public boolean isGlobalAsPrimitive()
Generated method - Getter of theDiscount.globalattribute.- Returns:
- the global
-
setGlobal
public void setGlobal(SessionContext ctx, java.lang.Boolean value)
Generated method - Setter of theDiscount.globalattribute.- Parameters:
value- the global
-
setGlobal
public void setGlobal(java.lang.Boolean value)
Generated method - Setter of theDiscount.globalattribute.- Parameters:
value- the global
-
setGlobal
public void setGlobal(SessionContext ctx, boolean value)
Generated method - Setter of theDiscount.globalattribute.- Parameters:
value- the global
-
setGlobal
public void setGlobal(boolean value)
Generated method - Setter of theDiscount.globalattribute.- Parameters:
value- the global
-
isMarkModifiedDisabled
public boolean isMarkModifiedDisabled(Item referencedItem)
- Overrides:
isMarkModifiedDisabledin classItem
-
getName
public java.lang.String getName(SessionContext ctx)
Generated method - Getter of theDiscount.nameattribute.- Returns:
- the name
-
getName
public java.lang.String getName()
Generated method - Getter of theDiscount.nameattribute.- Returns:
- the name
-
getAllName
public java.util.Map<Language,java.lang.String> getAllName(SessionContext ctx)
Generated method - Getter of theDiscount.nameattribute.- Returns:
- the localized name
-
getAllName
public java.util.Map<Language,java.lang.String> getAllName()
Generated method - Getter of theDiscount.nameattribute.- Returns:
- the localized name
-
setName
public void setName(SessionContext ctx, java.lang.String value)
Generated method - Setter of theDiscount.nameattribute.- Parameters:
value- the name
-
setName
public void setName(java.lang.String value)
Generated method - Setter of theDiscount.nameattribute.- Parameters:
value- the name
-
setAllName
public void setAllName(SessionContext ctx, java.util.Map<Language,java.lang.String> value)
Generated method - Setter of theDiscount.nameattribute.- Parameters:
value- the name
-
setAllName
public void setAllName(java.util.Map<Language,java.lang.String> value)
Generated method - Setter of theDiscount.nameattribute.- Parameters:
value- the name
-
getOrders
public java.util.Collection<AbstractOrder> getOrders(SessionContext ctx)
Generated method - Getter of theDiscount.ordersattribute.- Returns:
- the orders
-
getOrders
public java.util.Collection<AbstractOrder> getOrders()
Generated method - Getter of theDiscount.ordersattribute.- Returns:
- the orders
-
getOrdersCount
public long getOrdersCount(SessionContext ctx)
-
getOrdersCount
public long getOrdersCount()
-
setOrders
public void setOrders(SessionContext ctx, java.util.Collection<AbstractOrder> value)
Generated method - Setter of theDiscount.ordersattribute.- Parameters:
value- the orders
-
setOrders
public void setOrders(java.util.Collection<AbstractOrder> value)
Generated method - Setter of theDiscount.ordersattribute.- Parameters:
value- the orders
-
addToOrders
public void addToOrders(SessionContext ctx, AbstractOrder value)
Generated method - Addsvalueto orders.- Parameters:
value- the item to add to orders
-
addToOrders
public void addToOrders(AbstractOrder value)
Generated method - Addsvalueto orders.- Parameters:
value- the item to add to orders
-
removeFromOrders
public void removeFromOrders(SessionContext ctx, AbstractOrder value)
Generated method - Removesvaluefrom orders.- Parameters:
value- the item to remove from orders
-
removeFromOrders
public void removeFromOrders(AbstractOrder value)
Generated method - Removesvaluefrom orders.- Parameters:
value- the item to remove from orders
-
getPriority
public java.lang.Integer getPriority(SessionContext ctx)
Generated method - Getter of theDiscount.priorityattribute.- Returns:
- the priority
-
getPriority
public java.lang.Integer getPriority()
Generated method - Getter of theDiscount.priorityattribute.- Returns:
- the priority
-
getPriorityAsPrimitive
public int getPriorityAsPrimitive(SessionContext ctx)
Generated method - Getter of theDiscount.priorityattribute.- Returns:
- the priority
-
getPriorityAsPrimitive
public int getPriorityAsPrimitive()
Generated method - Getter of theDiscount.priorityattribute.- Returns:
- the priority
-
setPriority
public void setPriority(SessionContext ctx, java.lang.Integer value)
Generated method - Setter of theDiscount.priorityattribute.- Parameters:
value- the priority
-
setPriority
public void setPriority(java.lang.Integer value)
Generated method - Setter of theDiscount.priorityattribute.- Parameters:
value- the priority
-
setPriority
public void setPriority(SessionContext ctx, int value)
Generated method - Setter of theDiscount.priorityattribute.- Parameters:
value- the priority
-
setPriority
public void setPriority(int value)
Generated method - Setter of theDiscount.priorityattribute.- Parameters:
value- the priority
-
getValue
public java.lang.Double getValue(SessionContext ctx)
Generated method - Getter of theDiscount.valueattribute.- Returns:
- the value
-
getValue
public java.lang.Double getValue()
Generated method - Getter of theDiscount.valueattribute.- Returns:
- the value
-
getValueAsPrimitive
public double getValueAsPrimitive(SessionContext ctx)
Generated method - Getter of theDiscount.valueattribute.- Returns:
- the value
-
getValueAsPrimitive
public double getValueAsPrimitive()
Generated method - Getter of theDiscount.valueattribute.- Returns:
- the value
-
setValue
public void setValue(SessionContext ctx, java.lang.Double value)
Generated method - Setter of theDiscount.valueattribute.- Parameters:
value- the value
-
setValue
public void setValue(java.lang.Double value)
Generated method - Setter of theDiscount.valueattribute.- Parameters:
value- the value
-
setValue
public void setValue(SessionContext ctx, double value)
Generated method - Setter of theDiscount.valueattribute.- Parameters:
value- the value
-
setValue
public void setValue(double value)
Generated method - Setter of theDiscount.valueattribute.- Parameters:
value- the value
-
-