C# Class SmartDeviceProject1.SqlCeStorageHandler

Inheritance: IDisposable
Afficher le fichier Open project: rafek/SyncFx Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
GetSqlCeConnection ( ) : SqlCeConnection

Method Details

ApplyItem() public méthode

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
Résultat void

CloseConnection() public static méthode

public static CloseConnection ( ) : void
Résultat void

DeleteItem() public méthode

public DeleteItem ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

DeleteItemUsingMetadataId() public méthode

public DeleteItemUsingMetadataId ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

DeleteList() public méthode

public DeleteList ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

DeleteListUsingMetadataId() public méthode

public DeleteListUsingMetadataId ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

DeletePriority() public méthode

public DeletePriority ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

DeleteStatus() public méthode

public DeleteStatus ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

DeleteTag() public méthode

public DeleteTag ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

DeleteTagItemMapping() public méthode

public DeleteTagItemMapping ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetAllItems() public méthode

public GetAllItems ( System.Guid listId ) : List
listId System.Guid
Résultat List

GetAllLists() public méthode

public GetAllLists ( ) : object
Résultat object

GetAllPriority() public méthode

public GetAllPriority ( ) : List
Résultat List

GetAllStatus() public méthode

public GetAllStatus ( ) : List
Résultat List

GetAllTags() public méthode

public GetAllTags ( ) : List
Résultat List

GetAnchor() public méthode

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

GetChanges() public méthode

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
Résultat IEnumerable

InsertItem() public méthode

public InsertItem ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

InsertItem() public méthode

public InsertItem ( SqlCeOfflineEntity entity, bool isDirty ) : void
entity SqlCeOfflineEntity
isDirty bool
Résultat void

InsertList() public méthode

public InsertList ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

InsertList() public méthode

public InsertList ( SqlCeOfflineEntity entity, bool isDirty ) : void
entity SqlCeOfflineEntity
isDirty bool
Résultat void

InsertPriority() public méthode

public InsertPriority ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

InsertStatus() public méthode

public InsertStatus ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

InsertTag() public méthode

public InsertTag ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

InsertTagItemMapping() public méthode

public InsertTagItemMapping ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

InsertTagItemMapping() public méthode

public InsertTagItemMapping ( SqlCeOfflineEntity entity, bool isDirty ) : void
entity SqlCeOfflineEntity
isDirty bool
Résultat void

InsertUser() public méthode

public InsertUser ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

ItemExists() public méthode

public ItemExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
Résultat bool

ListExists() public méthode

public ListExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
Résultat bool

PriorityExists() public méthode

public PriorityExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
Résultat bool

ResetDirtyAndDeleteTombstones() public méthode

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
Résultat void

SaveAnchor() public méthode

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

SaveDownloadedChanges() public méthode

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.
Résultat void

SqlCeStorageHandler() public méthode

public SqlCeStorageHandler ( ) : System
Résultat System

StatusExists() public méthode

public StatusExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
Résultat bool

TagExists() public méthode

public TagExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
Résultat bool

TagItemMappingExists() public méthode

public TagItemMappingExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
Résultat bool

TombstoneItem() public méthode

public TombstoneItem ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

TombstoneList() public méthode

public TombstoneList ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

TombstoneTagItemMapping() public méthode

public TombstoneTagItemMapping ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

UpdateItem() public méthode

public UpdateItem ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

UpdateItem() public méthode

public UpdateItem ( SqlCeOfflineEntity entity, bool isDirty ) : void
entity SqlCeOfflineEntity
isDirty bool
Résultat void

UpdateList() public méthode

public UpdateList ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

UpdateList() public méthode

public UpdateList ( SqlCeOfflineEntity entity, bool isDirty ) : void
entity SqlCeOfflineEntity
isDirty bool
Résultat void

UpdatePriority() public méthode

public UpdatePriority ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

UpdateStatus() public méthode

public UpdateStatus ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

UpdateTag() public méthode

public UpdateTag ( SqlCeOfflineEntity entity ) : void
entity SqlCeOfflineEntity
Résultat void

UserExists() public méthode

public UserExists ( SqlCeOfflineEntity entity ) : bool
entity SqlCeOfflineEntity
Résultat bool