org.apache.ojb.tutorials
Class Product

java.lang.Object
  extended byorg.apache.ojb.tutorials.Product

public class Product
extends java.lang.Object

represents product objects in the tutorial system

Version:

Constructor Summary
Product()
           
 
Method Summary
 java.lang.Integer getId()
          Insert the method's description here.
 java.lang.String getName()
          Insert the method's description here.
 java.lang.Double getPrice()
          Insert the method's description here.
 java.lang.Integer getStock()
          Insert the method's description here.
 void setId(java.lang.Integer new_id)
          Insert the method's description here.
 void setName(java.lang.String newName)
          Insert the method's description here.
 void setPrice(java.lang.Double newPrice)
          Insert the method's description here.
 void setStock(java.lang.Integer newStock)
          Insert the method's description here.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Product

public Product()
Method Detail

getId

public java.lang.Integer getId()
Insert the method's description here.

Returns:
int

getName

public java.lang.String getName()
Insert the method's description here.

Returns:
java.lang.String

getPrice

public java.lang.Double getPrice()
Insert the method's description here.

Returns:
double

getStock

public java.lang.Integer getStock()
Insert the method's description here.

Returns:
int

setId

public void setId(java.lang.Integer new_id)
Insert the method's description here.

Parameters:
new_id - int

setName

public void setName(java.lang.String newName)
Insert the method's description here.

Parameters:
newName - java.lang.String

setPrice

public void setPrice(java.lang.Double newPrice)
Insert the method's description here.

Parameters:
newPrice - double

setStock

public void setStock(java.lang.Integer newStock)
Insert the method's description here.

Parameters:
newStock - int

toString

public java.lang.String toString()


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