hu.midori.kosmos.model.util
Class IdentifiedEntity

java.lang.Object
  extended by hu.midori.kosmos.model.util.IdentifiedEntity
Direct Known Subclasses:
JiraProject, TimestampedEntity

public abstract class IdentifiedEntity
extends java.lang.Object

Each identifiable entity class should extend this. The identifiable classes must pass a discriminator String to its ctor, that will be used to generate the integer ID.

Version:
$Id$
Author:
Aron Gombas

Constructor Summary
IdentifiedEntity(java.lang.String discriminator)
           
 
Method Summary
 int getId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifiedEntity

public IdentifiedEntity(java.lang.String discriminator)
Parameters:
discriminator - must be unique and will be used to generate the integer ID.
See Also:
getId()
Method Detail

getId

public int getId()