shared
Class PersistentBase

java.lang.Object
  extended by shared.PersistentBase
Direct Known Subclasses:
CatalogItem, CatalogItemAddress, RequestDataAccount, RequestDataAddress, RequestDataPersistent

public class PersistentBase
extends java.lang.Object

A base class for a bean that will be saved to a database. The primary key is defined.


Field Summary
protected  java.lang.Long id
           
 
Constructor Summary
PersistentBase()
          Creates a new instance of PersistentBase
 
Method Summary
 java.lang.Long getId()
          The accessor for the key field.
protected  void setId(java.lang.Long id)
          The mutator key field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.Long id
Constructor Detail

PersistentBase

public PersistentBase()
Creates a new instance of PersistentBase

Method Detail

getId

public java.lang.Long getId()
The accessor for the key field.

Returns:
the key field

setId

protected void setId(java.lang.Long id)
The mutator key field. It is protected to prevent other classes from setting it.

Parameters:
id - The key field value