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)

 

constructor(aDelta: Delta; aDataRow: DataRow)

 

DeltaChange(Delta aDelta, DataRow aDataRow)

Parameters:

  • aDelta:
  • aDataRow:

constructor (Delta, Integer)

 

constructor(aDelta: Delta; aChangeID: Integer)

 

DeltaChange(Delta aDelta, Integer aChangeID)

Parameters:

  • aDelta:
  • aChangeID:

ChangeID

 

property ChangeID: Integer read;

 

Integer ChangeID { __get; }

copyDataRow  protected

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

 

method copyDataRow(aDataRow: DataRow)

 

void copyDataRow(DataRow aDataRow)

Parameters:

  • aDataRow: 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: DeltaChange.ValuesIndexer read;

 

DeltaChange.ValuesIndexer NewValues { __get; }

OldValues

 

property OldValues: DeltaChange.ValuesIndexer read;

 

DeltaChange.ValuesIndexer OldValues { __get; }

OriginalRow

 

property OriginalRow: DeltaChange.ValuesIndexer read;

 

DeltaChange.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: DeltaChange.ValuesIndexer read;

 

DeltaChange.ValuesIndexer NewValues { __get; }

OldValues

 

property OldValues: DeltaChange.ValuesIndexer read;

 

DeltaChange.ValuesIndexer OldValues { __get; }

OriginalRow

 

property OriginalRow: DeltaChange.ValuesIndexer read;

 

DeltaChange.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)

 

constructor(aDelta: Delta; aDataRow: DataRow)

 

DeltaChange(Delta aDelta, DataRow aDataRow)

Parameters:

  • aDelta:
  • aDataRow:

constructor (Delta, Integer)

 

constructor(aDelta: Delta; aChangeID: Integer)

 

DeltaChange(Delta aDelta, Integer aChangeID)

Parameters:

  • aDelta:
  • aChangeID:

copyDataRow  protected

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

 

method copyDataRow(aDataRow: DataRow)

 

void copyDataRow(DataRow aDataRow)

Parameters:

  • aDataRow: 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.