Package de.hybris.platform.jalo.order
Class GeneratedQuote
- java.lang.Object
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
- Direct Known Subclasses:
Quote
public abstract class GeneratedQuote extends AbstractOrder
Generated class for typeQuote
.- 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
protected static OneToManyHandler<AbstractOrderEntry>
ENTRIESHANDLER
OneToManyHandler
for handling 1:n ENTRIES's relation attributes from 'many' side.static java.lang.String
STATE
Qualifier of theQuote.state
attributeprotected static BidirectionalOneToManyHandler<GeneratedQuote>
USERHANDLER
BidirectionalOneToManyHandler
for handling 1:n USER's relation attributes from 'one' side.static java.lang.String
VERSION
Qualifier of theQuote.version
attribute-
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 GeneratedQuote()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToEntries(QuoteEntry value)
Generated method - Addsvalue
to entries.void
addToEntries(SessionContext ctx, QuoteEntry value)
Generated method - Addsvalue
to entries.protected Item
createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.protected java.util.Map<java.lang.String,Item.AttributeMode>
getDefaultAttributeModes()
java.util.List<AbstractOrderEntry>
getEntries()
Generated method - Getter of theQuote.entries
attribute.java.util.List<AbstractOrderEntry>
getEntries(SessionContext ctx)
Generated method - Getter of theQuote.entries
attribute.EnumerationValue
getState()
Generated method - Getter of theQuote.state
attribute.EnumerationValue
getState(SessionContext ctx)
Generated method - Getter of theQuote.state
attribute.java.lang.Integer
getVersion()
Generated method - Getter of theQuote.version
attribute.java.lang.Integer
getVersion(SessionContext ctx)
Generated method - Getter of theQuote.version
attribute.int
getVersionAsPrimitive()
Generated method - Getter of theQuote.version
attribute.int
getVersionAsPrimitive(SessionContext ctx)
Generated method - Getter of theQuote.version
attribute.void
removeFromEntries(QuoteEntry value)
Generated method - Removesvalue
from entries.void
removeFromEntries(SessionContext ctx, QuoteEntry value)
Generated method - Removesvalue
from entries.void
setEntries(SessionContext ctx, java.util.List<AbstractOrderEntry> value)
Generated method - Setter of theQuote.entries
attribute.void
setEntries(java.util.List<AbstractOrderEntry> value)
Generated method - Setter of theQuote.entries
attribute.void
setState(EnumerationValue value)
Generated method - Setter of theQuote.state
attribute.void
setState(SessionContext ctx, EnumerationValue value)
Generated method - Setter of theQuote.state
attribute.protected void
setVersion(int value)
Generated method - Setter of theQuote.version
attribute.protected void
setVersion(SessionContext ctx, int value)
Generated method - Setter of theQuote.version
attribute.protected void
setVersion(SessionContext ctx, java.lang.Integer value)
Generated method - Setter of theQuote.version
attribute.protected void
setVersion(java.lang.Integer value)
Generated method - Setter of theQuote.version
attribute.-
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, createNewEntry, createNewEntryNumber, createNewPaymentAddress, createNewPaymentAddress, discountsIncludeDeliveryCosts, discountsIncludePaymentCosts, doSetDeliveryAddress, doSetPaymentAddress, findDeliveryCosts, findGlobalDiscounts, findPaymentCosts, getAbstractOrderEntryTypeCode, 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, remove, removeAllEntries, removeAllGlobalDiscountValues, removeAllGlobalDiscountValues, removeAllTotalTaxValues, removeAllTotalTaxValues, removeDiscount, removeEntries, removeEntry, removeGlobalDiscountValue, removeGlobalDiscountValue, removeTotalTaxValue, removeTotalTaxValue, resetAdditionalCosts, resetAllValues, setAllEntries, setChanged, setCode, setCode, setComposedType, setCurrency, setCurrency, setDate, setDate, setDeliveryAddress, setDeliveryAddress, setDeliveryCost, setDeliveryCosts, setDeliveryCosts, setDeliveryMode, setDeliveryMode, setDeliveryStatus, setDeliveryStatus, setDiscountsIncludeDeliveryCost, setDiscountsIncludeDeliveryCosts, setDiscountsIncludePaymentCost, setDiscountsIncludePaymentCosts, setGlobalDiscountValues, setGlobalDiscountValues, setNet, setNet, setPaymentAddress, setPaymentAddress, 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, setPaymentInfo, setPaymentInfo, 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
-
VERSION
public static final java.lang.String VERSION
Qualifier of theQuote.version
attribute- See Also:
- Constant Field Values
-
STATE
public static final java.lang.String STATE
Qualifier of theQuote.state
attribute- See Also:
- Constant Field Values
-
ENTRIESHANDLER
protected static final OneToManyHandler<AbstractOrderEntry> ENTRIESHANDLER
OneToManyHandler
for handling 1:n ENTRIES's relation attributes from 'many' side.
-
USERHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedQuote> USERHANDLER
BidirectionalOneToManyHandler
for handling 1:n USER's relation attributes from 'one' side.
-
DEFAULT_INITIAL_ATTRIBUTES
protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
-
-
Method Detail
-
getDefaultAttributeModes
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
- Overrides:
getDefaultAttributeModes
in classGeneratedAbstractOrder
-
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 classAbstractOrder
- 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
-
getEntries
public java.util.List<AbstractOrderEntry> getEntries(SessionContext ctx)
Generated method - Getter of theQuote.entries
attribute.- Overrides:
getEntries
in classAbstractOrder
- Returns:
- the entries
-
getEntries
public java.util.List<AbstractOrderEntry> getEntries()
Generated method - Getter of theQuote.entries
attribute.- Overrides:
getEntries
in classAbstractOrder
- Returns:
- the entries
-
setEntries
public void setEntries(SessionContext ctx, java.util.List<AbstractOrderEntry> value)
Generated method - Setter of theQuote.entries
attribute.- Overrides:
setEntries
in classAbstractOrder
- Parameters:
value
- the entries
-
setEntries
public void setEntries(java.util.List<AbstractOrderEntry> value)
Generated method - Setter of theQuote.entries
attribute.- Overrides:
setEntries
in classAbstractOrder
- Parameters:
value
- the entries
-
addToEntries
public void addToEntries(SessionContext ctx, QuoteEntry value)
Generated method - Addsvalue
to entries.- Parameters:
value
- the item to add to entries
-
addToEntries
public void addToEntries(QuoteEntry value)
Generated method - Addsvalue
to entries.- Parameters:
value
- the item to add to entries
-
removeFromEntries
public void removeFromEntries(SessionContext ctx, QuoteEntry value)
Generated method - Removesvalue
from entries.- Parameters:
value
- the item to remove from entries
-
removeFromEntries
public void removeFromEntries(QuoteEntry value)
Generated method - Removesvalue
from entries.- Parameters:
value
- the item to remove from entries
-
getState
public EnumerationValue getState(SessionContext ctx)
Generated method - Getter of theQuote.state
attribute.- Returns:
- the state - Current state of the quote
-
getState
public EnumerationValue getState()
Generated method - Getter of theQuote.state
attribute.- Returns:
- the state - Current state of the quote
-
setState
public void setState(SessionContext ctx, EnumerationValue value)
Generated method - Setter of theQuote.state
attribute.- Parameters:
value
- the state - Current state of the quote
-
setState
public void setState(EnumerationValue value)
Generated method - Setter of theQuote.state
attribute.- Parameters:
value
- the state - Current state of the quote
-
getVersion
public java.lang.Integer getVersion(SessionContext ctx)
Generated method - Getter of theQuote.version
attribute.- Returns:
- the version - The version of the quote. Along with code it makes a quote instance unique.
-
getVersion
public java.lang.Integer getVersion()
Generated method - Getter of theQuote.version
attribute.- Returns:
- the version - The version of the quote. Along with code it makes a quote instance unique.
-
getVersionAsPrimitive
public int getVersionAsPrimitive(SessionContext ctx)
Generated method - Getter of theQuote.version
attribute.- Returns:
- the version - The version of the quote. Along with code it makes a quote instance unique.
-
getVersionAsPrimitive
public int getVersionAsPrimitive()
Generated method - Getter of theQuote.version
attribute.- Returns:
- the version - The version of the quote. Along with code it makes a quote instance unique.
-
setVersion
protected void setVersion(SessionContext ctx, java.lang.Integer value)
Generated method - Setter of theQuote.version
attribute.- Parameters:
value
- the version - The version of the quote. Along with code it makes a quote instance unique.
-
setVersion
protected void setVersion(java.lang.Integer value)
Generated method - Setter of theQuote.version
attribute.- Parameters:
value
- the version - The version of the quote. Along with code it makes a quote instance unique.
-
setVersion
protected void setVersion(SessionContext ctx, int value)
Generated method - Setter of theQuote.version
attribute.- Parameters:
value
- the version - The version of the quote. Along with code it makes a quote instance unique.
-
setVersion
protected void setVersion(int value)
Generated method - Setter of theQuote.version
attribute.- Parameters:
value
- the version - The version of the quote. Along with code it makes a quote instance unique.
-
-