DeltaChange
Overview
The DeltaChange class represents a single changes row within a Delta. This class is used by Data Abstract to store a row that has been removed, added or modified.
Location
- Reference: RemObjects.DataAbstract.dll
- Namespace: RemObjects.DataAbstract
constructor (Delta)
constructor(delta: Delta)
DeltaChange(Delta delta)
init(_ delta: Delta)
Sub New(delta As Delta)
Parameters:
- delta:
constructor (Delta, Int32)
constructor(delta: Delta; changeId: Int32)
DeltaChange(Delta delta, Int32 changeId)
init(_ delta: Delta, _ changeId: Int32)
Sub New(delta As Delta, changeId As Int32)
Parameters:
- delta:
- changeId:
constructor (Delta, DataRow)
constructor(delta: Delta; dataRow: DataRow)
DeltaChange(Delta delta, DataRow dataRow)
init(_ delta: Delta, _ dataRow: DataRow)
Sub New(delta As Delta, dataRow As DataRow)
Parameters:
- delta:
- dataRow:
Changed
property Changed[index: Int32]: Boolean read;
Boolean Changed[Int32 index] { get; }
subscript Changed(_ index: Int32) -> Boolean { get{} }
ReadOnly Property Changed(index As Int32) As Boolean
Changed
property Changed[name: String]: Boolean read;
Boolean Changed[String name] { get; }
subscript Changed(_ name: String) -> Boolean { get{} }
ReadOnly Property Changed(name As String) As Boolean
ChangeID
Returns an unique ID within the Delta this row is part of. This is used by the Server to identify the changes that failed and succeeded.
property ChangeID: Int32 read;
Int32 ChangeID { get; }
var ChangeID: Int32 { get{} }
ReadOnly Property ChangeID() As Int32
CopyDataRow protected
method CopyDataRow(dataRow: DataRow)
void CopyDataRow(DataRow dataRow)
func CopyDataRow(_ dataRow: DataRow)
Sub CopyDataRow(dataRow As DataRow)
Parameters:
- dataRow:
Count
Returns the number of fields referenced by this DeltaChange. It shows the field count of the underlying table of the Delta. The NewValues and OldValues arrays have this count.
property Count: Int32 read;
Int32 Count { get; }
var Count: Int32 { get{} }
ReadOnly Property Count() As Int32
Delta
Returns the Delta referenced by this DeltaChange.
property Delta: Delta read;
Delta Delta { get; }
var Delta: Delta { get{} }
ReadOnly Property Delta() As Delta
Item
property Item[index: Int32]: Object read write;
Object Item[Int32 index] { get; set; }
subscript Item(_ index: Int32) -> Object { get{} set{} }
Property Item(index As Int32) As Object
Item
property Item[name: String]: Object read write;
Object Item[String name] { get; set; }
subscript Item(_ name: String) -> Object { get{} set{} }
Property Item(name As String) As Object
Message
After a failed update (i.e. the Status property is set to Failed), this property will contain the error message for that update.
property Message: String read write;
String Message { get; set; }
var Message: String { get{} set{} }
Property Message() As String
NewValues
Gets a collection of values that should be put into the database.
property NewValues: DeltaChangeValuesIndexer read;
DeltaChangeValuesIndexer NewValues { get; }
var NewValues: DeltaChangeValuesIndexer { get{} }
ReadOnly Property NewValues() As DeltaChangeValuesIndexer
OldValues
Gets a collection of values that are currently stored in the database.
property OldValues: DeltaChangeValuesIndexer read;
DeltaChangeValuesIndexer OldValues { get; }
var OldValues: DeltaChangeValuesIndexer { get{} }
ReadOnly Property OldValues() As DeltaChangeValuesIndexer
OnGetOriginalRow
property OnGetOriginalRow: OnGetOriginalRowEventHandler read write;
OnGetOriginalRowEventHandler OnGetOriginalRow { get; set; }
var OnGetOriginalRow: OnGetOriginalRowEventHandler { get{} set{} }
Property OnGetOriginalRow() As OnGetOriginalRowEventHandler
OriginalRow
Gets a collection of values that are currently stored in the database.
Note: Unlike the OldValues property this property directly accesses the underlying database to retrieve collection values so accessing this property requires a database read operation. To minimize the possible performance hit and database deadlocks propbability this property should be accessed ionly if it absolutely necessary.
property OriginalRow: DeltaChangeValuesIndexer read;
DeltaChangeValuesIndexer OriginalRow { get; }
var OriginalRow: DeltaChangeValuesIndexer { get{} }
ReadOnly Property OriginalRow() As DeltaChangeValuesIndexer
Status
State of this DeltaChange. This property returns if the row has been send back to the server already and it indicates whether updating failed.
property Status: ChangeStatus read write;
ChangeStatus Status { get; set; }
var Status: ChangeStatus { get{} set{} }
Property Status() As ChangeStatus
ToDetailedString
method ToDetailedString: String
String ToDetailedString()
func ToDetailedString() -> String
Function ToDetailedString() As String
Type
Type of the change this DeltaChange represents. The DeltaChange will contain the delete, updated or inserted row.
property Type: ChangeType read write;
ChangeType Type { get; set; }
var Type: ChangeType { get{} set{} }
Property Type() As ChangeType
Changed
property Changed[index: Int32]: Boolean read;
Boolean Changed[Int32 index] { get; }
subscript Changed(_ index: Int32) -> Boolean { get{} }
ReadOnly Property Changed(index As Int32) As Boolean
Changed
property Changed[name: String]: Boolean read;
Boolean Changed[String name] { get; }
subscript Changed(_ name: String) -> Boolean { get{} }
ReadOnly Property Changed(name As String) As Boolean
ChangeID
Returns an unique ID within the Delta this row is part of. This is used by the Server to identify the changes that failed and succeeded.
property ChangeID: Int32 read;
Int32 ChangeID { get; }
var ChangeID: Int32 { get{} }
ReadOnly Property ChangeID() As Int32
Count
Returns the number of fields referenced by this DeltaChange. It shows the field count of the underlying table of the Delta. The NewValues and OldValues arrays have this count.
property Count: Int32 read;
Int32 Count { get; }
var Count: Int32 { get{} }
ReadOnly Property Count() As Int32
Delta
Returns the Delta referenced by this DeltaChange.
property Delta: Delta read;
Delta Delta { get; }
var Delta: Delta { get{} }
ReadOnly Property Delta() As Delta
Item
property Item[index: Int32]: Object read write;
Object Item[Int32 index] { get; set; }
subscript Item(_ index: Int32) -> Object { get{} set{} }
Property Item(index As Int32) As Object
Item
property Item[name: String]: Object read write;
Object Item[String name] { get; set; }
subscript Item(_ name: String) -> Object { get{} set{} }
Property Item(name As String) As Object
Message
After a failed update (i.e. the Status property is set to Failed), this property will contain the error message for that update.
property Message: String read write;
String Message { get; set; }
var Message: String { get{} set{} }
Property Message() As String
NewValues
Gets a collection of values that should be put into the database.
property NewValues: DeltaChangeValuesIndexer read;
DeltaChangeValuesIndexer NewValues { get; }
var NewValues: DeltaChangeValuesIndexer { get{} }
ReadOnly Property NewValues() As DeltaChangeValuesIndexer
OldValues
Gets a collection of values that are currently stored in the database.
property OldValues: DeltaChangeValuesIndexer read;
DeltaChangeValuesIndexer OldValues { get; }
var OldValues: DeltaChangeValuesIndexer { get{} }
ReadOnly Property OldValues() As DeltaChangeValuesIndexer
OnGetOriginalRow
property OnGetOriginalRow: OnGetOriginalRowEventHandler read write;
OnGetOriginalRowEventHandler OnGetOriginalRow { get; set; }
var OnGetOriginalRow: OnGetOriginalRowEventHandler { get{} set{} }
Property OnGetOriginalRow() As OnGetOriginalRowEventHandler
OriginalRow
Gets a collection of values that are currently stored in the database.
Note: Unlike the OldValues property this property directly accesses the underlying database to retrieve collection values so accessing this property requires a database read operation. To minimize the possible performance hit and database deadlocks propbability this property should be accessed ionly if it absolutely necessary.
property OriginalRow: DeltaChangeValuesIndexer read;
DeltaChangeValuesIndexer OriginalRow { get; }
var OriginalRow: DeltaChangeValuesIndexer { get{} }
ReadOnly Property OriginalRow() As DeltaChangeValuesIndexer
Status
State of this DeltaChange. This property returns if the row has been send back to the server already and it indicates whether updating failed.
property Status: ChangeStatus read write;
ChangeStatus Status { get; set; }
var Status: ChangeStatus { get{} set{} }
Property Status() As ChangeStatus
Type
Type of the change this DeltaChange represents. The DeltaChange will contain the delete, updated or inserted row.
property Type: ChangeType read write;
ChangeType Type { get; set; }
var Type: ChangeType { get{} set{} }
Property Type() As ChangeType
constructor (Delta)
constructor(delta: Delta)
DeltaChange(Delta delta)
init(_ delta: Delta)
Sub New(delta As Delta)
Parameters:
- delta:
constructor (Delta, Int32)
constructor(delta: Delta; changeId: Int32)
DeltaChange(Delta delta, Int32 changeId)
init(_ delta: Delta, _ changeId: Int32)
Sub New(delta As Delta, changeId As Int32)
Parameters:
- delta:
- changeId:
constructor (Delta, DataRow)
constructor(delta: Delta; dataRow: DataRow)
DeltaChange(Delta delta, DataRow dataRow)
init(_ delta: Delta, _ dataRow: DataRow)
Sub New(delta As Delta, dataRow As DataRow)
Parameters:
- delta:
- dataRow:
CopyDataRow protected
method CopyDataRow(dataRow: DataRow)
void CopyDataRow(DataRow dataRow)
func CopyDataRow(_ dataRow: DataRow)
Sub CopyDataRow(dataRow As DataRow)
Parameters:
- dataRow:
ToDetailedString
method ToDetailedString: String
String ToDetailedString()
func ToDetailedString() -> String
Function ToDetailedString() As String