net.sourceforge.stripes.examples.bugzooky.biz
Class PersonManager

java.lang.Object
  extended by net.sourceforge.stripes.examples.bugzooky.biz.PersonManager

public class PersonManager
extends Object

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

PersonManager

public PersonManager()
Method Detail

getPerson

public Person getPerson(int id)
Returns the person with the specified ID, or null if no such person exists.


getPerson

public Person getPerson(String username)
Returns a person with the specified username, if one exists.


getAllPeople

public List<Person> getAllPeople()
Gets a list of all the people in the system.


saveOrUpdate

public void saveOrUpdate(Person person)
Updates the person if the ID matches an existing person, otherwise saves a new person.


deletePerson

public void deletePerson(int id)
Deletes a person from the system...doesn't do anything fancy to clean up where the person is used.



© Copyright 2005, Stripes Development Team.