Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sample.tutorial.update.database
Class Database  view Database download Database.java

java.lang.Object
  extended bycom.sample.tutorial.update.database.Database

public class Database
extends java.lang.Object

Simulates a database of contact records.


Field Summary
protected  java.util.ArrayList contacts
          Contact records.
protected static Database singleton
          Single instance of database.
 
Constructor Summary
protected Database()
           
 
Method Summary
 Contact getContact(int contactId)
           
static Database getInstance()
           
 void setContact(Contact contact)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

protected static Database singleton
Single instance of database.


contacts

protected java.util.ArrayList contacts
Contact records.

Constructor Detail

Database

protected Database()
Method Detail

getContact

public Contact getContact(int contactId)

setContact

public void setContact(Contact contact)

getInstance

public static Database getInstance()