|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
All Persistable objects in our system use Long IDs as
unique identifiers.
| Method Summary | |
Long |
getId()
Gets the Id number for this item. |
void |
setTemplateId(Long id)
All Peristable items have an id, and by and large all of them shortcut the equals method and the hashcode methods to only compare on their given ids. |
| Method Detail |
public Long getId()
Hibernate.public void setTemplateId(Long id)
User template = new User();
template.setTemplateId(rowid);
if (mUsers.contains(template)) {
// do some stuff.
}
id - The Id usually given to the object by a persistance manager
such as Hibernate, but in your case if you are
calling this method, you are hunting for an object in a
collection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||