org.apache.jdo.tck.pc.shoppingcart
Class Product
java.lang.Object
org.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
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sku
protected java.lang.String sku
- Identity field when used with application identity
description
protected java.lang.String description
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
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.