|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 $ |
Field Summary | |
---|---|
static Long |
UNIDENTIFIED
Represents the state of being unidentified. |
Method Summary | |
---|---|
Long |
getId()
Returns an ID number for this object. |
Field Detail |
---|
static final Long UNIDENTIFIED
Identifiable
objects.
Method Detail |
---|
Long getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |