test.ojb.broker
Class BookArticle

java.lang.Object
  |
  +--test.ojb.broker.Article
        |
        +--test.ojb.broker.BookArticle
All Implemented Interfaces:
InterfaceArticle, java.io.Serializable

public class BookArticle
extends Article
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class test.ojb.broker.Article
articleId, articleName, isSelloutArticle, minimumStock, orderedUnits, price, productGroup, productGroupId, stock, supplierId, unit
 
Constructor Summary
BookArticle()
          Insert the method's description here.
BookArticle(int artId, java.lang.String artName, int suppId, int pgId, java.lang.String uni, double pric, int sto, int ordUnits, int minStock, int isSellout, java.lang.String pIsbn, java.lang.String pAuthor)
          Insert the method's description here.
 
Method Summary
 void addToStock(int diff)
          increase the amount of articles in stock by diff
 int getArticleId()
          return an articles unique id.
 java.lang.String getArticleName()
          return an articles name.
 int getMinimumStock()
          Insert the method's description here.
 int getOrderedUnits()
          Insert the method's description here.
 double getPrice()
          Insert the method's description here.
 InterfaceProductGroup getProductGroup()
           
 int getProductGroupId()
          Insert the method's description here.
 int getStock()
          Insert the method's description here.
 double getStockValue()
          return an articles ProductGroup
 int getSupplierId()
          Insert the method's description here.
 java.lang.String getUnit()
          Insert the method's description here.
 void setArticleId(int newArticleId)
          set an articles unique id.
 void setArticleName(java.lang.String newArticleName)
          set an articles name.
 void setIsSelloutArticle(int newIsSelloutArticle)
          Insert the method's description here.
 void setMinimumStock(int newMinimumStock)
          Insert the method's description here.
 void setOrderedUnits(int newOrderedUnits)
          Insert the method's description here.
 void setPrice(double newPrice)
          Insert the method's description here.
 void setProductGroup(InterfaceProductGroup newProductGroup)
          Insert the method's description here.
 void setProductGroupId(int newProductGroupId)
          Insert the method's description here.
 void setStock(int newStock)
          Insert the method's description here.
 void setSupplierId(int newSupplierId)
          Insert the method's description here.
 void setUnit(java.lang.String newUnit)
          Insert the method's description here.
 java.lang.String toString()
          return a string representaion of an article
 
Methods inherited from class test.ojb.broker.Article
getIsSelloutArticle, setIsSelloutArticle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BookArticle

public BookArticle()
Insert the method's description here. Creation date: (05.01.2001 19:31:04)


BookArticle

public BookArticle(int artId,
                   java.lang.String artName,
                   int suppId,
                   int pgId,
                   java.lang.String uni,
                   double pric,
                   int sto,
                   int ordUnits,
                   int minStock,
                   int isSellout,
                   java.lang.String pIsbn,
                   java.lang.String pAuthor)
Insert the method's description here. Creation date: (05.01.2001 19:21:38)

Method Detail

toString

public java.lang.String toString()
return a string representaion of an article

Specified by:
toString in interface InterfaceArticle
Overrides:
toString in class Article

addToStock

public void addToStock(int diff)
increase the amount of articles in stock by diff

Specified by:
addToStock in interface InterfaceArticle
Overrides:
addToStock in class Article

getArticleId

public int getArticleId()
return an articles unique id.

Specified by:
getArticleId in interface InterfaceArticle
Overrides:
getArticleId in class Article
Returns:
int the articles unique id

getArticleName

public java.lang.String getArticleName()
return an articles name.

Specified by:
getArticleName in interface InterfaceArticle
Overrides:
getArticleName in class Article
Returns:
java.lang.String

getStockValue

public double getStockValue()
return an articles ProductGroup

Specified by:
getStockValue in interface InterfaceArticle
Overrides:
getStockValue in class Article

setArticleId

public void setArticleId(int newArticleId)
set an articles unique id.

Specified by:
setArticleId in interface InterfaceArticle
Overrides:
setArticleId in class Article
Parameters:
newArticleId - int

setArticleName

public void setArticleName(java.lang.String newArticleName)
set an articles name.

Specified by:
setArticleName in interface InterfaceArticle
Overrides:
setArticleName in class Article
Parameters:
newArticleName - java.lang.String

getMinimumStock

public int getMinimumStock()
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
getMinimumStock in class Article
Returns:
int

getOrderedUnits

public int getOrderedUnits()
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
getOrderedUnits in class Article
Returns:
int

getPrice

public double getPrice()
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
getPrice in class Article
Returns:
double

getProductGroup

public InterfaceProductGroup getProductGroup()
Specified by:
getProductGroup in interface InterfaceArticle
Overrides:
getProductGroup in class Article

getProductGroupId

public int getProductGroupId()
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
getProductGroupId in class Article
Returns:
int

getStock

public int getStock()
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
getStock in class Article
Returns:
int

getSupplierId

public int getSupplierId()
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
getSupplierId in class Article
Returns:
int

getUnit

public java.lang.String getUnit()
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
getUnit in class Article
Returns:
java.lang.String

setIsSelloutArticle

public void setIsSelloutArticle(int newIsSelloutArticle)
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Parameters:
newIsSelloutArticle - int

setMinimumStock

public void setMinimumStock(int newMinimumStock)
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
setMinimumStock in class Article
Parameters:
newMinimumStock - int

setOrderedUnits

public void setOrderedUnits(int newOrderedUnits)
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
setOrderedUnits in class Article
Parameters:
newOrderedUnits - int

setPrice

public void setPrice(double newPrice)
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
setPrice in class Article
Parameters:
newPrice - double

setProductGroup

public void setProductGroup(InterfaceProductGroup newProductGroup)
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
setProductGroup in class Article
Parameters:
newProductGroup - TestThreadsNLocks.ojb.broker.InterfaceProductGroup

setProductGroupId

public void setProductGroupId(int newProductGroupId)
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
setProductGroupId in class Article
Parameters:
newProductGroupId - int

setStock

public void setStock(int newStock)
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
setStock in class Article
Parameters:
newStock - int

setSupplierId

public void setSupplierId(int newSupplierId)
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
setSupplierId in class Article
Parameters:
newSupplierId - int

setUnit

public void setUnit(java.lang.String newUnit)
Insert the method's description here. Creation date: (10.12.2000 14:40:04)

Overrides:
setUnit in class Article
Parameters:
newUnit - java.lang.String


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04