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
- Reference: com.remobjects.dataabstract.jar
- Package: com.remobjects.dataabstract
- Ancestry: Object | DeltaChange
Creates a new instance of a DeltaChange class with the given parent delta and fill it with changes from the given DataRow.
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)
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.
Parameters:
- dataRow: A source data row.
Count
property Count: Integer read;
Integer Count { __get; }
Delta
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
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; }
Creates a new instance of a DeltaChange class with the given parent delta and fill it with changes from the given DataRow.
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)
Parameters:
- delta:
- changeId:
copyDataRow protected
Fills current delta change with the data from the given data row.
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.