org.apache.ojb.broker
Class StockDetail

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

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

See Also:
Serialized Form

Field Summary
protected  boolean isSelloutArticle
           
protected  int minimumStock
           
protected  int orderedUnits
           
protected  int stock
           
protected  java.lang.String unit
           
 
Constructor Summary
StockDetail()
           
StockDetail(boolean sellout, int minimum, int ordered, int stock, java.lang.String unit, ArticleWithStockDetail parent)
           
 
Method Summary
 int getMinimumStock()
          Returns the minimumStock.
 ArticleWithStockDetail getMyArticle()
          Returns the myArticle.
 int getOrderedUnits()
          Returns the orderedUnits.
 int getStock()
           
 java.lang.String getUnit()
          Returns the unit.
 boolean isSelloutArticle()
          Returns the isSelloutArticle.
 void setIsSelloutArticle(boolean isSelloutArticle)
          Sets the isSelloutArticle.
 void setMinimumStock(int minimumStock)
          Sets the minimumStock.
 void setMyArticle(ArticleWithStockDetail myArticle)
          Sets the myArticle.
 void setOrderedUnits(int orderedUnits)
          Sets the orderedUnits.
 void setStock(int newStock)
           
 void setUnit(java.lang.String unit)
          Sets the unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isSelloutArticle

protected boolean isSelloutArticle

minimumStock

protected int minimumStock

orderedUnits

protected int orderedUnits

stock

protected int stock

unit

protected java.lang.String unit
Constructor Detail

StockDetail

public StockDetail()

StockDetail

public StockDetail(boolean sellout,
                   int minimum,
                   int ordered,
                   int stock,
                   java.lang.String unit,
                   ArticleWithStockDetail parent)
Method Detail

getStock

public int getStock()

setStock

public void setStock(int newStock)

isSelloutArticle

public boolean isSelloutArticle()
Returns the isSelloutArticle.

Returns:
boolean

getMinimumStock

public int getMinimumStock()
Returns the minimumStock.

Returns:
int

getMyArticle

public ArticleWithStockDetail getMyArticle()
Returns the myArticle.

Returns:
ArticleWithStockDetail

getOrderedUnits

public int getOrderedUnits()
Returns the orderedUnits.

Returns:
int

getUnit

public java.lang.String getUnit()
Returns the unit.

Returns:
String

setIsSelloutArticle

public void setIsSelloutArticle(boolean isSelloutArticle)
Sets the isSelloutArticle.

Parameters:
isSelloutArticle - The isSelloutArticle to set

setMinimumStock

public void setMinimumStock(int minimumStock)
Sets the minimumStock.

Parameters:
minimumStock - The minimumStock to set

setMyArticle

public void setMyArticle(ArticleWithStockDetail myArticle)
Sets the myArticle.

Parameters:
myArticle - The myArticle to set

setOrderedUnits

public void setOrderedUnits(int orderedUnits)
Sets the orderedUnits.

Parameters:
orderedUnits - The orderedUnits to set

setUnit

public void setUnit(java.lang.String unit)
Sets the unit.

Parameters:
unit - The unit 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