test.ojb.tutorial1
Class Product

java.lang.Object
  |
  +--test.ojb.tutorial1.Product
All Implemented Interfaces:
java.io.Serializable

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

represents product objects in the tutorial system

See Also:
Serialized Form

Field Summary
protected  java.lang.String name
          product name
protected  double price
          price per item
protected  int stock
          stock of currently available items
 
Constructor Summary
Product()
           
 
Method Summary
 int getId()
          Insert the method's description here.
 java.lang.String getName()
          Insert the method's description here.
 double getPrice()
          Insert the method's description here.
 int getStock()
          Insert the method's description here.
 void setId(int new_id)
          Insert the method's description here.
 void setName(java.lang.String newName)
          Insert the method's description here.
 void setPrice(double newPrice)
          Insert the method's description here.
 void setStock(int newStock)
          Insert the method's description here.
 java.lang.String toString()
          Insert the method's description here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

price

protected double price
price per item


stock

protected int stock
stock of currently available items


name

protected java.lang.String name
product name

Constructor Detail

Product

public Product()
Method Detail

getId

public int getId()
Insert the method's description here. Creation date: (04.03.2001 11:13:27)

Returns:
int

getName

public java.lang.String getName()
Insert the method's description here. Creation date: (04.03.2001 10:57:36)

Returns:
java.lang.String

getPrice

public double getPrice()
Insert the method's description here. Creation date: (04.03.2001 10:57:36)

Returns:
double

getStock

public int getStock()
Insert the method's description here. Creation date: (04.03.2001 10:57:36)

Returns:
int

setId

public void setId(int new_id)
Insert the method's description here. Creation date: (04.03.2001 11:13:27)

Parameters:
new_id - int

setName

public void setName(java.lang.String newName)
Insert the method's description here. Creation date: (04.03.2001 10:57:36)

Parameters:
newName - java.lang.String

setPrice

public void setPrice(double newPrice)
Insert the method's description here. Creation date: (04.03.2001 10:57:36)

Parameters:
newPrice - double

setStock

public void setStock(int newStock)
Insert the method's description here. Creation date: (04.03.2001 10:57:36)

Parameters:
newStock - int

toString

public java.lang.String toString()
Insert the method's description here. Creation date: (04.03.2001 10:57:36)

Overrides:
toString in class java.lang.Object
Returns:
int


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