|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.ArticleWithNestedStockDetail
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 |
protected int articleId
protected java.lang.String articleName
protected StockDetail stockDetail
protected double price
protected int productGroupId
protected int supplierId
Constructor Detail |
public ArticleWithNestedStockDetail()
Method Detail |
public void addToStock(int diff)
public int getArticleId()
public java.lang.String getArticleName()
public double getStockValue()
public void setArticleId(int newArticleId)
newArticleId
- intpublic void setArticleName(java.lang.String newArticleName)
newArticleName
- java.lang.Stringpublic double getPrice()
public int getProductGroupId()
public int getSupplierId()
public void setPrice(double newPrice)
newPrice
- doublepublic void setProductGroupId(int newProductGroupId)
newProductGroupId
- intpublic void setSupplierId(int newSupplierId)
newSupplierId
- intpublic StockDetail getDetail()
public StockDetail getStockDetail()
public void setStockDetail(StockDetail stockDetail)
stockDetail
- The stockDetail to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |