CoCoME TestDriver for Reference Implementation

org.cocome.tradingsystem.testdriver
Class Enterprise

java.lang.Object
  extended by org.cocome.tradingsystem.testdriver.Enterprise
All Implemented Interfaces:
org.cocome.tradingsystem.systests.interfaces.IEnterprise

public class Enterprise
extends java.lang.Object
implements org.cocome.tradingsystem.systests.interfaces.IEnterprise

Glue code for the entire enterprice (i.e. the database).

Version:
$Rev: 63 $
Author:
Benjamin Hummel, $Author: hummel $

Field Summary
private  org.cocome.tradingsystem.inventory.data.enterprise.TradingEnterprise dbEnterprise
          The DB representation of the enterprise.
private  org.cocome.tradingsystem.inventory.data.enterprise.ProductSupplier defaultSupplier
          The supplier used for all products.
 
Constructor Summary
Enterprise()
          Create the enterprise.
 
Method Summary
 org.cocome.tradingsystem.systests.interfaces.IProduct createProduct(int barcode, int purchasePrice, java.lang.String name)
          
 boolean existsProductTransfer(org.cocome.tradingsystem.systests.interfaces.IProduct product, org.cocome.tradingsystem.systests.interfaces.IStorePC storeFrom, org.cocome.tradingsystem.systests.interfaces.IStorePC storeTo)
          
 org.cocome.tradingsystem.inventory.data.enterprise.TradingEnterprise getDBEnterprise()
          Returns the enterprise DB object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbEnterprise

private final org.cocome.tradingsystem.inventory.data.enterprise.TradingEnterprise dbEnterprise
The DB representation of the enterprise.


defaultSupplier

private final org.cocome.tradingsystem.inventory.data.enterprise.ProductSupplier defaultSupplier
The supplier used for all products.

Constructor Detail

Enterprise

public Enterprise()
Create the enterprise.

Method Detail

createProduct

public org.cocome.tradingsystem.systests.interfaces.IProduct createProduct(int barcode,
                                                                           int purchasePrice,
                                                                           java.lang.String name)

Specified by:
createProduct in interface org.cocome.tradingsystem.systests.interfaces.IEnterprise

getDBEnterprise

public org.cocome.tradingsystem.inventory.data.enterprise.TradingEnterprise getDBEnterprise()
Returns the enterprise DB object.


existsProductTransfer

public boolean existsProductTransfer(org.cocome.tradingsystem.systests.interfaces.IProduct product,
                                     org.cocome.tradingsystem.systests.interfaces.IStorePC storeFrom,
                                     org.cocome.tradingsystem.systests.interfaces.IStorePC storeTo)

Specified by:
existsProductTransfer in interface org.cocome.tradingsystem.systests.interfaces.IEnterprise

CoCoME TestDriver for Reference Implementation

CoCoME TestDriver for Reference Implementation - 0.1