public class InMemoryCart extends GeneratedInMemoryCart implements JaloOnlyItem
Cart. This item is not backed by the database and will therefore not survive
the end of JaloSession. Apart from that it can be used as normal cart including order creation and saved
carts.
There are several options to make JaloSession use this kind of cart:
Change your local.properties like this:
# Default session cart type # Specifies which type of cart is being created on demand by # each JaloSession. Use 'InMemoryCart' if you don't need a # database backed session cart. default.session.cart.type = InMemoryCart
JaloSession js = ...
js.getSessionContext().setAttribute("InMemoryCart");
// or
js.getSessionContext().setAttribute(CoreConstants.TC.INMEMORYCART);
// or even
js.getSessionContext().setAttribute(
TypeManager.getInstance().getComposedType( InMemoryCart.class )
);
InMemoryCart newCart = (InMemoryCart)js.getCart();
Please note: Due to its non-persistent nature this cart usually does not survive the end of its owning
JaloSession! Special care should be taken when using session replication across a cluster: although this cart
is serializable and should therefore be transfered to all other nodes we suggest to verify if updates onto the cart
and its entries are really synchronized. This may depend upon the chose session replication technology.AbstractOrder.DELIVERY_STATUS, AbstractOrder.EXPORT_STATUS, AbstractOrder.ORDER_STATUS, AbstractOrder.PAYMENT_STATUSGenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionDEFAULT_INITIAL_ATTRIBUTES, ENTRIESHANDLEREND_DATE, START_DATESESSIONID, USERHANDLERAPPEND_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_VALUESCALCULATED, CODE, CURRENCY, DATE, DELIVERYADDRESS, DELIVERYCOST, DELIVERYMODE, DELIVERYSTATUS, DESCRIPTION, DISCOUNTS, DISCOUNTSINCLUDEDELIVERYCOST, DISCOUNTSINCLUDEPAYMENTCOST, ENTRIES, 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, USERLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
InMemoryCart() |
| Modifier and Type | Method and Description |
|---|---|
AbstractOrderEntry |
addNewEntry(Product prod,
long qtd,
Unit unit,
int position,
boolean addToPresent)
Overwritten to provide in-memory list of entries.
|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Returns a new wizard instance.
|
InMemoryCartEntry |
createNewEntry(SessionContext ctx,
ComposedType entryType,
Product p,
long amount,
Unit u,
int pos) |
Object |
doGetAttribute(SessionContext ctx,
String attrQualifier)
Custom attribute access as part of
JaloOnlyItem contract. |
void |
doSetAttribute(SessionContext ctx,
String attrQualifier,
Object value)
Custom attribute access as part of
JaloOnlyItem contract. |
protected String |
getAbstractOrderEntryTypeCode() |
List |
getAllEntries()
Deprecated.
|
String |
getCode(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
Currency |
getCurrency(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
Address |
getDeliveryAddress(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
double |
getDeliveryCosts(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
DeliveryMode |
getDeliveryMode(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
EnumerationValue |
getDeliveryStatus(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
Collection |
getEntries(int startIdx,
int endIdx)
Overwritten to provide in-memory list of entries.
|
List |
getEntries(SessionContext ctx)
Generated method - Getter of the
InMemoryCart.entries attribute. |
List |
getEntriesByProduct(Product product)
Overwritten to provide in-memory list of entries.
|
AbstractOrderEntry |
getEntry(int index)
Overwritten to provide in-memory list of entries.
|
String |
getGlobalDiscountValuesInternal(SessionContext ctx)
Generated method - Getter of the
AbstractOrder.globalDiscountValuesInternal attribute. |
protected Item.ItemAttributeMap |
getNonInitialAttributes(SessionContext ctx,
Item.ItemAttributeMap allAttributes)
The default implementation of
GenericItem.getNonInitialAttributes(SessionContext, Item.ItemAttributeMap ) assures
that the 'registered initial' properties GenericItem.getInitialProperties(JaloSession, Item.ItemAttributeMap ) will
be removed from the 'non initial map'. |
Address |
getPaymentAddress(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
double |
getPaymentCosts(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
PaymentInfo |
getPaymentInfo(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
PaymentMode |
getPaymentMode(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
EnumerationValue |
getPaymentStatus(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
EnumerationValue |
getStatus(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
String |
getStatusInfo(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
Double |
getSubtotal(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
double |
getTotal(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
Double |
getTotalDiscounts(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
Double |
getTotalTax(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
String |
getTotalTaxValuesInternal(SessionContext ctx)
Generated method - Getter of the
AbstractOrder.totalTaxValuesInternal attribute. |
User |
getUser(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
Boolean |
isCalculated(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
Boolean |
isDiscountsIncludeDeliveryCost(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
Boolean |
isDiscountsIncludePaymentCost(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
Boolean |
isNet(SessionContext ctx)
Overwritten to provide in-memory implementation.
|
ComposedType |
provideComposedType()
Provides composed as part of
JaloOnlyItem contract. |
Date |
provideCreationTime()
Provides creation time as part of
JaloOnlyItem contract. |
Date |
provideModificationTime()
Provides modification time as part of
JaloOnlyItem contract. |
PK |
providePK()
Provides PK part of
JaloOnlyItem contract. |
void |
removeAllEntries()
Overwritten to provide in-memory list of entries.
|
protected void |
removeEntries(SessionContext ctx,
Set<AbstractOrderEntry> entries) |
void |
removeEntry(AbstractOrderEntry entry)
Overwritten to provide in-memory list of entries.
|
void |
removeJaloOnly()
Custom removal logic as part of
JaloOnlyItem contract. |
protected void |
setAllEntries(SessionContext ctx,
List entries)
Deprecated.
|
void |
setCalculated(SessionContext ctx,
boolean calculated)
Overwritten to provide in-memory implementation.
|
void |
setCode(SessionContext ctx,
String code)
Overwritten to provide in-memory implementation.
|
protected void |
setCreationTime(Date creationTime) |
void |
setCurrency(SessionContext ctx,
Currency curr)
Overwritten to provide in-memory implementation.
|
void |
setDate(SessionContext ctx,
Date date)
Overwritten to provide in-memory implementation.
|
void |
setDeliveryAddress(SessionContext ctx,
Address address)
Overwritten to provide in-memory implementation.
|
void |
setDeliveryCosts(SessionContext ctx,
double deliveryCost)
Overwritten to provide in-memory implementation.
|
void |
setDeliveryMode(SessionContext ctx,
DeliveryMode mode)
Overwritten to provide in-memory implementation.
|
void |
setDeliveryStatus(SessionContext ctx,
EnumerationValue ds)
Overwritten to provide in-memory implementation.
|
void |
setDiscountsIncludeDeliveryCost(SessionContext ctx,
Boolean value)
Overwritten to provide in-memory implementation.
|
void |
setDiscountsIncludePaymentCost(SessionContext ctx,
Boolean value)
Overwritten to provide in-memory implementation.
|
void |
setEntries(SessionContext ctx,
List<AbstractOrderEntry> value)
Generated method - Setter of the
InMemoryCart.entries attribute. |
void |
setGlobalDiscountValuesInternal(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractOrder.globalDiscountValuesInternal attribute. |
void |
setModificationTime(Date d)
Overwritten to provide in-memory implementation.
|
void |
setNet(SessionContext ctx,
boolean net)
Overwritten to provide in-memory implementation.
|
void |
setPaymentAddress(SessionContext ctx,
Address adr)
Overwritten to provide in-memory implementation.
|
void |
setPaymentCosts(SessionContext ctx,
double paymentCost)
Overwritten to provide in-memory implementation.
|
void |
setPaymentInfo(SessionContext ctx,
PaymentInfo info)
Overwritten to provide in-memory implementation.
|
void |
setPaymentMode(SessionContext ctx,
PaymentMode mode)
Overwritten to provide in-memory implementation.
|
void |
setPaymentStatus(SessionContext ctx,
EnumerationValue ps)
Overwritten to provide in-memory implementation.
|
void |
setStatus(SessionContext ctx,
EnumerationValue s)
Overwritten to provide in-memory implementation.
|
void |
setStatusInfo(SessionContext ctx,
String s)
Overwritten to provide in-memory implementation.
|
void |
setSubtotal(SessionContext ctx,
double price)
Overwritten to provide in-memory implementation.
|
void |
setTotal(SessionContext ctx,
double price)
Overwritten to provide in-memory implementation.
|
void |
setTotalDiscounts(SessionContext ctx,
double totalDiscounts)
Overwritten to provide in-memory implementation.
|
void |
setTotalTax(SessionContext ctx,
double taxes)
Overwritten to provide in-memory implementation.
|
void |
setTotalTaxValuesInternal(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractOrder.totalTaxValuesInternal attribute. |
void |
setUser(SessionContext ctx,
User user)
Overwritten to provide in-memory implementation.
|
addToEntries, addToEntries, getDefaultAttributeModes, getEntries, removeFromEntries, removeFromEntries, setEntriesaddToEntries, addToEntries, getSessionId, getSessionId, removeFromEntries, removeFromEntries, setSessionId, setSessionIdaddAbsoluteEntryTaxValue, addAllGlobalDiscountValues, addAllGlobalDiscountValues, addAllTotalTaxValues, addAllTotalTaxValues, addDiscount, addGlobalDiscountValue, addGlobalDiscountValue, 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, getAttributeValue, getCustomEntryType, getDate, getDeliveryCosts, getGlobalDiscountValues, getGlobalDiscountValues, getNewEntryNumberForAppending, getNextEntryNumber, getPaymentCosts, getTotal, getTotalDiscounts, getTotalTax, getTotalTaxValues, getTotalTaxValues, isCalculated, isNet, notifyDiscountsAboutCalculation, notifyDiscountsAboutRemoval, recalculate, recalculate, recalculateEntries, remove, removeAllGlobalDiscountValues, removeAllGlobalDiscountValues, removeAllTotalTaxValues, removeAllTotalTaxValues, removeDiscount, removeGlobalDiscountValue, removeGlobalDiscountValue, removeTotalTaxValue, removeTotalTaxValue, resetAdditionalCosts, resetAllValues, setChanged, setCode, setComposedType, setCurrency, setDate, setDeliveryAddress, setDeliveryCost, setDeliveryCosts, setDeliveryMode, setDeliveryStatus, setDiscountsIncludeDeliveryCosts, setDiscountsIncludePaymentCosts, setGlobalDiscountValues, setGlobalDiscountValues, setNet, setPaymentAddress, setPaymentCost, setPaymentCosts, setPaymentMode, setPaymentStatus, setStatus, setTotal, setTotalTaxValues, setTotalTaxValues, setUser, shuffleEntriesOnInsertNew, tryToFindFallbackLanguageaddToDiscounts, addToDiscounts, addToEntries, addToEntries, getCode, getCurrency, getDate, getDeliveryAddress, getDeliveryCost, getDeliveryCost, getDeliveryCostAsPrimitive, getDeliveryCostAsPrimitive, getDeliveryMode, getDeliveryStatus, getDescription, getDescription, getDiscounts, getDiscounts, getDiscountsCount, getDiscountsCount, getExpirationTime, getExpirationTime, getExportStatus, getExportStatus, getGlobalDiscountValuesInternal, getName, getName, getPaymentAddress, getPaymentCost, getPaymentCost, getPaymentCostAsPrimitive, getPaymentCostAsPrimitive, getPaymentInfo, getPaymentMode, getPaymentStatus, getStatus, getStatusInfo, getSubtotal, getSubtotalAsPrimitive, getSubtotalAsPrimitive, getTotalDiscountsAsPrimitive, getTotalDiscountsAsPrimitive, getTotalPrice, getTotalPrice, getTotalPriceAsPrimitive, getTotalPriceAsPrimitive, getTotalTaxAsPrimitive, getTotalTaxAsPrimitive, getTotalTaxValuesInternal, getUser, isCalculatedAsPrimitive, isCalculatedAsPrimitive, isDiscountsIncludeDeliveryCost, isDiscountsIncludeDeliveryCostAsPrimitive, isDiscountsIncludeDeliveryCostAsPrimitive, isDiscountsIncludePaymentCost, isDiscountsIncludePaymentCostAsPrimitive, isDiscountsIncludePaymentCostAsPrimitive, isNetAsPrimitive, isNetAsPrimitive, removeFromDiscounts, removeFromDiscounts, removeFromEntries, removeFromEntries, setCalculated, setCalculated, setCalculated, setDeliveryCost, setDeliveryCost, setDeliveryCost, setDescription, setDescription, setDiscounts, setDiscounts, setDiscountsIncludeDeliveryCost, setDiscountsIncludeDeliveryCost, setDiscountsIncludeDeliveryCost, setDiscountsIncludePaymentCost, setDiscountsIncludePaymentCost, setDiscountsIncludePaymentCost, setExpirationTime, setExpirationTime, setExportStatus, setExportStatus, setGlobalDiscountValuesInternal, setName, setName, setNet, setNet, setPaymentCost, setPaymentCost, setPaymentCost, setPaymentInfo, setStatusInfo, setSubtotal, setSubtotal, setSubtotal, setTotalDiscounts, setTotalDiscounts, setTotalDiscounts, setTotalPrice, setTotalPrice, setTotalPrice, setTotalPrice, setTotalTax, setTotalTax, setTotalTax, setTotalTaxValuesInternalgetInitialPropertiesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, 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, readResolve, refreshRemote, 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, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplacegetImplementation, setTenantprotected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
createItem in class Cartctx - 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 )JaloBusinessException - indicates an error during creation - any changes will be rollbackedprotected Item.ItemAttributeMap getNonInitialAttributes(SessionContext ctx, Item.ItemAttributeMap allAttributes)
GenericItemGenericItem.getNonInitialAttributes(SessionContext, Item.ItemAttributeMap ) assures
that the 'registered initial' properties GenericItem.getInitialProperties(JaloSession, Item.ItemAttributeMap ) will
be removed from the 'non initial map'.getNonInitialAttributes in class GenericItemctx - session context with language = NULLallAttributes - a ItemAttributeMap contaning attribute values.ItemAttributeMap containing all attribute values, which belong to non-initial attributes.public final ComposedType provideComposedType()
JaloOnlyItem contract. Never call directlyprovideComposedType in interface JaloOnlyItempublic final Date provideCreationTime()
JaloOnlyItem contract. Never call directlyprovideCreationTime in interface JaloOnlyItempublic final Date provideModificationTime()
JaloOnlyItem contract. Never call directlyprovideModificationTime in interface JaloOnlyItempublic final PK providePK()
JaloOnlyItem contract. Never call directlyprovidePK in interface JaloOnlyItempublic void removeJaloOnly()
throws ConsistencyCheckException
JaloOnlyItem contract. Never call directlyremoveJaloOnly in interface JaloOnlyItemConsistencyCheckException - to signal that this item removal failedpublic Object doGetAttribute(SessionContext ctx, String attrQualifier) throws JaloInvalidParameterException, JaloSecurityException
JaloOnlyItem contract. Never call directlydoGetAttribute in interface JaloOnlyItemctx - the session contextattrQualifier - the qualifier of the requested attributeJaloInvalidParameterException - in case no value could be read for this attributeJaloSecurityExceptionpublic void doSetAttribute(SessionContext ctx, String attrQualifier, Object value) throws JaloInvalidParameterException, JaloSecurityException, JaloBusinessException
JaloOnlyItem contract. Never call directlydoSetAttribute in interface JaloOnlyItemctx - the session contextattrQualifier - the qualifier of the requested attributevalue - the new attribute valueJaloInvalidParameterException - 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 occuredpublic Collection getEntries(int startIdx, int endIdx)
AbstractOrder.getEntries(int, int) for details.getEntries in class AbstractOrderpublic AbstractOrderEntry getEntry(int index) throws JaloItemNotFoundException
AbstractOrder.getEntry(int) for details.getEntry in class AbstractOrderJaloItemNotFoundExceptionpublic List getEntriesByProduct(Product product)
AbstractOrder.getEntriesByProduct(Product) for
details.getEntriesByProduct in class AbstractOrderpublic void removeAllEntries()
AbstractOrder.removeAllEntries() for details.removeAllEntries in class AbstractOrderprotected void removeEntries(SessionContext ctx, Set<AbstractOrderEntry> entries)
removeEntries in class AbstractOrderpublic void removeEntry(AbstractOrderEntry entry)
AbstractOrder.removeEntry(AbstractOrderEntry) for
details.removeEntry in class AbstractOrder@Deprecated public List getAllEntries()
AbstractOrder.getAllEntries() for details.getAllEntries in class AbstractOrder@Deprecated protected void setAllEntries(SessionContext ctx, List entries)
setAllEntries in class AbstractOrderpublic List getEntries(SessionContext ctx)
GeneratedInMemoryCartInMemoryCart.entries attribute.getEntries in class GeneratedInMemoryCartpublic void setEntries(SessionContext ctx, List<AbstractOrderEntry> value)
GeneratedInMemoryCartInMemoryCart.entries attribute.setEntries in class GeneratedInMemoryCartvalue - the entriespublic AbstractOrderEntry addNewEntry(Product prod, long qtd, Unit unit, int position, boolean addToPresent)
AbstractOrder.addNewEntry(Product, long, Unit, int, boolean) for details.addNewEntry in class AbstractOrderprod - - must not be nullunit - - must not be nulladdToPresent - if true an existing entry with matching product and unit will get its quantity increased;
otherwise a new entry is createdpublic String getCode(SessionContext ctx)
GeneratedAbstractOrder.getCode(SessionContext) for details.getCode in class GeneratedAbstractOrderpublic void setCode(SessionContext ctx, String code)
AbstractOrder.setCode(SessionContext,String) for
details.setCode in class AbstractOrderctx - can be used for cached access of 'code' value may be outdated! code - the codepublic void setDate(SessionContext ctx, Date date)
AbstractOrder.setDate(SessionContext, Date) for
details.setDate in class AbstractOrderctx - can be used for cached access of 'date' value may be outdated! date - the dateprotected void setCreationTime(Date creationTime)
setCreationTime in class Itempublic User getUser(SessionContext ctx)
GeneratedAbstractOrder.getUser(SessionContext) for details.getUser in class GeneratedAbstractOrderpublic void setUser(SessionContext ctx, User user)
AbstractOrder.setUser(SessionContext, User) for
details.setUser in class AbstractOrderctx - can be used for cached access of the user object object may be outdated! user - the userpublic Currency getCurrency(SessionContext ctx)
GeneratedAbstractOrder.getCurrency(SessionContext) for
details.getCurrency in class GeneratedAbstractOrderpublic void setCurrency(SessionContext ctx, Currency curr)
AbstractOrder.setCurrency(SessionContext, Currency)
for details.setCurrency in class AbstractOrderctx - can be used for cached access of the currency object object may be outdated! curr - the currencypublic EnumerationValue getPaymentStatus(SessionContext ctx)
GeneratedAbstractOrder.getPaymentStatus(SessionContext) for
details.getPaymentStatus in class GeneratedAbstractOrderpublic void setPaymentStatus(SessionContext ctx, EnumerationValue ps)
AbstractOrder.setPaymentStatus(SessionContext, EnumerationValue) for details.setPaymentStatus in class AbstractOrderps - the paymentStatuspublic EnumerationValue getDeliveryStatus(SessionContext ctx)
GeneratedAbstractOrder.getDeliveryStatus(SessionContext) for
details.getDeliveryStatus in class GeneratedAbstractOrderpublic void setDeliveryStatus(SessionContext ctx, EnumerationValue ds)
AbstractOrder.setDeliveryStatus(SessionContext, EnumerationValue) for details.setDeliveryStatus in class AbstractOrderds - the deliveryStatuspublic Boolean isNet(SessionContext ctx)
GeneratedAbstractOrder.isNet(SessionContext) for details.isNet in class GeneratedAbstractOrderpublic void setNet(SessionContext ctx, boolean net)
AbstractOrder.setNet(SessionContext, boolean) for
details.setNet in class AbstractOrderctx - can be used for cached access of net status value may be outdated! net - the netpublic DeliveryMode getDeliveryMode(SessionContext ctx)
GeneratedAbstractOrder.getDeliveryMode(SessionContext) for
details.getDeliveryMode in class GeneratedAbstractOrderpublic void setDeliveryMode(SessionContext ctx, DeliveryMode mode)
AbstractOrder.setDeliveryMode(SessionContext, DeliveryMode) for details.setDeliveryMode in class AbstractOrderctx - can be used for cached access of delivery mode object object may be outdated! mode - the deliveryModepublic Address getDeliveryAddress(SessionContext ctx)
GeneratedAbstractOrder.getDeliveryAddress(SessionContext) for
details.getDeliveryAddress in class GeneratedAbstractOrderpublic void setDeliveryAddress(SessionContext ctx, Address address)
AbstractOrder.setDeliveryAddress(SessionContext, Address) for details.setDeliveryAddress in class AbstractOrderctx - can be used for cached access of address object object may be outdated! address - the deliveryAddresspublic PaymentMode getPaymentMode(SessionContext ctx)
GeneratedAbstractOrder.getPaymentMode(SessionContext) for
details.getPaymentMode in class GeneratedAbstractOrderpublic void setPaymentMode(SessionContext ctx, PaymentMode mode)
AbstractOrder.setPaymentMode(SessionContext, PaymentMode) for details.setPaymentMode in class AbstractOrderctx - can be used for cached access object may be outdated! mode - the paymentModepublic Address getPaymentAddress(SessionContext ctx)
GeneratedAbstractOrder.getPaymentAddress(SessionContext) for
details.getPaymentAddress in class GeneratedAbstractOrderpublic void setPaymentAddress(SessionContext ctx, Address adr)
AbstractOrder.setPaymentAddress(SessionContext, Address) for details.setPaymentAddress in class AbstractOrderctx - can be used for cached access object may be outdated! adr - the paymentAddresspublic PaymentInfo getPaymentInfo(SessionContext ctx)
GeneratedAbstractOrder.getPaymentInfo(SessionContext) for
details.getPaymentInfo in class GeneratedAbstractOrderpublic void setPaymentInfo(SessionContext ctx, PaymentInfo info)
GeneratedAbstractOrder.setPaymentInfo(SessionContext, PaymentInfo) for details.setPaymentInfo in class GeneratedAbstractOrderinfo - the paymentInfopublic void setPaymentCosts(SessionContext ctx, double paymentCost)
AbstractOrder.setPaymentCosts(SessionContext, double)
for details.setPaymentCosts in class AbstractOrderpublic double getPaymentCosts(SessionContext ctx)
AbstractOrder.getPaymentCosts(SessionContext) for
details.getPaymentCosts in class AbstractOrderpublic void setStatusInfo(SessionContext ctx, String s)
GeneratedAbstractOrder.setStatusInfo(SessionContext, String)
for details.setStatusInfo in class GeneratedAbstractOrders - the statusInfopublic String getStatusInfo(SessionContext ctx)
GeneratedAbstractOrder.getStatusInfo(SessionContext) for
details.getStatusInfo in class GeneratedAbstractOrderpublic void setStatus(SessionContext ctx, EnumerationValue s)
AbstractOrder.setStatus(SessionContext, EnumerationValue) for details.setStatus in class AbstractOrderctx - can be used for cached access of status value may be outdated! s - the status of this orderpublic EnumerationValue getStatus(SessionContext ctx)
GeneratedAbstractOrder.getStatusInfo(SessionContext) for
details.getStatus in class GeneratedAbstractOrderpublic Boolean isCalculated(SessionContext ctx)
AbstractOrder.isCalculated(SessionContext) for
details.isCalculated in class AbstractOrderAbstractOrder.calculate(),
AbstractOrder.calculate(Date),
AbstractOrder.recalculate(),
AbstractOrder.recalculate(Date),
AbstractOrder.calculateTotals(boolean)public void setCalculated(SessionContext ctx, boolean calculated)
GeneratedAbstractOrder.setCalculated(SessionContext, boolean)
for details.setCalculated in class GeneratedAbstractOrdercalculated - the calculatedpublic String getTotalTaxValuesInternal(SessionContext ctx)
GeneratedAbstractOrderAbstractOrder.totalTaxValuesInternal attribute.getTotalTaxValuesInternal in class GeneratedAbstractOrderpublic void setTotalTaxValuesInternal(SessionContext ctx, String value)
GeneratedAbstractOrderAbstractOrder.totalTaxValuesInternal attribute.setTotalTaxValuesInternal in class GeneratedAbstractOrdervalue - the totalTaxValuesInternalpublic String getGlobalDiscountValuesInternal(SessionContext ctx)
GeneratedAbstractOrderAbstractOrder.globalDiscountValuesInternal attribute.getGlobalDiscountValuesInternal in class GeneratedAbstractOrderpublic void setGlobalDiscountValuesInternal(SessionContext ctx, String value)
GeneratedAbstractOrderAbstractOrder.globalDiscountValuesInternal attribute.setGlobalDiscountValuesInternal in class GeneratedAbstractOrdervalue - the globalDiscountValuesInternalpublic void setDeliveryCosts(SessionContext ctx, double deliveryCost)
AbstractOrder.setDeliveryCosts(SessionContext, double) for details.setDeliveryCosts in class AbstractOrderpublic double getDeliveryCosts(SessionContext ctx)
AbstractOrder.getDeliveryCosts(SessionContext) for
details.getDeliveryCosts in class AbstractOrderpublic void setTotal(SessionContext ctx, double price)
AbstractOrder.setTotal(SessionContext, double) for
details.setTotal in class AbstractOrderpublic double getTotal(SessionContext ctx)
AbstractOrder.getTotal(SessionContext) for details.getTotal in class AbstractOrderpublic void setSubtotal(SessionContext ctx, double price)
GeneratedAbstractOrder.setSubtotal(SessionContext, double) for
details.setSubtotal in class GeneratedAbstractOrderprice - the subtotalpublic Double getSubtotal(SessionContext ctx)
GeneratedAbstractOrder.getSubtotal(SessionContext) for
details.getSubtotal in class GeneratedAbstractOrderpublic void setTotalDiscounts(SessionContext ctx, double totalDiscounts)
GeneratedAbstractOrder.setTotalDiscounts(SessionContext, double) for details.setTotalDiscounts in class GeneratedAbstractOrdertotalDiscounts - the totalDiscountspublic Double getTotalDiscounts(SessionContext ctx)
GeneratedAbstractOrder.getTotalDiscounts(SessionContext) for
details.getTotalDiscounts in class GeneratedAbstractOrderpublic void setTotalTax(SessionContext ctx, double taxes)
GeneratedAbstractOrder.setTotalTax(SessionContext, double) for
details.setTotalTax in class GeneratedAbstractOrdertaxes - the totalTaxpublic Double getTotalTax(SessionContext ctx)
GeneratedAbstractOrder.getTotalTax(SessionContext) for
details.getTotalTax in class GeneratedAbstractOrderpublic void setDiscountsIncludeDeliveryCost(SessionContext ctx, Boolean value)
AbstractOrder.setDiscountsIncludeDeliveryCost(SessionContext,Boolean) for details.setDiscountsIncludeDeliveryCost in class AbstractOrdervalue - the discountsIncludeDeliveryCost - Tells whether delivery costs should be included in discount calculation or not. If this
field is true
delivery costs are changed the same way as product costs if discount values are set at this
order.public Boolean isDiscountsIncludeDeliveryCost(SessionContext ctx)
GeneratedAbstractOrder.isDiscountsIncludeDeliveryCost(SessionContext) for details.isDiscountsIncludeDeliveryCost in class GeneratedAbstractOrderpublic void setDiscountsIncludePaymentCost(SessionContext ctx, Boolean value)
AbstractOrder.setDiscountsIncludePaymentCost(SessionContext,Boolean) for details.setDiscountsIncludePaymentCost in class AbstractOrdervalue - the discountsIncludePaymentCost - Tells whether payment costs should be included in discount calculation or not. If this
field is true
payment costs are changed the same way as product costs if discount values are set at this
order.public Boolean isDiscountsIncludePaymentCost(SessionContext ctx)
GeneratedAbstractOrder.isDiscountsIncludePaymentCost(SessionContext) for details.isDiscountsIncludePaymentCost in class GeneratedAbstractOrderpublic void setModificationTime(Date d)
Item.setModificationTime(Date) for details.setModificationTime in class Itempublic InMemoryCartEntry createNewEntry(SessionContext ctx, ComposedType entryType, Product p, long amount, Unit u, int pos)
createNewEntry in class Cartprotected String getAbstractOrderEntryTypeCode()
getAbstractOrderEntryTypeCode in class CartCopyright © 2017 SAP SE. All Rights Reserved.