Package org.cyclos.entities.marketplace
Class Order
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.marketplace.Order
-
- All Implemented Interfaces:
Cloneable,HasCurrency,HasNetwork,ProcessableForProxying,DefinesNetwork,IEntity
@Entity public class Order extends BaseEntity implements DefinesNetwork, HasCurrency
An order represents a sale through the webshop module. It can also be a temporary order used on the shopping cart. It defines network because we must support inter-network operations (in this case network is null -global-)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Field Summary
Fields Modifier and Type Field Description static intQUANTITY_SCALE
-
Constructor Summary
Constructors Constructor Description Order()
-
Method Summary
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
round, withCurrency
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Field Detail
-
QUANTITY_SCALE
public static final int QUANTITY_SCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
addProduct
public void addProduct(OrderProduct orderProduct)
-
getBuyer
public User getBuyer()
-
getCreatedBy
public User getCreatedBy()
-
getCreationDate
public Date getCreationDate()
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getDeliveryAddress
public OrderAddress getDeliveryAddress()
-
getDeliveryMethodName
public String getDeliveryMethodName()
-
getDeliveryPrice
public BigDecimal getDeliveryPrice()
-
getDeliveryType
public AdDeliveryMethodType getDeliveryType()
-
getFinishDate
public Date getFinishDate()
-
getMaxDeliveryTime
public TimeInterval getMaxDeliveryTime()
-
getMinDeliveryTime
public TimeInterval getMinDeliveryTime()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getNumber
public String getNumber()
-
getPayment
public Payment getPayment()
-
getPaymentType
public PaymentTransferType getPaymentType()
-
isPendingByAdmin
public boolean isPendingByAdmin()
-
getProducts
public List<OrderProduct> getProducts()
-
getRemarks
public String getRemarks()
-
getSeller
public User getSeller()
-
getStatus
public OrderStatus getStatus()
-
getSubTotal
public BigDecimal getSubTotal()
-
getTotal
public BigDecimal getTotal()
-
getTotalAmount
public CurrencyAmount getTotalAmount()
-
getUpdatedDate
public Date getUpdatedDate()
-
isDeliveryConfirm
public boolean isDeliveryConfirm()
-
isSale
public boolean isSale()
-
isShowDoneMsg
public boolean isShowDoneMsg()
-
isStockUpdated
public boolean isStockUpdated()
-
setBuyer
public void setBuyer(User buyer)
-
setCreatedBy
public void setCreatedBy(User createdBy)
-
setCreationDate
public void setCreationDate(Date creationDate)
-
setCurrency
public void setCurrency(Currency currency)
-
setDeliveryAddress
public void setDeliveryAddress(OrderAddress deliveryAddress)
-
setDeliveryConfirm
public void setDeliveryConfirm(boolean deliveryConfirm)
-
setDeliveryMethodName
public void setDeliveryMethodName(String deliveryMethodName)
-
setDeliveryPrice
public void setDeliveryPrice(BigDecimal deliveryPrice)
-
setDeliveryType
public void setDeliveryType(AdDeliveryMethodType deliveryType)
-
setFinishDate
public void setFinishDate(Date finishDate)
-
setMaxDeliveryTime
public void setMaxDeliveryTime(TimeInterval maxDeliveryTime)
-
setMinDeliveryTime
public void setMinDeliveryTime(TimeInterval minDeliveryTime)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setNumber
public void setNumber(String number)
-
setPayment
public void setPayment(Payment payment)
-
setPaymentType
public void setPaymentType(PaymentTransferType paymentType)
-
setPendingByAdmin
public void setPendingByAdmin(boolean pendingByAdmin)
-
setProducts
public void setProducts(List<OrderProduct> products)
-
setRemarks
public void setRemarks(String remarks)
-
setSale
public void setSale(boolean sale)
-
setSeller
public void setSeller(User seller)
-
setShowDoneMsg
public void setShowDoneMsg(boolean showDoneMsg)
-
setStatus
public void setStatus(OrderStatus status)
-
setStockUpdated
public void setStockUpdated(boolean stockUpdated)
-
setTotal
public void setTotal(BigDecimal total)
-
setUpdatedDate
public void setUpdatedDate(Date updatedDate)
-
-