org.apache.jdo.tck.pc.shoppingcart
Class Product

java.lang.Object
  extended byorg.apache.jdo.tck.pc.shoppingcart.Product
All Implemented Interfaces:
java.io.Serializable

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

This class represents a product that you would buy from an online store.

See Also:
Serialized Form

Nested Class Summary
static class Product.Oid
           
 
Field Summary
protected  java.lang.String description
           
protected  java.lang.String sku
          Identity field when used with application identity
 
Constructor Summary
protected Product()
          No-arg constructor required by JDO; not for public consumption
  Product(java.lang.String sku)
          Domain model constructor
  Product(java.lang.String sku, java.lang.String description)
          Constructor with sku and description
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getSku()
           
 void setDescription(java.lang.String description)
           
 void setSku(java.lang.String sku)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sku

protected java.lang.String sku
Identity field when used with application identity


description

protected java.lang.String description
Constructor Detail

Product

protected Product()
No-arg constructor required by JDO; not for public consumption


Product

public Product(java.lang.String sku)
Domain model constructor


Product

public Product(java.lang.String sku,
               java.lang.String description)
Constructor with sku and description

Method Detail

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getSku

public java.lang.String getSku()

setSku

public void setSku(java.lang.String sku)


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.