|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Identifiable
General contract for things that have names, numeric IDs, and UUIDs. These are very common for nontrivial objects.
Names may not be unique for any given set of Identifiables. They are generally human-oriented.
Numeric IDs may only be unique for a set of Identifiables in a specific context (e.g. a single computer or database). They are generally small enough to be human-legible but may be automatically generated (e.g. auto incremented).
GUIDs should be globally unique for all of a specific kind of identifiable - in fact they should generally follow the UUID design and be unique for all things in the universe. GUIDs are represented as a single String; this interface does not require a required format. GUIDs are generally too long to be very human-legible.
Copyright 2008 Partner Software, Inc.
| Method Summary | |
|---|---|
java.lang.String |
getGuid()
Globally-unique ID (GUID) for this object. |
int |
getId()
Numeric ID for this object. |
java.lang.String |
getName()
Name of this object. |
| Method Detail |
|---|
java.lang.String getName()
int getId()
java.lang.String getGuid()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||