org.dartra.framework
Interface Persistent

All Known Subinterfaces:
Board, DartsSet, Game, Hit, Location, Match, Player, Team, Throw, Turn, User, Zone
All Known Implementing Classes:
PersistentObject, ScramCricketGame, StandardBoard, StandardDartsSet, StandardGame, StandardHit, StandardLocation, StandardMatch, StandardPlayer, StandardTeam, StandardThrow, StandardTurn, StandardUser, StandardZone, X01Match

public interface Persistent

Interface implemented by all persistent objects of the framework. Note that this interface is not targetted at a particular persistence technology. It only models the fact that the implementing classes are persistent.

This interface defines that every persistent object has an Identity Field [Fowler] to maintain identity between an in-memory object and it's data store representation.

Author:
Erwin Vervaet

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.
 

Method Detail

setId

public void setId(java.lang.Object id)

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.


getId

public 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.