ibspan.ecap.merchant.shopdecisions.dataaccess
Class DemandFact

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

public class DemandFact
extends java.lang.Object

A class representing demand for a product. It is roughly equivalent to an entity of the Demand fact table.

Author:
Micha³ Drozdowicz

Constructor Summary
DemandFact()
          Instantiates a new demand fact.
DemandFact(int dateKey, int productKey, int cicQueryCount, int shopsSellingCount)
          Instantiates a new demand fact.
 
Method Summary
 int getCicQueryCount()
          Gets the number of queries about the product sent to the cic, the day the demand was checked.
 int getDateKey()
          Gets the key to the date dimension entry that describes the date when the demand has been checked.
 int getProductKey()
          Gets the key to the product dimension entry that describes the product for which the demand was checked.
 int getRegisteredClients()
          Gets the total number of clients that registered with the GA wanting to buy the product.
 int getShopsSellingCount()
          Gets the number of shops selling the product on the day the demand was checked
 void setCicQueryCount(int cicQueryCount)
          Sets the number of queries about the product sent to the cic, the day the demand was checked.
 void setDateKey(int dateKey)
          Sets the key to the date dimension entry that describes the date when the demand has been checked.
 void setProductKey(int productKey)
          Sets the key to the product dimension entry that describes the product for which the demand was checked.
 void setRegisteredClients(int registeredClients)
          Sets the total number of clients that registered with the GA wanting to buy the product.
 void setShopsSellingCount(int shopsSellingCount)
          Sets the number of shops selling the product on the day the demand was checked
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemandFact

public DemandFact()
Instantiates a new demand fact.


DemandFact

public DemandFact(int dateKey,
                  int productKey,
                  int cicQueryCount,
                  int shopsSellingCount)
Instantiates a new demand fact.

Parameters:
dateKey - the key to the date dimension entry that describes the date when the demand has been checked.
productKey - the key to the product dimension entry that describes the product for which the demand was checked.
cicQueryCount - the cic query count
shopsSellingCount - the shops selling count
Method Detail

getDateKey

public int getDateKey()
Gets the key to the date dimension entry that describes the date when the demand has been checked.

Returns:
the key to the date dimension entry that describes the date when the demand has been checked.

setDateKey

public void setDateKey(int dateKey)
Sets the key to the date dimension entry that describes the date when the demand has been checked.

Parameters:
dateKey - the key to the date dimension entry that describes the date when the demand has been checked.

getProductKey

public int getProductKey()
Gets the key to the product dimension entry that describes the product for which the demand was checked.

Returns:
the key to the product dimension entry that describes the product for which the demand was checked.

setProductKey

public void setProductKey(int productKey)
Sets the key to the product dimension entry that describes the product for which the demand was checked.

Parameters:
productKey - the key to the product dimension entry that describes the product for which the demand was checked.

getCicQueryCount

public int getCicQueryCount()
Gets the number of queries about the product sent to the cic, the day the demand was checked.

Returns:
the number of queries about the product sent to the cic, the day the demand was checked.

setCicQueryCount

public void setCicQueryCount(int cicQueryCount)
Sets the number of queries about the product sent to the cic, the day the demand was checked.

Parameters:
cicQueryCount - the number of queries about the product sent to the cic, the day the demand was checked.

getShopsSellingCount

public int getShopsSellingCount()
Gets the number of shops selling the product on the day the demand was checked

Returns:
the number of shops selling the product on the day the demand was checked

setShopsSellingCount

public void setShopsSellingCount(int shopsSellingCount)
Sets the number of shops selling the product on the day the demand was checked

Parameters:
shopsSellingCount - the number of shops selling the product on the day the demand was checked

getRegisteredClients

public int getRegisteredClients()
Gets the total number of clients that registered with the GA wanting to buy the product.

Returns:
the total number of clients that registered with the GA wanting to buy the product.

setRegisteredClients

public void setRegisteredClients(int registeredClients)
Sets the total number of clients that registered with the GA wanting to buy the product.

Parameters:
registeredClients - the total number of clients that registered with the GA wanting to buy the product.