Package de.hybris.platform.jalo.order
Class Order
- java.lang.Object
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
- Direct Known Subclasses:
GeneratedReturnOrder
,TestOrder
public class Order extends GeneratedOrder
The concrete order class of the hybris Platform. These objects are stored and managed by
OrderManager
.This class also defined search context parameter for
OrderManager.searchOrders(de.hybris.platform.jalo.SearchContext)
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.order.AbstractOrder
AbstractOrder.DELIVERY_STATUS, AbstractOrder.EXPORT_STATUS, AbstractOrder.ORDER_STATUS, AbstractOrder.PAYMENT_STATUS
-
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 protected static java.util.Map<java.lang.String,Item.AttributeMode>
DEFAULT_INITIAL_ATTRIBUTES
static java.lang.String
END_DATE
de.hybris.platform.jalo.SearchContext parameter forOrderManager.searchOrders(de.hybris.platform.jalo.SearchContext)
.static java.lang.String
START_DATE
de.hybris.platform.jalo.SearchContext parameter forOrderManager.searchOrders(de.hybris.platform.jalo.SearchContext)
.-
Fields inherited from class de.hybris.platform.jalo.order.GeneratedOrder
ENTRIESHANDLER, USERHANDLER
-
Fields inherited from class de.hybris.platform.jalo.order.AbstractOrder
APPEND_AS_LAST, CFG_TAX_FREE_ENTRIES_SUPPORT, DELIVERY_ADDRESS, DELIVERY_COST, DELIVERY_MODE, DELIVERY_STATUS, DELIVERY_STATUS_TYPE, EXPORT_STATUS, EXPORT_STATUS_TYPE, GLOBAL_DISCOUNT_VALUES, ORDER_DISCOUNT_RELATION_NAME, ORDER_STATUS_TYPE, PAYMENT_ADDRESS, PAYMENT_COST, PAYMENT_INFO, PAYMENT_MODE, PAYMENT_STATUS, PAYMENT_STATUS_TYPE, STATUS_INFO, TOTAL, TOTAL_DISCOUNTS, TOTAL_TAX, TOTAL_TAX_VALUES
-
Fields inherited from class de.hybris.platform.jalo.order.GeneratedAbstractOrder
CALCULATED, CODE, CURRENCY, DATE, DELIVERYADDRESS, DELIVERYCOST, DELIVERYMODE, DELIVERYSTATUS, DESCRIPTION, DISCOUNTS, DISCOUNTSINCLUDEDELIVERYCOST, DISCOUNTSINCLUDEPAYMENTCOST, ENTRIES, ENTRYGROUPS, EXPIRATIONTIME, EXPORTSTATUS, GLOBALDISCOUNTVALUESINTERNAL, NAME, NET, ORDERDISCOUNTRELATION_MARKMODIFIED, ORDERDISCOUNTRELATION_SRC_ORDERED, ORDERDISCOUNTRELATION_TGT_ORDERED, PAYMENTADDRESS, PAYMENTCOST, PAYMENTINFO, PAYMENTMODE, PAYMENTSTATUS, STATUS, STATUSINFO, SUBTOTAL, TOTALDISCOUNTS, TOTALPRICE, TOTALTAX, TOTALTAXVALUESINTERNAL, USER
-
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 Order()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
changeDeliveryAddress(SessionContext ctx, Address address, Address oldOne)
protected void
changePaymentAddress(SessionContext ctx, Address address, Address oldOne)
protected void
changePaymentInfo(SessionContext ctx, PaymentInfo info, PaymentInfo oldOne)
protected Address
copyAddressIfNecessary(SessionContext ctx, Address original)
protected PaymentInfo
copyPaymentInfoIfNecessary(SessionContext ctx, PaymentInfo original)
protected Item
createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.protected OrderEntry
createNewEntry(SessionContext ctx, ComposedType entryType, Product product, long quantity, Unit unit, int position)
protected java.lang.String
getAbstractOrderEntryTypeCode()
protected java.util.Map<java.lang.String,Item.AttributeMode>
getDefaultAttributeModes()
void
remove(SessionContext ctx)
Removes this item.protected void
removeOldCopyAddress(SessionContext ctx, Address oldOne)
protected void
removeOldCopyPaymentInfo(SessionContext ctx, PaymentInfo oldOne)
void
setDeliveryAddress(SessionContext ctx, Address address)
Contrary toAbstractOrder.setDeliveryAddress(SessionContext, Address)
this method copies the given address and assigns the copied address as delivery address!void
setDeliveryAddress(Address adr)
Contrary toAbstractOrder.setDeliveryAddress(Address)
this method copies the given address and assigns the copied address as delivery address!void
setDeliveryAddressNoCopy(SessionContext ctx, Address address)
Directly assigns the given address as delivery address without copying it.void
setDeliveryAddressNoCopy(Address address)
Directly assigns the given address as delivery address without copying it.void
setPaymentAddress(SessionContext ctx, Address address)
Contrary toAbstractOrder.setPaymentAddress(Address)
this method copies the given address and assigns the copied address as payment address!void
setPaymentAddress(Address adr)
Contrary toAbstractOrder.setPaymentAddress(Address)
this method copies the given address and assigns the copied address as payment address!void
setPaymentAddressNoCopy(SessionContext ctx, Address address)
Directly assigns the given address as payment address without copying it.void
setPaymentAddressNoCopy(Address address)
Directly assigns the given address as payment address without copying it.void
setPaymentInfo(PaymentInfo info)
Contrary toGeneratedAbstractOrder.setPaymentInfo(PaymentInfo)
this method copies the given payment info and assigns the copy as info item!void
setPaymentInfo(SessionContext ctx, PaymentInfo info)
Contrary toGeneratedAbstractOrder.setPaymentInfo(SessionContext, PaymentInfo)
this method copies the given payment info and assigns the copy as info item!void
setPaymentInfoNoCopy(PaymentInfo info)
Directly assigns the given payment info without copying it.void
setPaymentInfoNoCopy(SessionContext ctx, PaymentInfo info)
Directly assigns the given payment info without copying it.-
Methods inherited from class de.hybris.platform.jalo.order.GeneratedOrder
addToEntries, addToEntries, getEntries, getEntries, removeFromEntries, removeFromEntries, setEntries, setEntries
-
Methods inherited from class de.hybris.platform.jalo.order.AbstractOrder
addAbsoluteEntryTaxValue, addAllGlobalDiscountValues, addAllGlobalDiscountValues, addAllTotalTaxValues, addAllTotalTaxValues, addDiscount, addGlobalDiscountValue, addGlobalDiscountValue, addNewEntry, addNewEntry, addNewEntry, addNewEntry, addRelativeEntryTaxValue, addTotalTaxValue, addTotalTaxValue, calculate, calculate, calculateAbsoluteTotalTaxValue, calculateDiscountValues, calculateEntries, calculateSubtotal, calculateTotals, calculateTotals, calculateTotalTaxValues, convertDiscountValues, createEntryInformation, createNewDeliveryAddress, createNewDeliveryAddress, createNewEntryNumber, createNewPaymentAddress, createNewPaymentAddress, discountsIncludeDeliveryCosts, discountsIncludePaymentCosts, doSetDeliveryAddress, doSetPaymentAddress, findDeliveryCosts, findGlobalDiscounts, findPaymentCosts, getAllEntries, getAttributeValue, getCustomEntryType, getDate, getDeliveryCosts, getDeliveryCosts, getEntries, getEntriesByProduct, getEntry, getGlobalDiscountValues, getGlobalDiscountValues, getNewEntryNumberForAppending, getNextEntryNumber, getPaymentCosts, getPaymentCosts, getTotal, getTotal, getTotalDiscounts, getTotalTax, getTotalTaxValues, getTotalTaxValues, isCalculated, isCalculated, isNet, notifyDiscountsAboutCalculation, notifyDiscountsAboutRemoval, recalculate, recalculate, recalculateEntries, removeAllEntries, removeAllGlobalDiscountValues, removeAllGlobalDiscountValues, removeAllTotalTaxValues, removeAllTotalTaxValues, removeDiscount, removeEntries, removeEntry, removeGlobalDiscountValue, removeGlobalDiscountValue, removeTotalTaxValue, removeTotalTaxValue, resetAdditionalCosts, resetAllValues, setAllEntries, setChanged, setCode, setCode, setComposedType, setCurrency, setCurrency, setDate, setDate, setDeliveryCost, setDeliveryCosts, setDeliveryCosts, setDeliveryMode, setDeliveryMode, setDeliveryStatus, setDeliveryStatus, setDiscountsIncludeDeliveryCost, setDiscountsIncludeDeliveryCosts, setDiscountsIncludePaymentCost, setDiscountsIncludePaymentCosts, setGlobalDiscountValues, setGlobalDiscountValues, setNet, setNet, setPaymentCost, setPaymentCosts, setPaymentCosts, setPaymentMode, setPaymentMode, setPaymentStatus, setPaymentStatus, setStatus, setStatus, setTotal, setTotal, setTotalTaxValues, setTotalTaxValues, setUser, setUser, shuffleEntriesOnInsertNew, tryToFindFallbackLanguage
-
Methods inherited from class de.hybris.platform.jalo.order.GeneratedAbstractOrder
addToDiscounts, addToDiscounts, addToEntries, addToEntries, getCode, getCode, getCurrency, getCurrency, getDate, getDeliveryAddress, getDeliveryAddress, getDeliveryCost, getDeliveryCost, getDeliveryCostAsPrimitive, getDeliveryCostAsPrimitive, getDeliveryMode, getDeliveryMode, getDeliveryStatus, getDeliveryStatus, getDescription, getDescription, getDiscounts, getDiscounts, getDiscountsCount, getDiscountsCount, getEntryGroups, getEntryGroups, getExpirationTime, getExpirationTime, getExportStatus, getExportStatus, getGlobalDiscountValuesInternal, getGlobalDiscountValuesInternal, getName, getName, getPaymentAddress, getPaymentAddress, getPaymentCost, getPaymentCost, getPaymentCostAsPrimitive, getPaymentCostAsPrimitive, getPaymentInfo, getPaymentInfo, getPaymentMode, getPaymentMode, getPaymentStatus, getPaymentStatus, getStatus, getStatus, getStatusInfo, getStatusInfo, getSubtotal, getSubtotal, getSubtotalAsPrimitive, getSubtotalAsPrimitive, getTotalDiscounts, getTotalDiscountsAsPrimitive, getTotalDiscountsAsPrimitive, getTotalPrice, getTotalPrice, getTotalPriceAsPrimitive, getTotalPriceAsPrimitive, getTotalTax, getTotalTaxAsPrimitive, getTotalTaxAsPrimitive, getTotalTaxValuesInternal, getTotalTaxValuesInternal, getUser, getUser, isCalculatedAsPrimitive, isCalculatedAsPrimitive, isDiscountsIncludeDeliveryCost, isDiscountsIncludeDeliveryCost, isDiscountsIncludeDeliveryCostAsPrimitive, isDiscountsIncludeDeliveryCostAsPrimitive, isDiscountsIncludePaymentCost, isDiscountsIncludePaymentCost, isDiscountsIncludePaymentCostAsPrimitive, isDiscountsIncludePaymentCostAsPrimitive, isMarkModifiedDisabled, isNet, isNetAsPrimitive, isNetAsPrimitive, removeFromDiscounts, removeFromDiscounts, removeFromEntries, removeFromEntries, setCalculated, setCalculated, setCalculated, setCalculated, setDeliveryCost, setDeliveryCost, setDeliveryCost, setDescription, setDescription, setDiscounts, setDiscounts, setDiscountsIncludeDeliveryCost, setDiscountsIncludeDeliveryCost, setDiscountsIncludeDeliveryCost, setDiscountsIncludePaymentCost, setDiscountsIncludePaymentCost, setDiscountsIncludePaymentCost, setEntryGroups, setEntryGroups, setExpirationTime, setExpirationTime, setExportStatus, setExportStatus, setGlobalDiscountValuesInternal, setGlobalDiscountValuesInternal, setName, setName, setNet, setNet, setPaymentCost, setPaymentCost, setPaymentCost, setStatusInfo, setStatusInfo, setSubtotal, setSubtotal, setSubtotal, setSubtotal, setTotalDiscounts, setTotalDiscounts, setTotalDiscounts, setTotalDiscounts, setTotalPrice, setTotalPrice, setTotalPrice, setTotalPrice, setTotalTax, setTotalTax, setTotalTax, setTotalTax, setTotalTaxValuesInternal, setTotalTaxValuesInternal
-
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, 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, 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
-
DEFAULT_INITIAL_ATTRIBUTES
protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
-
START_DATE
public static final java.lang.String START_DATE
de.hybris.platform.jalo.SearchContext parameter forOrderManager.searchOrders(de.hybris.platform.jalo.SearchContext)
. Describes the start date of daterange to search orders within .Do not use this constant for searching via FlexibleSearch since it does not describe an order attribute!
- See Also:
- Constant Field Values
-
END_DATE
public static final java.lang.String END_DATE
de.hybris.platform.jalo.SearchContext parameter forOrderManager.searchOrders(de.hybris.platform.jalo.SearchContext)
. Describes the end date of daterange to search orders within .Do not use this constant for searching via FlexibleSearch since it does not describe an order attribute!
- See Also:
- Constant Field Values
-
-
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 classGeneratedOrder
- 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
-
getDefaultAttributeModes
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
- Overrides:
getDefaultAttributeModes
in classGeneratedOrder
-
getAbstractOrderEntryTypeCode
protected java.lang.String getAbstractOrderEntryTypeCode()
- Specified by:
getAbstractOrderEntryTypeCode
in classAbstractOrder
-
setPaymentAddress
public void setPaymentAddress(Address adr)
Contrary toAbstractOrder.setPaymentAddress(Address)
this method copies the given address and assigns the copied address as payment address!- Overrides:
setPaymentAddress
in classAbstractOrder
- Parameters:
adr
- the address to create a copy of which is assigned as payment address
-
setPaymentAddressNoCopy
public void setPaymentAddressNoCopy(Address address)
Directly assigns the given address as payment address without copying it. Please be aware that this may the address data cannot be protected against changes since it may still belong to the user and subject to his modifications.- Parameters:
address
- the address to assign
-
setPaymentAddress
public void setPaymentAddress(SessionContext ctx, Address address)
Contrary toAbstractOrder.setPaymentAddress(Address)
this method copies the given address and assigns the copied address as payment address!- Overrides:
setPaymentAddress
in classAbstractOrder
- Parameters:
ctx
- the session contextaddress
- the address to create a copy of which is assigned as payment address
-
changePaymentAddress
protected void changePaymentAddress(SessionContext ctx, Address address, Address oldOne)
-
removeOldCopyAddress
protected void removeOldCopyAddress(SessionContext ctx, Address oldOne)
-
copyAddressIfNecessary
protected Address copyAddressIfNecessary(SessionContext ctx, Address original)
-
removeOldCopyPaymentInfo
protected void removeOldCopyPaymentInfo(SessionContext ctx, PaymentInfo oldOne)
-
copyPaymentInfoIfNecessary
protected PaymentInfo copyPaymentInfoIfNecessary(SessionContext ctx, PaymentInfo original)
-
setPaymentAddressNoCopy
public void setPaymentAddressNoCopy(SessionContext ctx, Address address)
Directly assigns the given address as payment address without copying it. Please be aware that this may the address data cannot be protected against changes since it may still belong to the user and subject to his modifications.- Parameters:
ctx
- the session contextaddress
- the address to assign
-
setDeliveryAddress
public void setDeliveryAddress(Address adr)
Contrary toAbstractOrder.setDeliveryAddress(Address)
this method copies the given address and assigns the copied address as delivery address!- Overrides:
setDeliveryAddress
in classAbstractOrder
- Parameters:
adr
- the address to create a copy of which is assigned as delivery address
-
setDeliveryAddressNoCopy
public void setDeliveryAddressNoCopy(Address address)
Directly assigns the given address as delivery address without copying it. Please be aware that this may the address data cannot be protected against changes since it may still belong to the user and subject to his modifications.- Parameters:
address
- the address to assign
-
setDeliveryAddress
public void setDeliveryAddress(SessionContext ctx, Address address)
Contrary toAbstractOrder.setDeliveryAddress(SessionContext, Address)
this method copies the given address and assigns the copied address as delivery address!- Overrides:
setDeliveryAddress
in classAbstractOrder
- Parameters:
ctx
- the session contextaddress
- the address to create a copy of which is assigned as delivery address
-
changeDeliveryAddress
protected void changeDeliveryAddress(SessionContext ctx, Address address, Address oldOne)
-
setDeliveryAddressNoCopy
public void setDeliveryAddressNoCopy(SessionContext ctx, Address address)
Directly assigns the given address as delivery address without copying it. Please be aware that this may the address data cannot be protected against changes since it may still belong to the user and subject to his modifications.- Parameters:
ctx
- the session contextaddress
- the address to assign
-
setPaymentInfo
public void setPaymentInfo(PaymentInfo info)
Contrary toGeneratedAbstractOrder.setPaymentInfo(PaymentInfo)
this method copies the given payment info and assigns the copy as info item!- Overrides:
setPaymentInfo
in classGeneratedAbstractOrder
- Parameters:
info
- the payment info to create a copy of which is assigned as info
-
setPaymentInfoNoCopy
public void setPaymentInfoNoCopy(PaymentInfo info)
Directly assigns the given payment info without copying it. Please be aware that this may the info data cannot be protected against changes since it may still belong to the user and subject to his modifications.- Parameters:
info
- the payment info to assign
-
setPaymentInfo
public void setPaymentInfo(SessionContext ctx, PaymentInfo info)
Contrary toGeneratedAbstractOrder.setPaymentInfo(SessionContext, PaymentInfo)
this method copies the given payment info and assigns the copy as info item!- Overrides:
setPaymentInfo
in classGeneratedAbstractOrder
- Parameters:
ctx
- the session contextinfo
- the payment info to create a copy of which is assigned as info
-
changePaymentInfo
protected void changePaymentInfo(SessionContext ctx, PaymentInfo info, PaymentInfo oldOne)
-
setPaymentInfoNoCopy
public void setPaymentInfoNoCopy(SessionContext ctx, PaymentInfo info)
Directly assigns the given payment info without copying it. Please be aware that this may the info data cannot be protected against changes since it may still belong to the user and subject to his modifications.- Parameters:
ctx
- the session contextinfo
- the payment info to assign
-
createNewEntry
protected OrderEntry createNewEntry(SessionContext ctx, ComposedType entryType, Product product, long quantity, Unit unit, int position)
- Specified by:
createNewEntry
in classAbstractOrder
-
remove
public void remove(SessionContext ctx) throws ConsistencyCheckException
Description copied from class:Item
Removes this item.This method is using the following attributes of the given SessionContext:
CacheUsage Language StagingMethod n/a (this is a setter method) no, language doesn't matter for removal yes if called on a StageableItem, no otherwise
- Overrides:
remove
in classAbstractOrder
- Parameters:
ctx
- A SessionContext object- Throws:
ConsistencyCheckException
- if this item could not be removed for some reason
-
-