hu.midori.kosmos.model
Class Identified

java.lang.Object
  extended by hu.midori.kosmos.model.Identified
Direct Known Subclasses:
CcProject, JiraProject, SfRelease, SvnRepository

public abstract class Identified
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
Identified(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

Identified

public Identified(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()