Метод | Описание | |
---|---|---|
CacheIdentity ( string key, string identity ) : void |
cache the identity
|
|
ChangeIdentityId ( string oldIdentityId, string newIdentityId ) : void |
Reparents all datasets from old identity id to a new one.
|
|
ConditionallyPutRecords ( String identityId, String datasetName, List |
Puts a list of raw records into that dataset if the local version hasn't changed (to be used in synchronizations).
|
|
CreateDataset ( string identityId, string datasetName ) : void |
Create a dataset
|
|
DeleteCachedIdentity ( string key ) : void |
Delete the cached identity id
|
|
DeleteDataset ( string identityId, string datasetName ) : void |
Deletes a dataset. All the records associated with dataset are cleared and dataset is marked as deleted for future sync.
|
|
Dispose ( ) : void |
Releases the resources consumed by this object
|
|
GetDatasetMetadata ( string identityId ) : List |
Gets a list of dataset's metadata information.
|
|
GetLastSyncCount ( string identityId, string datasetName ) : long |
Retrieves the last sync count. This sync count is a counter that represents when the last sync happened. The counter should be updated on a successful sync.
|
|
GetModifiedRecords ( string identityId, string datasetName ) : List |
Retrieves a list of locally modified records since last successful sync operation.
|
|
GetRecord ( string identityId, string datasetName, string key ) : |
Gets a raw record from local store. If the dataset/key combo doesn't // exist, null will be returned.
|
|
GetRecords ( string identityId, string datasetName ) : List |
Gets a list of all records.
|
|
GetValue ( string identityId, string datasetName, string key ) : string |
Retrieves the string value of a key in dataset. The value can be null when the record doesn't exist or is marked as deleted.
|
|
GetValueMap ( string identityId, string datasetName ) : string>.Dictionary |
Retrieves a key-value map from dataset, excluding marked as deleted values.
|
|
PurgeDataset ( string identityId, string datasetName ) : void |
This is different from DeleteDataset(String,String). Not only does it clears all records in the dataset, it also remove it from metadata table. It won't be visible in GetDatasetMetadata(String,String).
|
|
PutAllValues ( string identityId, string datasetName, string>.IDictionary |
Puts a key-value map into a dataset. This is optimized for batch operation. It's the preferred way to put a list of records into dataset.
|
|
PutRecords ( string identityId, string datasetName, List |
Puts a list of raw records into dataset.
|
|
PutValue ( string identityId, string datasetName, string key, string value ) : void |
Puts the value of a key in dataset. If a new value is assigned to the key, the record is marked as dirty. If the value is null, then the record is marked as deleted. The changed record will be synced with remote storage.
|
|
SQLiteLocalStorage ( ) : Mono.Data.Sqlite |
An implementation for Amazon.CognitoSync.SyncManager.ILocalStorage using
|
|
SQLiteLocalStorage ( ) : System |
Creates a new instance of SQLiteLocalStorage
|
|
UpdateDatasetMetadata ( string identityId, List |
Updates local dataset metadata
|
|
UpdateLastModifiedTimestamp ( string identityId, string datasetName ) : void |
Updates the last modified timestamp
|
|
UpdateLastSyncCount ( string identityId, string datasetName, long lastSyncCount ) : void |
Updates the last sync count after successful sync with the remote data store.
|
|
WipeData ( ) : void |
Wipes all locally cached data including dataset metadata and records. All opened dataset handler should not perform further operations to avoid inconsistent state.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Implements the Dispose pattern
|
Метод | Описание | |
---|---|---|
BindData ( SQLiteCommand command ) : void | ||
BindData ( SQLitePCL.sqlite3_stmt statement ) : void | ||
BindData ( SqliteCommand command ) : void | ||
CreateDatasetHelper ( string query ) : void | ||
DatasetMetadataFromReader ( SqliteDataReader reader ) : |
||
DeleteDataset ( string identityId, string datasetName, List |
||
Execute ( string query ) : void | ||
ExecuteMultipleHelper ( List |
||
ExecuteQuery ( string query ) : SQLitePCL.sqlite3_stmt | ||
GetColumnValue ( SQLitePCL.sqlite3_stmt stmt, |
||
GetCommonDatasetNames ( string oldIdentityId, string newIdentityId ) : HashSet |
||
GetDatasetMetadata ( string identityId, string datasetName ) : |
||
GetDatasetMetadataHelper ( string query ) : List |
||
GetIdentity ( string key ) : string | ||
GetLastSyncCountHelper ( string query ) : long | ||
GetMetadataHelper ( string identityId, string datasetName ) : |
||
GetModifiedRecordsHelper ( string query ) : List |
||
GetRecordHelper ( string query ) : |
||
GetRecordsHelper ( string query ) : List |
||
PutValueHelper ( string identityId, string datasetName, string key, string value ) : bool | ||
RecordFromReader ( SqliteDataReader reader ) : |
||
SetupDatabase ( ) : void | ||
SqliteStmtToDatasetMetadata ( SQLiteDataReader reader ) : |
||
SqliteStmtToDatasetMetadata ( SQLitePCL.sqlite3_stmt stmt ) : |
||
SqliteStmtToRecord ( SQLiteDataReader reader ) : |
||
SqliteStmtToRecord ( SQLitePCL.sqlite3_stmt stmt ) : |
||
ToUtf8 ( string sText ) : byte[] | ||
UpdateDatasetMetadataInternal ( string identityId, |
||
UpdateLastModifiedTimestampHelper ( string query ) : void | ||
UpdateLastSyncCountHelper ( string query ) : void | ||
UpdateOrInsertRecord ( string identityId, string datasetName, |
public CacheIdentity ( string key, string identity ) : void | ||
key | string | |
identity | string | |
Результат | void |
public ChangeIdentityId ( string oldIdentityId, string newIdentityId ) : void | ||
oldIdentityId | string | Old identity identifier. |
newIdentityId | string | New identity identifier. |
Результат | void |
public ConditionallyPutRecords ( String identityId, String datasetName, List |
||
identityId | String | Identity id. |
datasetName | String | Dataset name. |
records | List |
A list of remote records to compare with |
localRecords | List |
A list of records to check for changes. |
Результат | void |
public CreateDataset ( string identityId, string datasetName ) : void | ||
identityId | string | Identity Id |
datasetName | string | Dataset name. |
Результат | void |
public DeleteCachedIdentity ( string key ) : void | ||
key | string | |
Результат | void |
public DeleteDataset ( string identityId, string datasetName ) : void | ||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
Результат | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | Whether this object is being disposed via a call to Dispose /// or garbage collected. |
Результат | void |
public GetDatasetMetadata ( string identityId ) : List |
||
identityId | string | Identity identifier. |
Результат | List |
public GetLastSyncCount ( string identityId, string datasetName ) : long | ||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
Результат | long |
public GetModifiedRecords ( string identityId, string datasetName ) : List |
||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
Результат | List |
public GetRecord ( string identityId, string datasetName, string key ) : |
||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
key | string | Key for the record. |
Результат |
public GetRecords ( string identityId, string datasetName ) : List |
||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
Результат | List |
public GetValue ( string identityId, string datasetName, string key ) : string | ||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
key | string | record key. |
Результат | string |
public GetValueMap ( string identityId, string datasetName ) : string>.Dictionary |
||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
Результат | string>.Dictionary |
public PurgeDataset ( string identityId, string datasetName ) : void | ||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
Результат | void |
public PutAllValues ( string identityId, string datasetName, string>.IDictionary |
||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
values | string>.IDictionary | a key-value map. |
Результат | void |
public PutRecords ( string identityId, string datasetName, List |
||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
records | List |
A list of Records. |
Результат | void |
public PutValue ( string identityId, string datasetName, string key, string value ) : void | ||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
key | string | record key. |
value | string | string value. If null, the record is marked as deleted. |
Результат | void |
public SQLiteLocalStorage ( ) : Mono.Data.Sqlite | ||
Результат | Mono.Data.Sqlite |
public UpdateDatasetMetadata ( string identityId, List |
||
identityId | string | Identity identifier. |
datasetMetadata | List |
Dataset metadata. |
Результат | void |
public UpdateLastModifiedTimestamp ( string identityId, string datasetName ) : void | ||
identityId | string | Identity Identifier. |
datasetName | string | Dataset name. |
Результат | void |
public UpdateLastSyncCount ( string identityId, string datasetName, long lastSyncCount ) : void | ||
identityId | string | Identity identifier. |
datasetName | string | Dataset name. |
lastSyncCount | long | Last sync count. |
Результат | void |