|
|||||||||
| Home >> All >> com >> sample >> tutorial >> update >> [ database overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.sample.tutorial.update.database
Class Database

java.lang.Objectcom.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()
|
|||||||||
| Home >> All >> com >> sample >> tutorial >> update >> [ database overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.sample.tutorial.update.database.Database