|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.examples.bugzooky.biz.ComponentManager
public class ComponentManager
Maintains a list of components in an in memory "database".
Constructor Summary | |
---|---|
ComponentManager()
|
Method Summary | |
---|---|
void |
deleteComponent(int componentId)
Deletes an existing Components. |
List<Component> |
getAllComponents()
Returns a sorted list of all components in the system. |
Component |
getComponent(int id)
Gets the component with the specified ID, or null if no such component exists. |
void |
saveOrUpdate(Component component)
Updates an existing component if the ID matches, or saves a new one otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentManager()
Method Detail |
---|
public Component getComponent(int id)
public List<Component> getAllComponents()
public void saveOrUpdate(Component component)
public void deleteComponent(int componentId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |