|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--test.ojb.broker.Article | +--test.ojb.broker.BookArticle
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 |
public 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)
Method Detail |
public java.lang.String toString()
toString
in interface InterfaceArticle
toString
in class Article
public void addToStock(int diff)
addToStock
in interface InterfaceArticle
addToStock
in class Article
public int getArticleId()
getArticleId
in interface InterfaceArticle
getArticleId
in class Article
public java.lang.String getArticleName()
getArticleName
in interface InterfaceArticle
getArticleName
in class Article
public double getStockValue()
getStockValue
in interface InterfaceArticle
getStockValue
in class Article
public void setArticleId(int newArticleId)
setArticleId
in interface InterfaceArticle
setArticleId
in class Article
newArticleId
- intpublic void setArticleName(java.lang.String newArticleName)
setArticleName
in interface InterfaceArticle
setArticleName
in class Article
newArticleName
- java.lang.Stringpublic int getMinimumStock()
getMinimumStock
in class Article
public int getOrderedUnits()
getOrderedUnits
in class Article
public double getPrice()
getPrice
in class Article
public InterfaceProductGroup getProductGroup()
getProductGroup
in interface InterfaceArticle
getProductGroup
in class Article
public int getProductGroupId()
getProductGroupId
in class Article
public int getStock()
getStock
in class Article
public int getSupplierId()
getSupplierId
in class Article
public java.lang.String getUnit()
getUnit
in class Article
public void setIsSelloutArticle(int newIsSelloutArticle)
newIsSelloutArticle
- intpublic void setMinimumStock(int newMinimumStock)
setMinimumStock
in class Article
newMinimumStock
- intpublic void setOrderedUnits(int newOrderedUnits)
setOrderedUnits
in class Article
newOrderedUnits
- intpublic void setPrice(double newPrice)
setPrice
in class Article
newPrice
- doublepublic void setProductGroup(InterfaceProductGroup newProductGroup)
setProductGroup
in class Article
newProductGroup
- TestThreadsNLocks.ojb.broker.InterfaceProductGrouppublic void setProductGroupId(int newProductGroupId)
setProductGroupId
in class Article
newProductGroupId
- intpublic void setStock(int newStock)
setStock
in class Article
newStock
- intpublic void setSupplierId(int newSupplierId)
setSupplierId
in class Article
newSupplierId
- intpublic void setUnit(java.lang.String newUnit)
setUnit
in class Article
newUnit
- java.lang.String
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |