|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.vodafone360.people.database.tables.ContactSourceTable
public abstract class ContactSourceTable
Contains all the functionality related to the contact source database table. This table stores a list of source information for each contact. This class is never instantiated hence all methods must be static.
| Nested Class Summary | |
|---|---|
private static class |
ContactSourceTable.ContactSource
Represents the data stored in a record |
private static class |
ContactSourceTable.Field
An enumeration of all the field names in the database. |
| Field Summary | |
|---|---|
private static java.lang.String |
TABLE_NAME
Name of the table as it appears in the database |
| Constructor Summary | |
|---|---|
ContactSourceTable()
|
|
| Method Summary | |
|---|---|
static boolean |
addContactSource(long localContactId,
java.lang.String source,
SQLiteDatabase writableDb)
Add contact source to contact |
static void |
create(SQLiteDatabase writeableDb)
Create Contact Source Table. |
static boolean |
deleteAllContactSources(long localContactId,
SQLiteDatabase writableDb)
Removes all sources associated with a specific contact. |
static boolean |
fetchContactSources(long localContactId,
java.util.List<java.lang.String> sourceList,
SQLiteDatabase readableDb)
Fetches all the sources for the specified contact |
private static ContentValues |
fillUpdateData(ContactSourceTable.ContactSource contactSource)
Returns a ContentValues object that can be used to insert or update a contact source in the table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String TABLE_NAME
| Constructor Detail |
|---|
public ContactSourceTable()
| Method Detail |
|---|
public static void create(SQLiteDatabase writeableDb)
throws SQLException
writeableDb - A writable SQLite database
SQLException - If an SQL compilation error occursprivate static ContentValues fillUpdateData(ContactSourceTable.ContactSource contactSource)
contactSource - A ContactSource object with the local Contact ID and
source set appropriately.
public static boolean addContactSource(long localContactId,
java.lang.String source,
SQLiteDatabase writableDb)
localContactId - The local Contact ID from Contacts tablesource - The source string from the serverwriteableDb - A writable SQLite database
public static boolean deleteAllContactSources(long localContactId,
SQLiteDatabase writableDb)
localContactId - The local Contact ID from Contacts tablewriteableDb - A writable SQLite database
public static boolean fetchContactSources(long localContactId,
java.util.List<java.lang.String> sourceList,
SQLiteDatabase readableDb)
localContactId - The local Contact ID from Contacts tablesourceList - A list that will be populated with the source stringsreadableDb - A readable SQLite database
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
JavaDoc