ibspan.ecap.merchant.shopdecisions.dataaccess
Class SuppliesFact

java.lang.Object
  extended by ibspan.ecap.merchant.shopdecisions.dataaccess.SuppliesFact

public class SuppliesFact
extends java.lang.Object

A class representing an order of product from a wholesaler. It is roughly equivalent to an entity of the Supplies fact table.

Author:
Micha³ Drozdowicz

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

SuppliesFact

public SuppliesFact()

SuppliesFact

public 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.

Parameters:
wholesalerKey - the wholesaler key
productKey - the product key
orderDateKey - the order date key
orderTimeKey - the order time key
deliveryDateKey - the delivery date key
deliveryTimeKey - the delivery time key
quantityOrdered - the quantity ordered
valueOrdered - the value ordered
quantityDelivered - the quantity delivered
valueDelivered - the value delivered
Method Detail

getWholesalerKey

public int getWholesalerKey()
Gets the key of the wholesaler dimension entry describing the wholesaler who handled this order.

Returns:
key id of the wholesaler dimension entry describing the wholesaler who handled this order.

setWholesalerKey

public void setWholesalerKey(int wholesalerKey)
Sets the id of the wholesaler dimension entry describing the wholesaler who handled this order.

Parameters:
wholesalerKey - the id of the wholesaler dimension entry describing the wholesaler who handled this order.

getProductKey

public int getProductKey()
Gets the key to the product dimension entry describing the product delivered.

Returns:
the key to the product dimension entry describing the product delivered.

setProductKey

public void setProductKey(int productKey)
Sets the key to the product dimension entry describing the product delivered.

Parameters:
productKey - key to the product dimension entry describing the product delivered.

getOrderDateKey

public int getOrderDateKey()
Gets the key to the date dimension entry describing the date of the making of the order.

Returns:
the key to the date dimension entry describing the date of the making of the order.

setOrderDateKey

public void setOrderDateKey(int orderDateKey)
Sets the key to the date dimension entry describing the date of the making of the order.

Parameters:
orderDateKey - the key to the date dimension entry describing the date of the making of the order.

getOrderTimeKey

public int getOrderTimeKey()
Gets the key to the time dimension entry describing the time of day of the making of the order.

Returns:
the key to the time dimension entry describing the time of day of the making of the order.

setOrderTimeKey

public void setOrderTimeKey(int orderTimeKey)
Sets the key to the time dimension entry describing the time of day of the making of the order.

Parameters:
orderTimeKey - the key to the time dimension entry describing the time of day of the making of the order.

getDeliveryDateKey

public int getDeliveryDateKey()
Gets the key to the date dimension entry describing the date the ordered product was delivered.

Returns:
the key to the date dimension entry describing the date the ordered product was delivered.

setDeliveryDateKey

public void setDeliveryDateKey(int deliveryDateKey)
Sets the key to the date dimension entry describing the date the ordered product was delivered.

Parameters:
deliveryDateKey - the key to the date dimension entry describing the date the ordered product was delivered.

getDeliveryTimeKey

public int getDeliveryTimeKey()
Gets the key to the time dimension entry describing the time of day when the ordered product was delivered.

Returns:
the key to the time dimension entry describing the time of day when the ordered product was delivered.

setDeliveryTimeKey

public void setDeliveryTimeKey(int deliveryTimeKey)
Sets the key to the time dimension entry describing the time of day when the ordered product was delivered.

Parameters:
deliveryTimeKey - the key to the time dimension entry describing the time of day when the ordered product was delivered.

getQuantityOrdered

public int getQuantityOrdered()
Gets the amount of product ordered

Returns:
the amount of product ordered

setQuantityOrdered

public void setQuantityOrdered(int quantityOrdered)
Sets the amount of product ordered

Parameters:
quantityOrdered - the amount of product ordered

getValueOrdered

public float getValueOrdered()
Gets the total value of the product ordered using the ordering price

Returns:
the total value of the product ordered using the ordering price

setValueOrdered

public void setValueOrdered(float valueOrdered)
Sets the total value of the product ordered using the ordering price

Parameters:
valueOrdered - total value of the product ordered using the ordering price

getQuantityDelivered

public int getQuantityDelivered()
Gets the amount of product delivered by the wholesaler.

Returns:
the amount of product delivered by the wholesaler

setQuantityDelivered

public void setQuantityDelivered(int quantityDelivered)
Sets the amount of product delivered by the wholesaler.

Parameters:
quantityDelivered - the amount of product delivered by the wholesaler.

getValueDelivered

public float getValueDelivered()
Gets the total value of the delivered product using the delivery price.

Returns:
the total value of the delivered product using the delivery price.

setValueDelivered

public void setValueDelivered(float valueDelivered)
Sets the total value of the delivered product using the delivery price.

Parameters:
valueDelivered - the total value of the delivered product using the delivery price.