org.apache.ojb.broker
Class ArticleWithNestedStockDetail

java.lang.Object
  extended byorg.apache.ojb.broker.ArticleWithNestedStockDetail
All Implemented Interfaces:
java.io.Serializable

public class ArticleWithNestedStockDetail
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
protected  double price
          maps to db-column Einzelpreis;DECIMAL
protected  int productGroupId
          maps to db-column Kategorie-Nr;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
 
Constructor Summary
ArticleWithNestedStockDetail()
          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()
           
 double getPrice()
          Insert the method's description here.
 int getProductGroupId()
          Insert the method's description here.
 StockDetail getStockDetail()
          Returns the stockDetail.
 double getStockValue()
          return an articles ProductGroup
 int getSupplierId()
          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 setPrice(double newPrice)
          Insert the method's description here.
 void setProductGroupId(int newProductGroupId)
          Insert the method's description here.
 void setStockDetail(StockDetail stockDetail)
          Sets the stockDetail.
 void setSupplierId(int newSupplierId)
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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


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


supplierId

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

Constructor Detail

ArticleWithNestedStockDetail

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

Method Detail

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

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

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

getDetail

public StockDetail getDetail()

getStockDetail

public StockDetail getStockDetail()
Returns the stockDetail.

Returns:
StockDetail

setStockDetail

public void setStockDetail(StockDetail stockDetail)
Sets the stockDetail.

Parameters:
stockDetail - The stockDetail to set


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14