Class TestOrderEntry
- java.lang.Object
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable
public class TestOrderEntry extends OrderEntry
- 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 doublePRICE-
Fields inherited from class de.hybris.platform.jalo.order.GeneratedOrderEntry
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 TestOrderEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.ListfindDiscounts()Ffinds tax values for this entry.protected PriceValuefindPrice()Finds a price for this entry.protected java.util.CollectionfindTaxes()Finds tax values for this entry.-
Methods inherited from class de.hybris.platform.jalo.order.GeneratedOrderEntry
createItem, getDefaultAttributeModes
-
Methods inherited from class de.hybris.platform.jalo.order.AbstractOrderEntry
addAllDiscountValues, addAllDiscountValues, addAllDisocuntValues, addAllTaxValues, addAllTaxValues, addDiscountValue, addDiscountValue, addTaxValue, addTaxValue, applyDiscounts, calculate, calculateTotals, compareTo, getDiscountValues, getDiscountValues, getOrder, getTaxValues, getTaxValues, isCalculated, isGiveAway, isRejected, recalculate, remove, removeAllDiscountValues, removeAllDiscountValues, removeAllTaxValues, removeAllTaxValues, removeDiscountValue, removeDiscountValue, removeTaxValue, removeTaxValue, removeWithoutOrderNotification, resetAllValues, setBasePrice, setChanged, setDiscountValues, setDiscountValues, setEntryNumber, setEntryNumberDirect, setGiveAway, setOrder, setProduct, setQuantity, setRejected, setTaxValues, setTaxValues, setUnit, toString
-
Methods inherited from class de.hybris.platform.jalo.order.GeneratedAbstractOrderEntry
getBasePrice, getBasePrice, getBasePriceAsPrimitive, getBasePriceAsPrimitive, getDiscountValuesInternal, getDiscountValuesInternal, getEntryGroupNumbers, getEntryGroupNumbers, getEntryNumber, getEntryNumber, getEntryNumberAsPrimitive, getEntryNumberAsPrimitive, getInfo, getInfo, getOrder, getProduct, getProduct, getQuantity, getQuantity, getQuantityAsPrimitive, getQuantityAsPrimitive, getTaxValuesInternal, getTaxValuesInternal, getTotalPrice, getTotalPrice, getTotalPriceAsPrimitive, getTotalPriceAsPrimitive, getUnit, getUnit, isCalculated, isCalculatedAsPrimitive, isCalculatedAsPrimitive, isGiveAway, isGiveAwayAsPrimitive, isGiveAwayAsPrimitive, isRejected, isRejectedAsPrimitive, isRejectedAsPrimitive, setBasePrice, setBasePrice, setBasePrice, setCalculated, setCalculated, setCalculated, setCalculated, setDiscountValuesInternal, setDiscountValuesInternal, setEntryGroupNumbers, setEntryGroupNumbers, setEntryNumber, setEntryNumber, setEntryNumber, setGiveAway, setGiveAway, setGiveAway, setInfo, setInfo, setOrder, setProduct, setQuantity, setQuantity, setQuantity, setRejected, setRejected, setRejected, setTaxValuesInternal, setTaxValuesInternal, setTotalPrice, setTotalPrice, setTotalPrice, setTotalPrice, setUnit
-
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, 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, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Field Detail
-
PRICE
public static final double PRICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
findDiscounts
protected java.util.List findDiscounts() throws JaloPriceFactoryExceptionDescription copied from class:AbstractOrderEntryFfinds tax values for this entry. as default this just callsAbstractPriceFactory.getDiscountValues(AbstractOrderEntry)but you may override this four your own (non-pricefactory) logic.The returned discount values are converted into applied tax values after the price was found.
- Overrides:
findDiscountsin classAbstractOrderEntry- Returns:
- a collection of
DiscountValue - Throws:
JaloPriceFactoryException- on pricefactory errors
-
findPrice
protected PriceValue findPrice() throws JaloPriceFactoryException
Description copied from class:AbstractOrderEntryFinds a price for this entry. as default this just callsAbstractPriceFactory.getBasePrice(AbstractOrderEntry)but you may override this four your own (non-pricefactory) logic.The returned price value does not need to have the net/gross state of this order nor does it have to have the same currency as this entry's order.
- Overrides:
findPricein classAbstractOrderEntry- Returns:
- a price value - null is not allowed
- Throws:
JaloPriceFactoryException- on pricefactory errors
-
findTaxes
protected java.util.Collection findTaxes() throws JaloPriceFactoryExceptionDescription copied from class:AbstractOrderEntryFinds tax values for this entry. as default this just callsAbstractPriceFactory.getTaxValues(AbstractOrderEntry)but you may override this four your own (non-pricefactory) logic.The returned tax values are converted into applied tax values after the price was found.
- Overrides:
findTaxesin classAbstractOrderEntry- Returns:
- a collection of
TaxValue - Throws:
JaloPriceFactoryException- on pricefactory errors
-
-