|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
public interface DatabaseObject
A DatabaseObject should provide handling of a database ID. All implementing
classes should overwrite equals(Object) to
ensure equality evaluation based on the specific values of the DatabaseObject
rather than their ID or identity.
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Equality of DatabaseObject should be defined by their values regardless of their id. |
Integer |
getID()
Returns the unique id of this database object. |
void |
setID(Integer id)
Sets the id of this database object. |
| Method Detail |
|---|
boolean equals(Object obj)
equals in class Objectobj - another DatabaseObject
Integer getID()
void setID(Integer id)
id - the id to be set
|
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||||