Package org.cyclos.entities.marketplace
Class OrderProduct
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.marketplace.OrderProduct
-
- All Implemented Interfaces:
Cloneable,HasCurrency,HasNetwork,ProcessableForProxying,IEntity
@Entity public class OrderProduct extends BaseEntity implements HasCurrency
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description OrderProduct()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrencygetCurrency()NetworkgetNetwork()Returns the network this entity belongs toOrdergetOrder()BigDecimalgetPrice()AdWebShopgetProduct()intgetProductIndex()BigDecimalgetProductTotal()BigDecimalgetQuantity()QuantityAdjustmentgetQuantityAdjustment()voidsetOrder(Order order)voidsetPrice(BigDecimal price)voidsetProduct(AdWebShop product)voidsetProductIndex(int productIndex)voidsetQuantity(BigDecimal quantity)voidsetQuantityAdjustment(QuantityAdjustment quantityAdjustment)-
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
-
-
-
-
Method Detail
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getOrder
public Order getOrder()
-
getPrice
public BigDecimal getPrice()
-
getProduct
public AdWebShop getProduct()
-
getProductIndex
public int getProductIndex()
-
getProductTotal
public BigDecimal getProductTotal()
-
getQuantity
public BigDecimal getQuantity()
-
getQuantityAdjustment
public QuantityAdjustment getQuantityAdjustment()
-
setOrder
public void setOrder(Order order)
-
setPrice
public void setPrice(BigDecimal price)
-
setProduct
public void setProduct(AdWebShop product)
-
setProductIndex
public void setProductIndex(int productIndex)
-
setQuantity
public void setQuantity(BigDecimal quantity)
-
setQuantityAdjustment
public void setQuantityAdjustment(QuantityAdjustment quantityAdjustment)
-
-