public class DatabaseMM
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OFF |
static java.lang.String |
ON |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
deleteAllCurrentPathItems() |
int |
deleteTotalDistance() |
java.util.ArrayList<CurrentPathItem> |
getCurrentPathItemsFromCursor(android.database.Cursor cursor) |
java.util.ArrayList<CurrentPathItem> |
getCurrentPathItemsSaved() |
java.util.ArrayList<CurrentPathItem> |
getCurrentPathItemsToUpload() |
static DatabaseMM |
getInstance(android.content.Context context) |
java.lang.String |
getMetringState() |
double |
getTotalDistance() |
long |
insertCurrentPathItem(long parentId,
double slat,
double slng,
double dlat,
double dlng,
double disp,
int sectionIncomplete,
int googlePath,
long timeStamp,
int isMock,
double accuracy,
int isHighAccuracy,
double speed,
double altitude,
int isInternet,
int batteryLevel) |
int |
updateCurrentPathItemAcknowledged(long rowId,
int acknowledged) |
int |
updateCurrentPathItemAcknowledgedForArray(java.util.ArrayList<java.lang.Long> rowId,
int acknowledged) |
int |
updateCurrentPathItemSectionIncomplete(long rowId,
int sectionIncomplete) |
int |
updateCurrentPathItemSectionIncompleteAndGooglePath(long rowId,
int sectionIncomplete,
int googlePath) |
int |
updateMetringState(java.lang.String choice) |
void |
updateTotalDistance(double totalDistance) |
public static final java.lang.String ON
public static final java.lang.String OFF
public static DatabaseMM getInstance(android.content.Context context)
public void close()
public double getTotalDistance()
public void updateTotalDistance(double totalDistance)
public int deleteTotalDistance()
public java.lang.String getMetringState()
public int updateMetringState(java.lang.String choice)
public long insertCurrentPathItem(long parentId,
double slat,
double slng,
double dlat,
double dlng,
double disp,
int sectionIncomplete,
int googlePath,
long timeStamp,
int isMock,
double accuracy,
int isHighAccuracy,
double speed,
double altitude,
int isInternet,
int batteryLevel)
public int updateCurrentPathItemSectionIncomplete(long rowId,
int sectionIncomplete)
public int updateCurrentPathItemSectionIncompleteAndGooglePath(long rowId,
int sectionIncomplete,
int googlePath)
public int updateCurrentPathItemAcknowledged(long rowId,
int acknowledged)
public int updateCurrentPathItemAcknowledgedForArray(java.util.ArrayList<java.lang.Long> rowId,
int acknowledged)
public java.util.ArrayList<CurrentPathItem> getCurrentPathItemsSaved()
public java.util.ArrayList<CurrentPathItem> getCurrentPathItemsToUpload()
public java.util.ArrayList<CurrentPathItem> getCurrentPathItemsFromCursor(android.database.Cursor cursor)
public void deleteAllCurrentPathItems()