|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.database.utils.SqlUtils
public final class SqlUtils
SQLite utility methods.
Constructor Summary | |
---|---|
private |
SqlUtils()
Private constructor to prevent instantiation. |
Method Summary | |
---|---|
static ActivityItem.Type |
setActivityItemType(Cursor cursor,
java.lang.String field)
Return the value of the given field, or NULL if the value is not present. |
static byte[] |
setBlob(Cursor cursor,
java.lang.String field)
Return the value of the given field, or NULL if the value is not present. |
static java.lang.Boolean |
setBoolean(Cursor cursor,
java.lang.String field,
java.lang.Boolean defaultValue)
Return the value of the given field, or defaultValue if the value is not present. |
static java.lang.Integer |
setInt(Cursor cursor,
java.lang.String field,
java.lang.Integer defaultValue)
Return the value of the given field, or NULL if the value is not present. |
static java.lang.Long |
setLong(Cursor cursor,
java.lang.String field,
java.lang.Long defaultValue)
Return the value of the given field, or NULL if the value is not present. |
static java.lang.String |
setString(Cursor cursor,
java.lang.String field)
Return the value of the given field, or NULL if the value is not present. |
static ActivitiesTable.TimelineSummaryItem.Type |
setTimelineSummaryItemType(Cursor cursor,
java.lang.String field)
Return the value of the given field, or NULL if the value is not present. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private SqlUtils()
Method Detail |
---|
public static java.lang.Long setLong(Cursor cursor, java.lang.String field, java.lang.Long defaultValue)
cursor
- SQLite cursor.field
- Column identifier.defaultValue
- Value returned if value not found in Cursor.
public static java.lang.String setString(Cursor cursor, java.lang.String field)
cursor
- SQLite cursor.field
- Column identifier.
public static java.lang.Integer setInt(Cursor cursor, java.lang.String field, java.lang.Integer defaultValue)
cursor
- SQLite cursor.field
- Column identifier.defaultValue
- Value returned if value not found in Cursor.
public static java.lang.Boolean setBoolean(Cursor cursor, java.lang.String field, java.lang.Boolean defaultValue)
cursor
- SQLite cursor.field
- Column identifier.defaultValue
- Value returned if value not found in Cursor.
public static ActivityItem.Type setActivityItemType(Cursor cursor, java.lang.String field)
cursor
- SQLite cursor.field
- Column identifier.
public static ActivitiesTable.TimelineSummaryItem.Type setTimelineSummaryItemType(Cursor cursor, java.lang.String field)
cursor
- SQLite cursor.field
- Column identifier.
public static byte[] setBlob(Cursor cursor, java.lang.String field)
cursor
- SQLite cursor.field
- Column identifier.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc