test.ojb.broker
Class ArticleWithStockDetail

java.lang.Object
  |
  +--test.ojb.broker.ArticleWithStockDetail
All Implemented Interfaces:
java.io.Serializable

public class ArticleWithStockDetail
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  int articleId
          maps to db-column "Artikel-Nr";INT;PrimaryKey
protected  java.lang.String articleName
          maps to db-column Artikelname;CHAR
(package private)  boolean isSelloutArticle
          maps to db-column Auslaufartikel;SMALL INT
(package private)  int minimumStock
          maps to db-column Mindestbestand;INT
(package private)  int orderedUnits
          maps to db-column BestellteEinheiten;INT
protected  double price
          maps to db-column Einzelpreis;DECIMAL
protected  int productGroupId
          maps to db-column Kategorie-Nr;INT
(package private)  int stock
          maps to db-column Lagerbestand;INT
protected  StockDetail stockDetail
          this attribute is not filled through a reference lookup but with a RowReader !
protected  int supplierId
          maps to db-column Lieferanten-Nr;INT
(package private)  java.lang.String unit
          maps to db-column Liefereinheit;CHAR
 
Constructor Summary
ArticleWithStockDetail()
          Insert the method's description here.
ArticleWithStockDetail(int artId, java.lang.String artName, int suppId, int pgId, java.lang.String uni, double pric, int sto, int ordUnits, int minStock, boolean isSellout)
          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.
 StockDetail getDetail()
           
 boolean getIsSelloutArticle()
          Insert the method's description here.
 int getMinimumStock()
          Insert the method's description here.
 int getOrderedUnits()
          Insert the method's description here.
 double getPrice()
          Insert the method's description here.
 int getProductGroupId()
          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(boolean 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 setProductGroupId(int newProductGroupId)
          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 representation of an article
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

articleId

protected int articleId
maps to db-column "Artikel-Nr";INT;PrimaryKey


articleName

protected java.lang.String articleName
maps to db-column Artikelname;CHAR


isSelloutArticle

boolean isSelloutArticle
maps to db-column Auslaufartikel;SMALL INT


minimumStock

int minimumStock
maps to db-column Mindestbestand;INT


orderedUnits

int orderedUnits
maps to db-column BestellteEinheiten;INT


stockDetail

protected StockDetail stockDetail
this attribute is not filled through a reference lookup but with a RowReader !


price

protected double price
maps to db-column Einzelpreis;DECIMAL


productGroupId

protected int productGroupId
maps to db-column Kategorie-Nr;INT


stock

int stock
maps to db-column Lagerbestand;INT


supplierId

protected int supplierId
maps to db-column Lieferanten-Nr;INT


unit

java.lang.String unit
maps to db-column Liefereinheit;CHAR

Constructor Detail

ArticleWithStockDetail

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


ArticleWithStockDetail

public ArticleWithStockDetail(int artId,
                              java.lang.String artName,
                              int suppId,
                              int pgId,
                              java.lang.String uni,
                              double pric,
                              int sto,
                              int ordUnits,
                              int minStock,
                              boolean isSellout)
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 representation of an article

Overrides:
toString in class java.lang.Object

addToStock

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


getArticleId

public int getArticleId()
return an articles unique id.

Returns:
int the articles unique id

getArticleName

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

Returns:
java.lang.String

getStockValue

public double getStockValue()
return an articles ProductGroup


setArticleId

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

Parameters:
newArticleId - int

setArticleName

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

Parameters:
newArticleName - java.lang.String

getIsSelloutArticle

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

Returns:
boolean

getMinimumStock

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

Returns:
int

getOrderedUnits

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

Returns:
int

getPrice

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

Returns:
double

getProductGroupId

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

Returns:
int

getSupplierId

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

Returns:
int

getUnit

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

Returns:
java.lang.String

setIsSelloutArticle

public void setIsSelloutArticle(boolean 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)

Parameters:
newMinimumStock - int

setOrderedUnits

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

Parameters:
newOrderedUnits - int

setPrice

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

Parameters:
newPrice - double

setProductGroupId

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

Parameters:
newProductGroupId - int

setSupplierId

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

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)

Parameters:
newUnit - java.lang.String

getDetail

public StockDetail getDetail()


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