net.wimpi.pim.contact.db.serializable
Class ContactDatabaseImpl

java.lang.Object
  |
  +--net.wimpi.pim.util.AbstractIdentifiable
        |
        +--net.wimpi.pim.contact.db.serializable.ContactDatabaseImpl
All Implemented Interfaces:
ContactDatabase, Identifiable, java.io.Serializable

public class ContactDatabaseImpl
extends AbstractIdentifiable
implements ContactDatabase, java.io.Serializable

Class representing a serializable ContactDatabase. implementation.

Version:
0.1 (22/07/2003)
Author:
Dieter Wimberger
See Also:
Serialized Form

Field Summary
protected  ContactCollection m_ContactCollection
           
protected  ContactGroupCollection m_ContactGroupCollection
           
protected  Contact m_Owner
           
 
Constructor Summary
ContactDatabaseImpl()
           
 
Method Summary
 ContactGroup createContactGroup()
          Creates and returns a new ContactGroup instance.
 ContactCollection getContactCollection()
          Returns the collection of contacts stored in this ContactDatabase.
 ContactGroupCollection getContactGroupCollection()
          Returns the collection of contact groups stored in this ContactDatabase.
 Contact getOwner()
          Returns the owner of this ContactDatabase.
 void setOwner(Contact contact)
          Sets the owner of this ContactDatabase.
 
Methods inherited from class net.wimpi.pim.util.AbstractIdentifiable
equals, getUID, setUID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.wimpi.pim.util.Identifiable
getUID
 

Field Detail

m_ContactCollection

protected ContactCollection m_ContactCollection

m_ContactGroupCollection

protected ContactGroupCollection m_ContactGroupCollection

m_Owner

protected Contact m_Owner
Constructor Detail

ContactDatabaseImpl

public ContactDatabaseImpl()
Method Detail

getOwner

public Contact getOwner()
Description copied from interface: ContactDatabase
Returns the owner of this ContactDatabase.

Specified by:
getOwner in interface ContactDatabase
Returns:
the owner as Contact.

setOwner

public void setOwner(Contact contact)
Description copied from interface: ContactDatabase
Sets the owner of this ContactDatabase.

Specified by:
setOwner in interface ContactDatabase
Parameters:
contact - the owner as Contact.

getContactCollection

public ContactCollection getContactCollection()
Description copied from interface: ContactDatabase
Returns the collection of contacts stored in this ContactDatabase.

Specified by:
getContactCollection in interface ContactDatabase
Returns:
the collection of contacts as ContactCollection.

getContactGroupCollection

public ContactGroupCollection getContactGroupCollection()
Description copied from interface: ContactDatabase
Returns the collection of contact groups stored in this ContactDatabase.

Specified by:
getContactGroupCollection in interface ContactDatabase
Returns:
the collection of groups as ContactGroupCollection.

createContactGroup

public ContactGroup createContactGroup()
Description copied from interface: ContactDatabase
Creates and returns a new ContactGroup instance.

Specified by:
createContactGroup in interface ContactDatabase
Returns:
a new ContactGroup instace.


Copyright © 2001-2003 jpim team.