|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vodafone360.people.database.persistenceHelper.PersistenceHelper
public class PersistenceHelper
Contains Methods for persisting classes to a DB and for reading values from DB and creating objects out of it
Constructor Summary | |
---|---|
PersistenceHelper()
|
Method Summary | |
---|---|
static void |
insertObject(java.lang.Object o)
NOT READY NOW - DO NOT USE. |
static void |
insertObjects(java.util.List<?> list)
NOT READY NOW - DO NOT USE. |
static boolean |
isPersistable(java.lang.Class<?> c)
Determines if an class implements the persistable interface. |
static void |
mapCursorToObject(java.lang.Object object,
Cursor cursor)
Populates an Object with values from Database. |
static void |
saveObject(java.lang.Object o)
NOT READY NOW - DO NOT USE. |
static void |
saveObjects(java.util.List<?> list)
NOT READY NOW - DO NOT USE. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceHelper()
Method Detail |
---|
public static boolean isPersistable(java.lang.Class<?> c)
c
- Class whih is to be checked
public static void saveObject(java.lang.Object o)
o
- Object to be savedpublic static void insertObject(java.lang.Object o)
o
- Object to be inserted into the databasepublic static void saveObjects(java.util.List<?> list)
list
- List to be saved in the databasepublic static void insertObjects(java.util.List<?> list)
list
- List to be inserted into databasepublic static void mapCursorToObject(java.lang.Object object, Cursor cursor) throws java.lang.Exception
object
- Object from an Class which implements persistable interfacecursor
- Cursor to a valid resultset
java.lang.Exception
- If given object is not persistable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaDoc