org.springframework.richclient.samples.simple.domain
Class ContactDataStore

java.lang.Object
  extended by org.springframework.richclient.samples.simple.domain.ContactDataStore

public class ContactDataStore
extends Object

This class provides a trivial in-memory datastore to hold all the contacts. In a real application, this would probably be a server-side object that is accessed via an interface using the typical Spring wiring and remoting.

Author:
Larry Streepy

Constructor Summary
ContactDataStore()
          Default constructor - "load" our initial data.
 
Method Summary
 void add(Contact contact)
          Add a new contact.
 void delete(Contact contact)
          Delete a contact.
 Contact[] getAllContacts()
          Get all the contacts.
 void update(Contact contact)
          Update a contact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContactDataStore

public ContactDataStore()
Default constructor - "load" our initial data.

Method Detail

getAllContacts

public Contact[] getAllContacts()
Get all the contacts.

Returns:
Array of all contact objects

update

public void update(Contact contact)
Update a contact.


delete

public void delete(Contact contact)
Delete a contact.


add

public void add(Contact contact)
Add a new contact.



Copyright © 2004-2008 The Spring Framework. All Rights Reserved.