Class InMemoryCartEntry
- 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.GeneratedAbstractOrderEntry
-
- de.hybris.platform.jalo.order.AbstractOrderEntry
-
- de.hybris.platform.jalo.order.GeneratedCartEntry
-
- de.hybris.platform.jalo.order.CartEntry
-
- de.hybris.platform.servicelayer.internal.jalo.order.GeneratedInMemoryCartEntry
-
- de.hybris.platform.servicelayer.internal.jalo.order.InMemoryCartEntry
-
- All Implemented Interfaces:
JaloOnlyItem
,java.io.Serializable
,java.lang.Comparable
public class InMemoryCartEntry extends GeneratedInMemoryCartEntry implements JaloOnlyItem
Specific in-memoryCartEntry
implementation required byInMemoryCart
. This item is not backed by database and exists only inside its owning cart. Apart from that it can be used as normal cart entry.- See Also:
InMemoryCart
, 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 inherited from class de.hybris.platform.servicelayer.internal.jalo.order.GeneratedInMemoryCartEntry
DEFAULT_INITIAL_ATTRIBUTES, ORDERHANDLER
-
Fields inherited from class de.hybris.platform.jalo.order.AbstractOrderEntry
DISCOUNTVALUES, ENTRY_NUMBER, TAXVALUES
-
Fields inherited from class de.hybris.platform.jalo.order.GeneratedAbstractOrderEntry
BASEPRICE, CALCULATED, DISCOUNTVALUESINTERNAL, ENTRYGROUPNUMBERS, ENTRYNUMBER, GIVEAWAY, INFO, ORDER, PRODUCT, QUANTITY, REJECTED, TAXVALUESINTERNAL, TOTALPRICE, UNIT
-
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 InMemoryCartEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Item
createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.java.lang.Object
doGetAttribute(SessionContext ctx, java.lang.String attrQualifier)
Custom attribute access as part ofJaloOnlyItem
contract.void
doSetAttribute(SessionContext ctx, java.lang.String attrQualifier, java.lang.Object value)
Custom attribute access as part ofJaloOnlyItem
contract.java.lang.Double
getBasePrice(SessionContext ctx)
Overwritten to provide in-memory implementation.java.lang.String
getDiscountValuesInternal(SessionContext ctx)
Generated method - Getter of theAbstractOrderEntry.discountValuesInternal
attribute.java.lang.Integer
getEntryNumber()
Overwritten to provide in-memory implementation.java.lang.String
getInfo(SessionContext ctx)
Overwritten to provide in-memory implementation.protected Item.ItemAttributeMap
getNonInitialAttributes(SessionContext ctx, Item.ItemAttributeMap allAttributes)
The default implementation ofGenericItem.getNonInitialAttributes(SessionContext, Item.ItemAttributeMap)
assures that the 'registered initial' propertiesGenericItem.getInitialProperties(JaloSession, Item.ItemAttributeMap)
will be removed from the 'non initial map'.AbstractOrder
getOrder(SessionContext ctx)
Overwritten to provide in-memory implementation.Product
getProduct(SessionContext ctx)
Overwritten to provide in-memory implementation.java.lang.Long
getQuantity(SessionContext ctx)
Overwritten to provide in-memory implementation.java.lang.String
getTaxValuesInternal(SessionContext ctx)
Generated method - Getter of theAbstractOrderEntry.taxValuesInternal
attribute.java.lang.Double
getTotalPrice(SessionContext ctx)
Overwritten to provide in-memory implementation.Unit
getUnit(SessionContext ctx)
Overwritten to provide in-memory implementation.java.lang.Boolean
isCalculated(SessionContext ctx)
Overwritten to provide in-memory implementation.java.lang.Boolean
isGiveAway(SessionContext ctx)
Overwritten to provide in-memory implementation.java.lang.Boolean
isRejected(SessionContext ctx)
Overwritten to provide in-memory implementation.ComposedType
provideComposedType()
Provides composed as part ofJaloOnlyItem
contract.java.util.Date
provideCreationTime()
Provides creation time as part ofJaloOnlyItem
contract.java.util.Date
provideModificationTime()
Provides modification time as part ofJaloOnlyItem
contract.PK
providePK()
Provides PK part ofJaloOnlyItem
contract.void
removeJaloOnly()
Custom removal logic as part ofJaloOnlyItem
contract.void
setBasePrice(SessionContext ctx, double price)
Overwritten to provide in-memory implementation.void
setCalculated(SessionContext ctx, boolean calculated)
Overwritten to provide in-memory implementation.void
setDiscountValuesInternal(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractOrderEntry.discountValuesInternal
attribute.protected void
setEntryNumberDirect(int nr)
Changes entry number directly.void
setGiveAway(SessionContext ctx, boolean giveaway)
Overwritten to provide in-memory implementation.void
setInfo(SessionContext ctx, java.lang.String info)
Overwritten to provide in-memory implementation.void
setModificationTime(java.util.Date d)
Overwritten to provide in-memory implementation.void
setOrder(SessionContext ctx, AbstractOrder order)
Generated method - Setter of theAbstractOrderEntry.order
attribute.void
setProduct(SessionContext ctx, Product p)
Overwritten to provide in-memory implementation.void
setQuantity(SessionContext ctx, long qtd)
Overwritten to provide in-memory implementation.void
setRejected(SessionContext ctx, boolean rejected)
Overwritten to provide in-memory implementation.void
setTaxValuesInternal(SessionContext ctx, java.lang.String value)
Generated method - Setter of theAbstractOrderEntry.taxValuesInternal
attribute.void
setTotalPrice(SessionContext ctx, double price)
Overwritten to provide in-memory implementation.void
setUnit(SessionContext ctx, Unit unit)
Overwritten to provide in-memory implementation.-
Methods inherited from class de.hybris.platform.servicelayer.internal.jalo.order.GeneratedInMemoryCartEntry
getDefaultAttributeModes
-
Methods inherited from class de.hybris.platform.jalo.order.AbstractOrderEntry
addAllDiscountValues, addAllDiscountValues, addAllDisocuntValues, addAllTaxValues, addAllTaxValues, addDiscountValue, addDiscountValue, addTaxValue, addTaxValue, applyDiscounts, calculate, calculateTotals, compareTo, findDiscounts, findPrice, findTaxes, getDiscountValues, getDiscountValues, getTaxValues, getTaxValues, recalculate, remove, removeAllDiscountValues, removeAllDiscountValues, removeAllTaxValues, removeAllTaxValues, removeDiscountValue, removeDiscountValue, removeTaxValue, removeTaxValue, removeWithoutOrderNotification, resetAllValues, setBasePrice, setChanged, setDiscountValues, setDiscountValues, setEntryNumber, setGiveAway, setQuantity, setRejected, setTaxValues, setTaxValues, toString
-
Methods inherited from class de.hybris.platform.jalo.order.GeneratedAbstractOrderEntry
getBasePrice, getBasePriceAsPrimitive, getBasePriceAsPrimitive, getDiscountValuesInternal, getEntryGroupNumbers, getEntryGroupNumbers, getEntryNumber, getEntryNumberAsPrimitive, getEntryNumberAsPrimitive, getInfo, getOrder, getProduct, getQuantity, getQuantityAsPrimitive, getQuantityAsPrimitive, getTaxValuesInternal, getTotalPrice, getTotalPriceAsPrimitive, getTotalPriceAsPrimitive, getUnit, isCalculated, isCalculatedAsPrimitive, isCalculatedAsPrimitive, isGiveAway, isGiveAwayAsPrimitive, isGiveAwayAsPrimitive, isRejected, isRejectedAsPrimitive, isRejectedAsPrimitive, setBasePrice, setBasePrice, setCalculated, setCalculated, setCalculated, setDiscountValuesInternal, setEntryGroupNumbers, setEntryGroupNumbers, setEntryNumber, setEntryNumber, setEntryNumber, setGiveAway, setGiveAway, setInfo, setOrder, setProduct, setQuantity, setQuantity, setRejected, setRejected, setTaxValuesInternal, setTotalPrice, setTotalPrice, setTotalPrice, setUnit
-
Methods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, 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, 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, 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, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Method Detail
-
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 classGeneratedInMemoryCartEntry
- 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
-
getNonInitialAttributes
protected Item.ItemAttributeMap getNonInitialAttributes(SessionContext ctx, Item.ItemAttributeMap allAttributes)
Description copied from class:GenericItem
The default implementation ofGenericItem.getNonInitialAttributes(SessionContext, Item.ItemAttributeMap)
assures that the 'registered initial' propertiesGenericItem.getInitialProperties(JaloSession, Item.ItemAttributeMap)
will be removed from the 'non initial map'.- Overrides:
getNonInitialAttributes
in classGenericItem
- Parameters:
ctx
- session context with language = NULLallAttributes
- aItemAttributeMap
contaning attribute values.- Returns:
- a
ItemAttributeMap
containing all attribute values, which belong to non-initial attributes.
-
provideComposedType
public final ComposedType provideComposedType()
Provides composed as part ofJaloOnlyItem
contract. Never call directly- Specified by:
provideComposedType
in interfaceJaloOnlyItem
- Returns:
- ComposedType of this item
-
provideCreationTime
public final java.util.Date provideCreationTime()
Provides creation time as part ofJaloOnlyItem
contract. Never call directly- Specified by:
provideCreationTime
in interfaceJaloOnlyItem
- Returns:
- creation time date of this item
-
provideModificationTime
public final java.util.Date provideModificationTime()
Provides modification time as part ofJaloOnlyItem
contract. Never call directly- Specified by:
provideModificationTime
in interfaceJaloOnlyItem
- Returns:
- modification time date of this item
-
providePK
public final PK providePK()
Provides PK part ofJaloOnlyItem
contract. Never call directly- Specified by:
providePK
in interfaceJaloOnlyItem
- Returns:
- PK of this item
-
removeJaloOnly
public void removeJaloOnly() throws ConsistencyCheckException
Custom removal logic as part ofJaloOnlyItem
contract. Never call directly- Specified by:
removeJaloOnly
in interfaceJaloOnlyItem
- Throws:
ConsistencyCheckException
- to signal that this item removal failed
-
doGetAttribute
public java.lang.Object doGetAttribute(SessionContext ctx, java.lang.String attrQualifier) throws JaloInvalidParameterException, JaloSecurityException
Custom attribute access as part ofJaloOnlyItem
contract. Never call directly- Specified by:
doGetAttribute
in interfaceJaloOnlyItem
- Parameters:
ctx
- the session contextattrQualifier
- the qualifier of the requested attribute- Returns:
- the attribute value
- Throws:
JaloInvalidParameterException
- in case no value could be read for this attributeJaloSecurityException
-
doSetAttribute
public void doSetAttribute(SessionContext ctx, java.lang.String attrQualifier, java.lang.Object value) throws JaloInvalidParameterException, JaloSecurityException, JaloBusinessException
Custom attribute access as part ofJaloOnlyItem
contract. Never call directly- Specified by:
doSetAttribute
in interfaceJaloOnlyItem
- Parameters:
ctx
- the session contextattrQualifier
- the qualifier of the requested attributevalue
- the new attribute value- Throws:
JaloInvalidParameterException
- in case the value could not be written for this attributeJaloSecurityException
- in case the session user is not allowed to write this attributeJaloBusinessException
- in case any other error occured
-
getOrder
public AbstractOrder getOrder(SessionContext ctx)
Overwritten to provide in-memory implementation. SeeAbstractOrderEntry.getOrder(SessionContext)
for details.- Overrides:
getOrder
in classAbstractOrderEntry
- Parameters:
ctx
- can be used for cached access object may be outdated!- Returns:
- the
AbstractOrder
this abstract order entry is associated to
-
setOrder
public void setOrder(SessionContext ctx, AbstractOrder order)
Description copied from class:GeneratedAbstractOrderEntry
Generated method - Setter of theAbstractOrderEntry.order
attribute.- Overrides:
setOrder
in classAbstractOrderEntry
order
- the order
-
getProduct
public Product getProduct(SessionContext ctx)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.getProduct(SessionContext)
for details.- Overrides:
getProduct
in classGeneratedAbstractOrderEntry
- Returns:
- the product
-
setProduct
public void setProduct(SessionContext ctx, Product p)
Overwritten to provide in-memory implementation. SeeAbstractOrderEntry.setProduct(SessionContext, Product)
for details.- Overrides:
setProduct
in classAbstractOrderEntry
- Parameters:
ctx
- can be used for cached access object may be outdated!p
- the product
-
getQuantity
public java.lang.Long getQuantity(SessionContext ctx)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.getQuantity(SessionContext)
for details.- Overrides:
getQuantity
in classGeneratedAbstractOrderEntry
- Returns:
- the quantity
-
setQuantity
public void setQuantity(SessionContext ctx, long qtd)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.setQuantity(SessionContext, long)
for details.- Overrides:
setQuantity
in classGeneratedAbstractOrderEntry
qtd
- the quantity
-
getUnit
public Unit getUnit(SessionContext ctx)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.getUnit(SessionContext)
for details.- Overrides:
getUnit
in classGeneratedAbstractOrderEntry
- Returns:
- the unit
-
setUnit
public void setUnit(SessionContext ctx, Unit unit)
Overwritten to provide in-memory implementation. SeeAbstractOrderEntry.setUnit(SessionContext, Unit)
for details.- Overrides:
setUnit
in classAbstractOrderEntry
- Parameters:
ctx
- can be used for cached access object may be outdated!unit
- the unit
-
getInfo
public java.lang.String getInfo(SessionContext ctx)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.getInfo(SessionContext)
for details.- Overrides:
getInfo
in classGeneratedAbstractOrderEntry
- Returns:
- the info
-
setInfo
public void setInfo(SessionContext ctx, java.lang.String info)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.setInfo(SessionContext, String)
for details.- Overrides:
setInfo
in classGeneratedAbstractOrderEntry
info
- the info
-
getBasePrice
public java.lang.Double getBasePrice(SessionContext ctx)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.getBasePrice(SessionContext)
for details.- Overrides:
getBasePrice
in classGeneratedAbstractOrderEntry
- Returns:
- the basePrice
-
setBasePrice
public void setBasePrice(SessionContext ctx, double price)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.setBasePrice(SessionContext, double)
for details.- Overrides:
setBasePrice
in classGeneratedAbstractOrderEntry
price
- the basePrice
-
getTotalPrice
public java.lang.Double getTotalPrice(SessionContext ctx)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.getTotalPrice(SessionContext)
for details.- Overrides:
getTotalPrice
in classGeneratedAbstractOrderEntry
- Returns:
- the totalPrice
-
setTotalPrice
public void setTotalPrice(SessionContext ctx, double price)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.setTotalPrice(SessionContext, double)
for details.- Overrides:
setTotalPrice
in classGeneratedAbstractOrderEntry
price
- the totalPrice
-
getTaxValuesInternal
public java.lang.String getTaxValuesInternal(SessionContext ctx)
Description copied from class:GeneratedAbstractOrderEntry
Generated method - Getter of theAbstractOrderEntry.taxValuesInternal
attribute.- Overrides:
getTaxValuesInternal
in classGeneratedAbstractOrderEntry
- Returns:
- the taxValuesInternal
-
setTaxValuesInternal
public void setTaxValuesInternal(SessionContext ctx, java.lang.String value)
Description copied from class:GeneratedAbstractOrderEntry
Generated method - Setter of theAbstractOrderEntry.taxValuesInternal
attribute.- Overrides:
setTaxValuesInternal
in classGeneratedAbstractOrderEntry
value
- the taxValuesInternal
-
getDiscountValuesInternal
public java.lang.String getDiscountValuesInternal(SessionContext ctx)
Description copied from class:GeneratedAbstractOrderEntry
Generated method - Getter of theAbstractOrderEntry.discountValuesInternal
attribute.- Overrides:
getDiscountValuesInternal
in classGeneratedAbstractOrderEntry
- Returns:
- the discountValuesInternal
-
setDiscountValuesInternal
public void setDiscountValuesInternal(SessionContext ctx, java.lang.String value)
Description copied from class:GeneratedAbstractOrderEntry
Generated method - Setter of theAbstractOrderEntry.discountValuesInternal
attribute.- Overrides:
setDiscountValuesInternal
in classGeneratedAbstractOrderEntry
value
- the discountValuesInternal
-
isCalculated
public java.lang.Boolean isCalculated(SessionContext ctx)
Overwritten to provide in-memory implementation. SeeAbstractOrderEntry.isCalculated(SessionContext)
for details.- Overrides:
isCalculated
in classAbstractOrderEntry
- Parameters:
ctx
- can be used for cached access value may be outdated!- Returns:
true
if this entry is calculated
-
setCalculated
public void setCalculated(SessionContext ctx, boolean calculated)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.setCalculated(SessionContext, boolean)
for details.- Overrides:
setCalculated
in classGeneratedAbstractOrderEntry
calculated
- the calculated
-
isGiveAway
public java.lang.Boolean isGiveAway(SessionContext ctx)
Overwritten to provide in-memory implementation. SeeAbstractOrderEntry.isGiveAway(SessionContext)
for details.- Overrides:
isGiveAway
in classAbstractOrderEntry
- Parameters:
ctx
- can be used for cached access value may be outdated!- Returns:
true
if this entry is calculated
-
setGiveAway
public void setGiveAway(SessionContext ctx, boolean giveaway)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.setGiveAway(SessionContext, boolean)
for details.- Overrides:
setGiveAway
in classGeneratedAbstractOrderEntry
giveaway
- the giveAway
-
isRejected
public java.lang.Boolean isRejected(SessionContext ctx)
Overwritten to provide in-memory implementation. SeeAbstractOrderEntry.isRejected(SessionContext)
for details.- Overrides:
isRejected
in classAbstractOrderEntry
- Parameters:
ctx
- can be used for cached access value may be outdated!- Returns:
true
the rejected flag
-
setRejected
public void setRejected(SessionContext ctx, boolean rejected)
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.setRejected(SessionContext, boolean)
for details.- Overrides:
setRejected
in classGeneratedAbstractOrderEntry
rejected
- the rejected
-
getEntryNumber
public java.lang.Integer getEntryNumber()
Overwritten to provide in-memory implementation. SeeGeneratedAbstractOrderEntry.getEntryNumber()
for details.- Overrides:
getEntryNumber
in classGeneratedAbstractOrderEntry
- Returns:
- the entryNumber
-
setEntryNumberDirect
protected void setEntryNumberDirect(int nr)
Description copied from class:AbstractOrderEntry
Changes entry number directly.- Overrides:
setEntryNumberDirect
in classAbstractOrderEntry
- Parameters:
nr
- the new entry number
-
setModificationTime
public void setModificationTime(java.util.Date d)
Overwritten to provide in-memory implementation. SeeItem.setModificationTime(Date)
for details.- Overrides:
setModificationTime
in classItem
-
-