C# Class SmartDeviceProject1.SqlCeStorageHandler

Inheritance: IDisposable
Exibir arquivo Open project: rafek/SyncFx Class Usage Examples

Public Methods

Method Description
ApplyItem ( SqlCeOfflineEntity entity ) : void

Update/Delete an existing item in the local database. This method is called to apply changes received in the upload response.

CloseConnection ( ) : void
DeleteItem ( SqlCeOfflineEntity entity ) : void
DeleteItemUsingMetadataId ( SqlCeOfflineEntity entity ) : void
DeleteList ( SqlCeOfflineEntity entity ) : void
DeleteListUsingMetadataId ( SqlCeOfflineEntity entity ) : void
DeletePriority ( SqlCeOfflineEntity entity ) : void
DeleteStatus ( SqlCeOfflineEntity entity ) : void
DeleteTag ( SqlCeOfflineEntity entity ) : void
DeleteTagItemMapping ( SqlCeOfflineEntity entity ) : void
Dispose ( ) : void
GetAllItems ( System.Guid listId ) : List
GetAllLists ( ) : object
GetAllPriority ( ) : List
GetAllStatus ( ) : List
GetAllTags ( ) : List
GetAnchor ( ) : byte[]

Get the anchor/blob that was last saved received from the service.

GetChanges ( System.Guid state ) : IEnumerable

Gets all entities that were created/modified/deleted locally after the last sync.

InsertItem ( SqlCeOfflineEntity entity ) : void
InsertItem ( SqlCeOfflineEntity entity, bool isDirty ) : void
InsertList ( SqlCeOfflineEntity entity ) : void
InsertList ( SqlCeOfflineEntity entity, bool isDirty ) : void
InsertPriority ( SqlCeOfflineEntity entity ) : void
InsertStatus ( SqlCeOfflineEntity entity ) : void
InsertTag ( SqlCeOfflineEntity entity ) : void
InsertTagItemMapping ( SqlCeOfflineEntity entity ) : void
InsertTagItemMapping ( SqlCeOfflineEntity entity, bool isDirty ) : void
InsertUser ( SqlCeOfflineEntity entity ) : void
ItemExists ( SqlCeOfflineEntity entity ) : bool
ListExists ( SqlCeOfflineEntity entity ) : bool
PriorityExists ( SqlCeOfflineEntity entity ) : bool
ResetDirtyAndDeleteTombstones ( ) : void

Delete all tombstones and reset all the IsDirty bits from tables. This method is called after a successful upload to clear the local tracking information.

SaveAnchor ( byte anchor ) : void

Save the blob that was retrieved from the service.

SaveDownloadedChanges ( byte serverBlob, IEnumerable entities ) : void

Save changes retrieved from the sync service. This method is called to save changes from a download response.

SqlCeStorageHandler ( ) : System
StatusExists ( SqlCeOfflineEntity entity ) : bool
TagExists ( SqlCeOfflineEntity entity ) : bool
TagItemMappingExists ( SqlCeOfflineEntity entity ) : bool
TombstoneItem ( SqlCeOfflineEntity entity ) : void
TombstoneList ( SqlCeOfflineEntity entity ) : void
TombstoneTagItemMapping ( SqlCeOfflineEntity entity ) : void
UpdateItem ( SqlCeOfflineEntity entity ) : void
UpdateItem ( SqlCeOfflineEntity entity, bool isDirty ) : void
UpdateList ( SqlCeOfflineEntity entity ) : void
UpdateList ( SqlCeOfflineEntity entity, bool isDirty ) : void
UpdatePriority ( SqlCeOfflineEntity entity ) : void
UpdateStatus ( SqlCeOfflineEntity entity ) : void
UpdateTag ( SqlCeOfflineEntity entity ) : void
UserExists ( SqlCeOfflineEntity entity ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
GetSqlCeConnection ( ) : SqlCeConnection

Method Details

ApplyItem() public method

Update/Delete an existing item in the local database. This method is called to apply changes received in the upload response.
public ApplyItem ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

CloseConnection() public static method

public static CloseConnection ( ) : void
return void

DeleteItem() public method

public DeleteItem ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

DeleteItemUsingMetadataId() public method

public DeleteItemUsingMetadataId ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

DeleteList() public method

public DeleteList ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

DeleteListUsingMetadataId() public method

public DeleteListUsingMetadataId ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

DeletePriority() public method

public DeletePriority ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

DeleteStatus() public method

public DeleteStatus ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

DeleteTag() public method

public DeleteTag ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

DeleteTagItemMapping() public method

public DeleteTagItemMapping ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAllItems() public method

public GetAllItems ( System.Guid listId ) : List
listId System.Guid
return List

GetAllLists() public method

public GetAllLists ( ) : object
return object

GetAllPriority() public method

public GetAllPriority ( ) : List
return List

GetAllStatus() public method

public GetAllStatus ( ) : List
return List

GetAllTags() public method

public GetAllTags ( ) : List
return List

GetAnchor() public method

Get the anchor/blob that was last saved received from the service.
public GetAnchor ( ) : byte[]
return byte[]

GetChanges() public method

Gets all entities that were created/modified/deleted locally after the last sync.
public GetChanges ( System.Guid state ) : IEnumerable
state System.Guid A unique identifier for the changes that are uploaded
return IEnumerable

InsertItem() public method

public InsertItem ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

InsertItem() public method

public InsertItem ( SqlCeOfflineEntity entity, bool isDirty ) : void
entity SqlCeOfflineEntity
isDirty bool
return void

InsertList() public method

public InsertList ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

InsertList() public method

public InsertList ( SqlCeOfflineEntity entity, bool isDirty ) : void
entity SqlCeOfflineEntity
isDirty bool
return void

InsertPriority() public method

public InsertPriority ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

InsertStatus() public method

public InsertStatus ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

InsertTag() public method

public InsertTag ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

InsertTagItemMapping() public method

public InsertTagItemMapping ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

InsertTagItemMapping() public method

public InsertTagItemMapping ( SqlCeOfflineEntity entity, bool isDirty ) : void
entity SqlCeOfflineEntity
isDirty bool
return void

InsertUser() public method

public InsertUser ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

ItemExists() public method

public ItemExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
return bool

ListExists() public method

public ListExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
return bool

PriorityExists() public method

public PriorityExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
return bool

ResetDirtyAndDeleteTombstones() public method

Delete all tombstones and reset all the IsDirty bits from tables. This method is called after a successful upload to clear the local tracking information.
public ResetDirtyAndDeleteTombstones ( ) : void
return void

SaveAnchor() public method

Save the blob that was retrieved from the service.
public SaveAnchor ( byte anchor ) : void
anchor byte Server blob
return void

SaveDownloadedChanges() public method

Save changes retrieved from the sync service. This method is called to save changes from a download response.
public SaveDownloadedChanges ( byte serverBlob, IEnumerable entities ) : void
serverBlob byte New blob received from the service.
entities IEnumerable List of entities received from the service.
return void

SqlCeStorageHandler() public method

public SqlCeStorageHandler ( ) : System
return System

StatusExists() public method

public StatusExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
return bool

TagExists() public method

public TagExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
return bool

TagItemMappingExists() public method

public TagItemMappingExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
return bool

TombstoneItem() public method

public TombstoneItem ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

TombstoneList() public method

public TombstoneList ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

TombstoneTagItemMapping() public method

public TombstoneTagItemMapping ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

UpdateItem() public method

public UpdateItem ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

UpdateItem() public method

public UpdateItem ( SqlCeOfflineEntity entity, bool isDirty ) : void
entity SqlCeOfflineEntity
isDirty bool
return void

UpdateList() public method

public UpdateList ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

UpdateList() public method

public UpdateList ( SqlCeOfflineEntity entity, bool isDirty ) : void
entity SqlCeOfflineEntity
isDirty bool
return void

UpdatePriority() public method

public UpdatePriority ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

UpdateStatus() public method

public UpdateStatus ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

UpdateTag() public method

public UpdateTag ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
return void

UserExists() public method

public UserExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
return bool