C# Class SIL.FieldWorks.FDO.Infrastructure.Impl.CommitData

This class is used with the db4o backend to record the key information about what changed in a transaction.
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Properties

Property Type Description
ObjectsAdded long[]
ObjectsDeleted System.Guid[]
ObjectsUpdated System.Guid[]
Source System.Guid
WriteGeneration int

Property Details

ObjectsAdded public property

Db4o object IDs of all the CmObjects added by the transaction. We use these rather than GUIDs because we can use this to retrieve the object, and from that get the guid, but we can't get anywhere starting with the GUID of an object we've never seen.
public long[] ObjectsAdded
return long[]

ObjectsDeleted public property

Our IDs of the objects that were deleted.
public Guid[],System ObjectsDeleted
return System.Guid[]

ObjectsUpdated public property

Our IDs of the objects that were modified.
public Guid[],System ObjectsUpdated
return System.Guid[]

Source public property

A guid unique to one particular writer; used by each client to eliminate its own commits from queries.
public Guid,System Source
return System.Guid

WriteGeneration public property

Corresponds to WriteGeneration in CmObjectSurrogate. Orders all CommitData absolutely, since each Commit gets a fresh WriteGeneration.
public int WriteGeneration
return int