DataSet Class
Stores and manages a set of DataTables and DataRelations
Item Index
Methods
Methods
acceptChanges
()
Calls acceptChanges to all contained DataTables
clone
()
DataSet
Clones a DataSet replicating its structure but without copying any ObjectRow
Returns:
deSerialize
-
d -
deSerializeStructure
Restores data from an object obtained with serialize().
mergeAsPatch
-
d
merges changes from DataSet d assuming they are unchanged and they are all present in this dataset. Rows are updated, but only fields actually present in d are modified. Other field are left unchanged. It is assumed that "this" dataset is unchanged at the beginning
Parameters:
-
dDataSet
mergeAsPost
-
d
merges changes from DataSet d assuming they are unchanged and they are not present in this dataset. Rows are all added 'as is' to this, in the state of ADDED It is assumed that "this" dataset is unchanged at the beginning
Parameters:
-
dDataSet
mergeAsPut
-
d
merges changes from DataSet d assuming they are unchanged and they can be present in this or not. If a row is not present, it is added. If it is present, it is updated. It is assumed that "this" dataset is unchanged at the beginning
Parameters:
-
dDataSet
newRelation
-
relationName -
parentTableName -
parentColsName -
childTableName -
childColsName
Creates a new DataRelation and attaches it to the DataSet
Parameters:
Returns:
newTable
-
tableName
Creates a new DataTable attaching it to the DataSet
Parameters:
-
tableNameString
Returns:
rejectChanges
()
Calls rejectChanges to all contained DataTables
serialize
-
[serializeStructure=false] -
[filterRow]
Creates a serializable version of this DataSet
Parameters:
Returns:
Properties
name
Unknown
DataSet name
optimisticLocking
OptimisticLocking
DataSet - level optimistic locking, this property is set in custom implementations
} relationsByChild
DataRelation[]
Gets all relations where the child table is the key of the hash relationsByChild['a'] is an array of all DataRelations where 'a' is the child
} relations
DataRelation
Collection of DataRelation where relations[relName] is a DataRelation named relName
} relationsByParent
DataRelation[]
Gets all relations where the parent table is the key of the hash relationsByParent['a'] is an array of all DataRelations where 'a' is the parent
} tables
DataTable
public
Collection of DataTable where tables[tableName] is a DataTable named tableName
