|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibspan.ecap.merchant.shopdecisions.dataaccess.SuppliesFact
public class SuppliesFact
A class representing an order of product from a wholesaler. It is roughly equivalent to an entity of the Supplies fact table.
Constructor Summary | |
---|---|
SuppliesFact()
|
|
SuppliesFact(int wholesalerKey,
int productKey,
int orderDateKey,
int orderTimeKey,
int deliveryDateKey,
int deliveryTimeKey,
int quantityOrdered,
float valueOrdered,
int quantityDelivered,
float valueDelivered)
Creates a new instance of SuppliesFact . |
Method Summary | |
---|---|
int |
getDeliveryDateKey()
Gets the key to the date dimension entry describing the date the ordered product was delivered. |
int |
getDeliveryTimeKey()
Gets the key to the time dimension entry describing the time of day when the ordered product was delivered. |
int |
getOrderDateKey()
Gets the key to the date dimension entry describing the date of the making of the order. |
int |
getOrderTimeKey()
Gets the key to the time dimension entry describing the time of day of the making of the order. |
int |
getProductKey()
Gets the key to the product dimension entry describing the product delivered. |
int |
getQuantityDelivered()
Gets the amount of product delivered by the wholesaler. |
int |
getQuantityOrdered()
Gets the amount of product ordered |
float |
getValueDelivered()
Gets the total value of the delivered product using the delivery price. |
float |
getValueOrdered()
Gets the total value of the product ordered using the ordering price |
int |
getWholesalerKey()
Gets the key of the wholesaler dimension entry describing the wholesaler who handled this order. |
void |
setDeliveryDateKey(int deliveryDateKey)
Sets the key to the date dimension entry describing the date the ordered product was delivered. |
void |
setDeliveryTimeKey(int deliveryTimeKey)
Sets the key to the time dimension entry describing the time of day when the ordered product was delivered. |
void |
setOrderDateKey(int orderDateKey)
Sets the key to the date dimension entry describing the date of the making of the order. |
void |
setOrderTimeKey(int orderTimeKey)
Sets the key to the time dimension entry describing the time of day of the making of the order. |
void |
setProductKey(int productKey)
Sets the key to the product dimension entry describing the product delivered. |
void |
setQuantityDelivered(int quantityDelivered)
Sets the amount of product delivered by the wholesaler. |
void |
setQuantityOrdered(int quantityOrdered)
Sets the amount of product ordered |
void |
setValueDelivered(float valueDelivered)
Sets the total value of the delivered product using the delivery price. |
void |
setValueOrdered(float valueOrdered)
Sets the total value of the product ordered using the ordering price |
void |
setWholesalerKey(int wholesalerKey)
Sets the id of the wholesaler dimension entry describing the wholesaler who handled this order. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuppliesFact()
public SuppliesFact(int wholesalerKey, int productKey, int orderDateKey, int orderTimeKey, int deliveryDateKey, int deliveryTimeKey, int quantityOrdered, float valueOrdered, int quantityDelivered, float valueDelivered)
SuppliesFact
.
wholesalerKey
- the wholesaler keyproductKey
- the product keyorderDateKey
- the order date keyorderTimeKey
- the order time keydeliveryDateKey
- the delivery date keydeliveryTimeKey
- the delivery time keyquantityOrdered
- the quantity orderedvalueOrdered
- the value orderedquantityDelivered
- the quantity deliveredvalueDelivered
- the value deliveredMethod Detail |
---|
public int getWholesalerKey()
public void setWholesalerKey(int wholesalerKey)
wholesalerKey
- the id of the wholesaler dimension entry describing the wholesaler who handled this order.public int getProductKey()
public void setProductKey(int productKey)
productKey
- key to the product dimension entry describing the product delivered.public int getOrderDateKey()
public void setOrderDateKey(int orderDateKey)
orderDateKey
- the key to the date dimension entry describing the date of the making of the order.public int getOrderTimeKey()
public void setOrderTimeKey(int orderTimeKey)
orderTimeKey
- the key to the time dimension entry describing the time of day of the making of the order.public int getDeliveryDateKey()
public void setDeliveryDateKey(int deliveryDateKey)
deliveryDateKey
- the key to the date dimension entry describing the date the ordered product was delivered.public int getDeliveryTimeKey()
public void setDeliveryTimeKey(int deliveryTimeKey)
deliveryTimeKey
- the key to the time dimension entry describing the time of day when the ordered product was delivered.public int getQuantityOrdered()
public void setQuantityOrdered(int quantityOrdered)
quantityOrdered
- the amount of product orderedpublic float getValueOrdered()
public void setValueOrdered(float valueOrdered)
valueOrdered
- total value of the product ordered using the ordering pricepublic int getQuantityDelivered()
public void setQuantityDelivered(int quantityDelivered)
quantityDelivered
- the amount of product delivered by the wholesaler.public float getValueDelivered()
public void setValueDelivered(float valueDelivered)
valueDelivered
- the total value of the delivered product using the delivery price.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |