FeatureChanges

public class FeatureChanges

Methods

add

public static long add(String tableName, long featureId, int operation)

add

public static long add(String tableName, long featureId, long attachId, int attachOperation)

changeFeatureId

public static int changeFeatureId(String tableName, long oldFeatureId, long newFeatureId)

changeFeatureIdForAttaches

public static int changeFeatureIdForAttaches(String tableName, long oldFeatureId, long newFeatureId)

delete

public static int delete(String tableName, String selection, String[] selectionArgs)

delete

public static int delete(String tableName, String selection)

delete

public static void delete(String tableName)

deleteAttachNotSyncFlag

public static int deleteAttachNotSyncFlag(String tableName, long featureId, long attachId)

deleteAttachTempFlag

public static int deleteAttachTempFlag(String tableName, long featureId, long attachId)

deleteFeatureNotSyncFlag

public static int deleteFeatureNotSyncFlag(String tableName, long featureId)

deleteFeatureTempFlag

public static int deleteFeatureTempFlag(String tableName, long featureId)

getAttachChanges

public static Cursor getAttachChanges(String tableName, long featureId)

getAttachChanges

public static Cursor getAttachChanges(String tableName, long featureId, long attachId)

getAttachChanges

public static Cursor getAttachChanges(String tableName, long featureId, long attachId, int attachOperation)

getChangeCount

public static long getChangeCount(String tableName)

getChanges

public static Cursor getChanges(String tableName)

getChanges

public static Cursor getChanges(String tableName, long featureId)

getChanges

public static Cursor getChanges(String tableName, long featureId, int operation)

getEntriesCount

public static long getEntriesCount(String tableName)

getFirstChangeFromRecordId

public static Cursor getFirstChangeFromRecordId(String tableName, long recordId)

getLastChangeRecordId

public static long getLastChangeRecordId(String tableName)

getSelectionForSync

protected static String getSelectionForSync()

hasAttachFlags

public static boolean hasAttachFlags(String tableName, long featureId, long attachId)

hasAttachNotSyncFlag

public static boolean hasAttachNotSyncFlag(String tableName, long featureId, long attachId)

hasAttachTempFlag

public static boolean hasAttachTempFlag(String tableName, long featureId, long attachId)

hasFeatureFlags

public static boolean hasFeatureFlags(String tableName, long featureId)

hasFeatureNotSyncFlag

public static boolean hasFeatureNotSyncFlag(String tableName, long featureId)

hasFeatureTempFlag

public static boolean hasFeatureTempFlag(String tableName, long featureId)

haveFeaturesNotSyncFlag

public static boolean haveFeaturesNotSyncFlag(String tableName)

initialize

public static void initialize(String tableName)

insert

public static long insert(String tableName, ContentValues values)

isAttachChanges

public static boolean isAttachChanges(String tableName, long featureId)

isAttachChanges

public static boolean isAttachChanges(String tableName, long featureId, long attachId)

isAttachChanges

public static boolean isAttachChanges(String tableName, long featureId, long attachId, int attachOperation)

isAttachesForDelete

public static boolean isAttachesForDelete(String tableName, long featureId)

isChanges

public static boolean isChanges(String tableName)

isChanges

public static boolean isChanges(String tableName, long featureId)

isChanges

public static boolean isChanges(String tableName, long featureId, int operation)

isRecords

public static boolean isRecords(String tableName, String selection)

query

public static Cursor query(String tableName, String[] projection, String selection, String[] selectionArgs, String sortOrder, String limit)

query

public static Cursor query(String tableName, String selection, String sortOrder, String limit)

removeAllAttachChanges

public static int removeAllAttachChanges(String tableName, long featureId)

removeAllAttachChangesToLast

public static int removeAllAttachChangesToLast(String tableName, long featureId, long lastRecordId)

removeAllChanges

public static int removeAllChanges(String tableName)

removeAllChangesToLast

public static int removeAllChangesToLast(String tableName, long lastRecordId)

removeAttachChanges

public static int removeAttachChanges(String tableName, long featureId, long attachId)

removeAttachChanges

public static int removeAttachChanges(String tableName, long featureId, long attachId, int attachOperation)

removeAttachChangesToLast

public static int removeAttachChangesToLast(String tableName, long featureId, long attachId, long lastRecordId)

removeAttachChangesToLast

public static int removeAttachChangesToLast(String tableName, long featureId, long attachId, int attachOperation, long lastRecordId)

removeChangeRecord

public static int removeChangeRecord(String tableName, long recordId)

removeChanges

public static int removeChanges(String tableName, long featureId)

removeChanges

public static int removeChanges(String tableName, long featureId, int operation)

removeChangesToLast

public static int removeChangesToLast(String tableName, long featureId, long lastRecordId)

removeChangesToLast

public static int removeChangesToLast(String tableName, long featureId, int operation, long lastRecordId)

replace

public static long replace(String tableName, ContentValues values)

setAttachNotSyncFlag

public static long setAttachNotSyncFlag(String tableName, long featureId, long attachId)

setAttachTempFlag

public static long setAttachTempFlag(String tableName, long featureId, long attachId)

setFeatureNotSyncFlag

public static long setFeatureNotSyncFlag(String tableName, long featureId)

setFeatureTempFlag

public static long setFeatureTempFlag(String tableName, long featureId)

setOperation

public static int setOperation(String tableName, long recordId, int operation)

setOperation

public static int setOperation(String tableName, long recordId, long featureId, long attachId, int attachOperation)

update

public static int update(String tableName, ContentValues values, String selection, String[] selectionArgs)