edu.nrao.sss.util
Interface Identifiable


public interface Identifiable

An object that has an identity number.

Objects that implement this interface have an ID number. This interface makes no promises about the uniqueness of that number. Classes that manage Identifiable objects are expected to deal with issues of uniqueness. For example, a repository of Foo objects would be expected to ensure that each of its Foo instances had unique IDs.

The motivation for this class was to aid persistence mechanisms.

CVS Info:

$Revision: 161 $
$Date: 2006-12-15 11:48:34 -0700 (Fri, 15 Dec 2006) $
$Author: btruitt $

Since:
2006-02-24
Author:
David M. Harland

Field Summary
static Long UNIDENTIFIED
          Represents the state of being unidentified.
 
Method Summary
 Long getId()
          Returns an ID number for this object.
 

Field Detail

UNIDENTIFIED

static final Long UNIDENTIFIED
Represents the state of being unidentified. This value is suitable as initial value for Identifiable objects.

Method Detail

getId

Long getId()
Returns an ID number for this object.

Returns:
this object's identifying number.


Copyright © 2009. All Rights Reserved.