Class CartModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
de.hybris.platform.core.model.order.AbstractOrderModel
de.hybris.platform.core.model.order.CartModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InMemoryCartModel
Generated model class for type Cart first defined at extension core.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofCart.cartToOrderCronJobattribute defined at extensionbasecommerce.static final StringGenerated constant - Attribute key ofCart.cartValidationsattribute defined at extensiontuadatacommonsservices.static final StringGenerated constant - Attribute key ofCart.earliestRetrievalDateattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofCart.importStatusattribute defined at extensionacceleratorservices.static final StringGenerated constant - Attribute key ofCart.invalidMessagesattribute defined at extensiontuadatacommonsservices.static final StringGenerated constant - Attribute key ofCart.quoteReferenceattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofCart.savedByattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofCart.saveTimeattribute defined at extensioncommerceservices.static final StringGenerated constant - Attribute key ofCart.sessionIdattribute defined at extensioncore.Fields inherited from class de.hybris.platform.core.model.order.AbstractOrderModel
_ABSTRACTMASTERORDER2ABSTRACTCHILDORDERRELATION, _B2BUNIT2ABSTRACTORDERS, _CONSIGNMENTORDERRELATION, ALLPROMOTIONRESULTS, APPLIEDCOUPONCODES, APPLIEDVOUCHERCODES, B2BCOMMENTS, BILLINGTIME, CALCULATED, CHILDREN, CODE, CONSIGNMENTS, CURRENCY, DATE, DELIVERYADDRESS, DELIVERYCOST, DELIVERYMODE, DELIVERYSTATUS, DESCRIPTION, DISCOUNTS, DISCOUNTSINCLUDEDELIVERYCOST, DISCOUNTSINCLUDEPAYMENTCOST, ENTRIES, ENTRYGROUPS, EUROPE1PRICEFACTORY_UDG, EUROPE1PRICEFACTORY_UPG, EUROPE1PRICEFACTORY_UTG, EXPIRATIONTIME, EXPORTSTATUS, GLOBALDISCOUNTVALUES, GLOBALDISCOUNTVALUESINTERNAL, GUID, LOCALE, NAME, NET, PARENT, PAYMENTADDRESS, PAYMENTCOST, PAYMENTINFO, PAYMENTMODE, PAYMENTSTATUS, PAYMENTTRANSACTIONS, PERMISSIONRESULTS, PREVIOUSDELIVERYMODE, PRICE, PROMOTIONORDERRESTRICTIONS, QUOTEDISCOUNTVALUESINTERNAL, QUOTEEXPIRATIONDATE, REQUESTEDRETRIEVALDATE, SITE, STATUS, STATUSINFO, STORE, SUBTOTAL, TOTALDISCOUNTS, TOTALPRICE, TOTALTAX, TOTALTAXVALUES, TOTALTAXVALUESINTERNAL, UNIT, USER, WORKFLOWFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.CartModel(CurrencyModel _currency, Date _date, ItemModel _owner, UserModel _user) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersCartModel(CurrencyModel _currency, Date _date, UserModel _user) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersCartModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context -
Method Summary
Modifier and TypeMethodDescriptionGenerated method - Getter of theCart.cartToOrderCronJobattribute defined at extensionbasecommerce.Generated method - Getter of theCart.cartValidationsattribute defined at extensiontuadatacommonsservices.Generated method - Getter of theCart.earliestRetrievalDateattribute defined at extensioncommerceservices.Generated method - Getter of theCart.importStatusattribute defined at extensionacceleratorservices.Deprecated, for removal: This API element is subject to removal in a future version.since 1911Generated method - Getter of theCart.quoteReferenceattribute defined at extensioncommerceservices.Generated method - Getter of theCart.savedByattribute defined at extensioncommerceservices.Generated method - Getter of theCart.saveTimeattribute defined at extensioncommerceservices.Generated method - Getter of theCart.sessionIdattribute defined at extensioncore.voidGenerated method - Setter ofCart.cartToOrderCronJobattribute defined at extensionbasecommerce.voidGenerated method - Setter ofCart.cartValidationsattribute defined at extensiontuadatacommonsservices.voidsetEarliestRetrievalDate(String value) Generated method - Setter ofCart.earliestRetrievalDateattribute defined at extensioncommerceservices.voidsetImportStatus(ImportStatus value) Generated method - Setter ofCart.importStatusattribute defined at extensionacceleratorservices.voidsetInvalidMessages(List<String> value) Deprecated, for removal: This API element is subject to removal in a future version.since 1911voidsetQuoteReference(QuoteModel value) Generated method - Setter ofCart.quoteReferenceattribute defined at extensioncommerceservices.voidsetSavedBy(UserModel value) Generated method - Setter ofCart.savedByattribute defined at extensioncommerceservices.voidsetSaveTime(Date value) Generated method - Setter ofCart.saveTimeattribute defined at extensioncommerceservices.voidsetSessionId(String value) Generated method - Setter ofCart.sessionIdattribute defined at extensioncore.Methods inherited from class de.hybris.platform.core.model.order.AbstractOrderModel
getAllPromotionResults, getAppliedCouponCodes, getB2bcomments, getBillingTime, getCalculated, getChildren, getCode, getConsignments, getCurrency, getDate, getDeliveryAddress, getDeliveryCost, getDeliveryMode, getDeliveryStatus, getDescription, getDiscounts, getEntries, getEntryGroups, getEurope1PriceFactory_UDG, getEurope1PriceFactory_UPG, getEurope1PriceFactory_UTG, getExpirationTime, getExportStatus, getGlobalDiscountValues, getGlobalDiscountValuesInternal, getGuid, getLocale, getName, getNet, getParent, getPaymentAddress, getPaymentCost, getPaymentInfo, getPaymentMode, getPaymentStatus, getPaymentTransactions, getPermissionResults, getPreviousDeliveryMode, getPrice, getPromotionOrderRestrictions, getQuoteDiscountValuesInternal, getQuoteExpirationDate, getRequestedRetrievalDate, getSite, getStatus, getStatusInfo, getStore, getSubtotal, getTotalDiscounts, getTotalPrice, getTotalTax, getTotalTaxValues, getTotalTaxValuesInternal, getUnit, getUser, getWorkflow, isDiscountsIncludeDeliveryCost, isDiscountsIncludePaymentCost, setAllPromotionResults, setAppliedCouponCodes, setB2bcomments, setBillingTime, setCalculated, setChildren, setCode, setConsignments, setCurrency, setDate, setDeliveryAddress, setDeliveryCost, setDeliveryMode, setDeliveryStatus, setDescription, setDiscounts, setDiscountsIncludeDeliveryCost, setDiscountsIncludePaymentCost, setEntries, setEntryGroups, setEurope1PriceFactory_UDG, setEurope1PriceFactory_UPG, setEurope1PriceFactory_UTG, setExpirationTime, setExportStatus, setGlobalDiscountValues, setGlobalDiscountValuesInternal, setGuid, setLocale, setName, setNet, setParent, setPaymentAddress, setPaymentCost, setPaymentInfo, setPaymentMode, setPaymentStatus, setPaymentTransactions, setPermissionResults, setPreviousDeliveryMode, setPrice, setPromotionOrderRestrictions, setQuoteDiscountValuesInternal, setQuoteExpirationDate, setRequestedRetrievalDate, setSite, setStatus, setStatusInfo, setStore, setSubtotal, setTotalDiscounts, setTotalPrice, setTotalTax, setTotalTaxValues, setTotalTaxValuesInternal, setUnit, setUser, setWorkflowMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
Field Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
SESSIONID
Generated constant - Attribute key ofCart.sessionIdattribute defined at extensioncore.- See Also:
-
CARTTOORDERCRONJOB
Generated constant - Attribute key ofCart.cartToOrderCronJobattribute defined at extensionbasecommerce.- See Also:
-
SAVETIME
Generated constant - Attribute key ofCart.saveTimeattribute defined at extensioncommerceservices.- See Also:
-
SAVEDBY
Generated constant - Attribute key ofCart.savedByattribute defined at extensioncommerceservices.- See Also:
-
QUOTEREFERENCE
Generated constant - Attribute key ofCart.quoteReferenceattribute defined at extensioncommerceservices.- See Also:
-
EARLIESTRETRIEVALDATE
Generated constant - Attribute key ofCart.earliestRetrievalDateattribute defined at extensioncommerceservices.- See Also:
-
IMPORTSTATUS
Generated constant - Attribute key ofCart.importStatusattribute defined at extensionacceleratorservices.- See Also:
-
INVALIDMESSAGES
Generated constant - Attribute key ofCart.invalidMessagesattribute defined at extensiontuadatacommonsservices.- See Also:
-
CARTVALIDATIONS
Generated constant - Attribute key ofCart.cartValidationsattribute defined at extensiontuadatacommonsservices.- See Also:
-
-
Constructor Details
-
CartModel
public CartModel()Generated constructor - Default constructor for generic creation. -
CartModel
public CartModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
CartModel
@Deprecated(since="4.1.1", forRemoval=true) public CartModel(CurrencyModel _currency, Date _date, UserModel _user) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_currency- initial attribute declared by typeAbstractOrderat extensioncore_date- initial attribute declared by typeAbstractOrderat extensioncore_user- initial attribute declared by typeCartat extensioncore
-
CartModel
@Deprecated(since="4.1.1", forRemoval=true) public CartModel(CurrencyModel _currency, Date _date, ItemModel _owner, UserModel _user) Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_currency- initial attribute declared by typeAbstractOrderat extensioncore_date- initial attribute declared by typeAbstractOrderat extensioncore_owner- initial attribute declared by typeItemat extensioncore_user- initial attribute declared by typeCartat extensioncore
-
-
Method Details
-
getCartToOrderCronJob
@Accessor(qualifier="cartToOrderCronJob", type=GETTER) public Collection<CartToOrderCronJobModel> getCartToOrderCronJob()Generated method - Getter of theCart.cartToOrderCronJobattribute defined at extensionbasecommerce. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the cartToOrderCronJob
-
getCartValidations
@Accessor(qualifier="cartValidations", type=GETTER) public Set<TmaCartValidationModel> getCartValidations()Generated method - Getter of theCart.cartValidationsattribute defined at extensiontuadatacommonsservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the cartValidations - Cart validation list for the given cart
-
getEarliestRetrievalDate
Generated method - Getter of theCart.earliestRetrievalDateattribute defined at extensioncommerceservices.- Returns:
- the earliestRetrievalDate - Date on which the earliest possible retrieval available for order
-
getImportStatus
Generated method - Getter of theCart.importStatusattribute defined at extensionacceleratorservices.- Returns:
- the importStatus - set the status of the import cart process
-
getInvalidMessages
@Deprecated(since="1911", forRemoval=true) @Accessor(qualifier="invalidMessages", type=GETTER) public List<String> getInvalidMessages()Deprecated, for removal: This API element is subject to removal in a future version.since 1911Generated method - Getter of theCart.invalidMessagesattribute defined at extensiontuadatacommonsservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the invalidMessages - Represents the list of cart validation errors messages.
-
getQuoteReference
Generated method - Getter of theCart.quoteReferenceattribute defined at extensioncommerceservices.- Returns:
- the quoteReference - The reference to quote from which the cart was created.
-
getSavedBy
Generated method - Getter of theCart.savedByattribute defined at extensioncommerceservices.- Returns:
- the savedBy - The user who saved the cart.
-
getSaveTime
Generated method - Getter of theCart.saveTimeattribute defined at extensioncommerceservices.- Returns:
- the saveTime - The date/time when the cart was saved.
-
getSessionId
Generated method - Getter of theCart.sessionIdattribute defined at extensioncore.- Returns:
- the sessionId
-
setCartToOrderCronJob
@Accessor(qualifier="cartToOrderCronJob", type=SETTER) public void setCartToOrderCronJob(Collection<CartToOrderCronJobModel> value) Generated method - Setter ofCart.cartToOrderCronJobattribute defined at extensionbasecommerce.- Parameters:
value- the cartToOrderCronJob
-
setCartValidations
@Accessor(qualifier="cartValidations", type=SETTER) public void setCartValidations(Set<TmaCartValidationModel> value) Generated method - Setter ofCart.cartValidationsattribute defined at extensiontuadatacommonsservices.- Parameters:
value- the cartValidations - Cart validation list for the given cart
-
setEarliestRetrievalDate
@Accessor(qualifier="earliestRetrievalDate", type=SETTER) public void setEarliestRetrievalDate(String value) Generated method - Setter ofCart.earliestRetrievalDateattribute defined at extensioncommerceservices.- Parameters:
value- the earliestRetrievalDate - Date on which the earliest possible retrieval available for order
-
setImportStatus
Generated method - Setter ofCart.importStatusattribute defined at extensionacceleratorservices.- Parameters:
value- the importStatus - set the status of the import cart process
-
setInvalidMessages
@Deprecated(since="1911", forRemoval=true) @Accessor(qualifier="invalidMessages", type=SETTER) public void setInvalidMessages(List<String> value) Deprecated, for removal: This API element is subject to removal in a future version.since 1911Generated method - Setter ofCart.invalidMessagesattribute defined at extensiontuadatacommonsservices.- Parameters:
value- the invalidMessages - Represents the list of cart validation errors messages.
-
setQuoteReference
Generated method - Setter ofCart.quoteReferenceattribute defined at extensioncommerceservices.- Parameters:
value- the quoteReference - The reference to quote from which the cart was created.
-
setSavedBy
Generated method - Setter ofCart.savedByattribute defined at extensioncommerceservices.- Parameters:
value- the savedBy - The user who saved the cart.
-
setSaveTime
Generated method - Setter ofCart.saveTimeattribute defined at extensioncommerceservices.- Parameters:
value- the saveTime - The date/time when the cart was saved.
-
setSessionId
Generated method - Setter ofCart.sessionIdattribute defined at extensioncore.- Parameters:
value- the sessionId
-