|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEnterprise
Interface of the entire enterprise. This is used to create new products and check some global conditions on order state (so for most implementations this is just another database wrapper).
Method Summary | |
---|---|
IProduct |
createProduct(int barcode,
int purchasePrice,
java.lang.String name)
Creates a new product. |
boolean |
existsProductTransfer(IProduct product,
IStorePC storeFrom,
IStorePC storeTo)
Returns whether there is a product transfer requested (might be visible by orders in the database). |
Method Detail |
---|
IProduct createProduct(int barcode, int purchasePrice, java.lang.String name) throws java.lang.Exception
barcode
- the barcode of the product.purchasePrice
- the purchase price in Cent.name
- the name of the product.
java.lang.Exception
boolean existsProductTransfer(IProduct product, IStorePC storeFrom, IStorePC storeTo)
product
- the product to be transfered.storeFrom
- the store which has to deliver the product.storeTo
- the store which should receive the product.
|
CoCoME System Tests | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |