org.cocome.tradingsystem.inventory.data.store
Class Store

java.lang.Object
  extended by org.cocome.tradingsystem.inventory.data.store.Store

public class Store
extends java.lang.Object

The class Store represents a store in the database

Author:
Yannick Welsch

Constructor Summary
Store()
           
 
Method Summary
 TradingEnterprise getEnterprise()
           
 long getId()
           
 java.lang.String getLocation()
           
 java.lang.String getName()
           
 java.util.Collection<ProductOrder> getOrders()
           
 java.util.Collection<StockItem> getStockItems()
           
 void setEnterprise(TradingEnterprise enterprise)
           
 void setId(long id)
           
 void setLocation(java.lang.String location)
           
 void setName(java.lang.String name)
           
 void setOrders(java.util.Collection<ProductOrder> productOrders)
           
 void setStockItems(java.util.Collection<StockItem> stockItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Store

public Store()
Method Detail

getId

public long getId()
Returns:
A unique identifier for Store objects

setId

public void setId(long id)
Parameters:
id - A unique identifier for Store objects

getEnterprise

public TradingEnterprise getEnterprise()
Returns:
The enterprise which the Store belongs to

setEnterprise

public void setEnterprise(TradingEnterprise enterprise)
Parameters:
enterprise - The enterprise which the Store belongs to

getLocation

public java.lang.String getLocation()
Returns:
The location of the Store

setLocation

public void setLocation(java.lang.String location)
Parameters:
location - The location of the Store

getName

public java.lang.String getName()
Returns:
The name of the Store

setName

public void setName(java.lang.String name)
Parameters:
name - The name of the Store

getOrders

public java.util.Collection<ProductOrder> getOrders()
Returns:
All productOrders of the Store

setOrders

public void setOrders(java.util.Collection<ProductOrder> productOrders)
Parameters:
productOrders - All productOrders of the Store

getStockItems

public java.util.Collection<StockItem> getStockItems()
Returns:
A list of StockItem objects. A StockItem represents a concrete product in the store including sales price, ...

setStockItems

public void setStockItems(java.util.Collection<StockItem> stockItems)
Parameters:
stockItems - A list of StockItem objects. A StockItem represents a concrete product in the store including sales price, ...