org.dartra.standard
Class PersistentObject

java.lang.Object
  extended byorg.dartra.standard.PersistentObject
All Implemented Interfaces:
Persistent
Direct Known Subclasses:
StandardBoard, StandardDartsSet, StandardGame, StandardHit, StandardLocation, StandardPlayer, StandardThrow, StandardTurn, StandardUser, StandardZone

public abstract class PersistentObject
extends java.lang.Object
implements Persistent

Abstract base class for persistent objects.

Author:
Erwin Vervaet

Constructor Summary
PersistentObject()
           
 
Method Summary
 java.lang.Object getId()
          Return the unique id of this object in the persistent store, or null if the object has not been persisted yet.
 void setId(java.lang.Object id)
          Set the unique id of this object in the persistent store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentObject

public PersistentObject()
Method Detail

setId

public void setId(java.lang.Object id)
Description copied from interface: Persistent

Set the unique id of this object in the persistent store.

Normally this method will only be called by the data access objects that manage the persistence of other framework objects.

Specified by:
setId in interface Persistent

getId

public java.lang.Object getId()
Description copied from interface: Persistent

Return the unique id of this object in the persistent store, or null if the object has not been persisted yet.

Specified by:
getId in interface Persistent