DeltaChange

Overview

The DeltaChange class is a single changed row within a Delta. DeltaChange object is used as an intermediate container for passing changes in a DataRow to the server side for committing, and for merging changes that come back from server with table rows on the client side.

Location

 

constructor (Delta, DataRow)

Creates a new instance of a DeltaChange class with the given parent delta and fill it with changes from the given DataRow.

 

constructor(aDelta: Delta; aDataRow: DataRow)

 

DeltaChange(Delta aDelta, DataRow aDataRow)

Parameters:

  • aDelta: A parent delta of the current change.
  • aDataRow: A data row that will be used to fill the current delta.

constructor (Delta, Integer)

 

constructor(delta: Delta; changeId: Integer)

 

DeltaChange(Delta delta, Integer changeId)

Parameters:

  • delta:
  • changeId:

ChangeID

 

property ChangeID: Integer read;

 

Integer ChangeID { __get; }

copyDataRow  protected

Fills current delta change with the data from the given data row.

 

method copyDataRow(dataRow: DataRow)

 

void copyDataRow(DataRow dataRow)

Parameters:

  • dataRow: A source data row.

Count

 

property Count: Integer read;

 

Integer Count { __get; }

Delta

 

property Delta: Delta read;

 

Delta Delta { __get; }

isChanged (Integer): Boolean

Checks if a delta change value for specified field name has been changed (differs from original).

 

method isChanged(idx: Integer): Boolean

 

Boolean isChanged(Integer idx)

Parameters:

  • idx: An index of the field.

isChanged (String): Boolean

Checks if a delta change value at specified index has been changed (differs from original).

 

method isChanged(name: String): Boolean

 

Boolean isChanged(String name)

Parameters:

  • name: A name of the field.

Message

 

property Message: String read write;

 

String Message { __get; __set; }

NewValues

 

property NewValues: ValuesIndexer read;

 

ValuesIndexer NewValues { __get; }

OldValues

 

property OldValues: ValuesIndexer read;

 

ValuesIndexer OldValues { __get; }

OriginalRow

 

property OriginalRow: ValuesIndexer read;

 

ValuesIndexer OriginalRow { __get; }

Status

 

property Status: ChangeStatus read write;

 

ChangeStatus Status { __get; __set; }

Type

 

property Type: ChangeType read write;

 

ChangeType Type { __get; __set; }

Value

 

property Value[idx: Integer]: Object read write;

 

Object Value[Integer idx] { __get; __set; }

Value

 

property Value[name: String]: Object read write;

 

Object Value[String name] { __get; __set; }

 

ChangeID

 

property ChangeID: Integer read;

 

Integer ChangeID { __get; }

Count

 

property Count: Integer read;

 

Integer Count { __get; }

Delta

 

property Delta: Delta read;

 

Delta Delta { __get; }

Message

 

property Message: String read write;

 

String Message { __get; __set; }

NewValues

 

property NewValues: ValuesIndexer read;

 

ValuesIndexer NewValues { __get; }

OldValues

 

property OldValues: ValuesIndexer read;

 

ValuesIndexer OldValues { __get; }

OriginalRow

 

property OriginalRow: ValuesIndexer read;

 

ValuesIndexer OriginalRow { __get; }

Status

 

property Status: ChangeStatus read write;

 

ChangeStatus Status { __get; __set; }

Type

 

property Type: ChangeType read write;

 

ChangeType Type { __get; __set; }

Value

 

property Value[idx: Integer]: Object read write;

 

Object Value[Integer idx] { __get; __set; }

Value

 

property Value[name: String]: Object read write;

 

Object Value[String name] { __get; __set; }

 

constructor (Delta, DataRow)

Creates a new instance of a DeltaChange class with the given parent delta and fill it with changes from the given DataRow.

 

constructor(aDelta: Delta; aDataRow: DataRow)

 

DeltaChange(Delta aDelta, DataRow aDataRow)

Parameters:

  • aDelta: A parent delta of the current change.
  • aDataRow: A data row that will be used to fill the current delta.

constructor (Delta, Integer)

 

constructor(delta: Delta; changeId: Integer)

 

DeltaChange(Delta delta, Integer changeId)

Parameters:

  • delta:
  • changeId:

copyDataRow  protected

Fills current delta change with the data from the given data row.

 

method copyDataRow(dataRow: DataRow)

 

void copyDataRow(DataRow dataRow)

Parameters:

  • dataRow: A source data row.

isChanged (Integer): Boolean

Checks if a delta change value for specified field name has been changed (differs from original).

 

method isChanged(idx: Integer): Boolean

 

Boolean isChanged(Integer idx)

Parameters:

  • idx: An index of the field.

isChanged (String): Boolean

Checks if a delta change value at specified index has been changed (differs from original).

 

method isChanged(name: String): Boolean

 

Boolean isChanged(String name)

Parameters:

  • name: A name of the field.