|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.examples.bugzooky.biz.PersonManager
public class PersonManager
Manager class that is used to access a "database" of people that is tracked in memory.
Constructor Summary | |
---|---|
PersonManager()
|
Method Summary | |
---|---|
void |
deletePerson(int id)
Deletes a person from the system...doesn't do anything fancy to clean up where the person is used. |
List<Person> |
getAllPeople()
Gets a list of all the people in the system. |
Person |
getPerson(int id)
Returns the person with the specified ID, or null if no such person exists. |
Person |
getPerson(String username)
Returns a person with the specified username, if one exists. |
void |
saveOrUpdate(Person person)
Updates the person if the ID matches an existing person, otherwise saves a new person. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersonManager()
Method Detail |
---|
public Person getPerson(int id)
public Person getPerson(String username)
public List<Person> getAllPeople()
public void saveOrUpdate(Person person)
public void deletePerson(int id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |