This class manages the result of a query. An instance of this class
can be created via the connection.query() method.
| Method Summary |
| |
__init__(self,
cache,
connections,
database,
content,
conditions,
order)
|
| |
__iter__(self)
|
| |
__len__(self)
This function returns the number of records in this result set. |
| |
close(self)
This function closes a record set which is no longer needed. |
| |
__addFilter(self,
row,
condition)
This function implements a filter for rows heading for the 'add'
destination. |
| |
__buildRecords(self,
data)
|
| |
__conditionChanged(self,
row,
condition)
This function iterates over all fields of a condition and returns True
if a field has been changed or False otherwise. |
| |
__fieldIsChanged(self,
row,
path)
This function checks wether a field (described by a path) has been
changed or not. |
| |
__getLookupDictionary(self,
condition,
row,
original)
This function creates a dictionary with all fields listed in a given
condition as keys and their values based on the given row. |
| |
__getMasterTable(self)
This function returns the name of the master table of the
recordset |
| |
__getPathValue(self,
row,
path,
original)
This function returns the value of the property defined by the given
path sequence, starting with the first element using a gnue_id of
'row'. |
| |
__getPropertyPath(self,
name)
This function creates a path to access a given property based on the
content-dictionary. |
| |
__getSortSequence(self,
row)
This function creates a sequence of tuples (fieldvalue, direction) for
the record specified by 'row' using the given sortorder. |
| |
__mergeWithCache(self,
conditions)
|
| |
__removeFilter(self,
row,
condition)
This function implements a filter for rows heading for the 'remove'
destination. |
| |
__sortAddition(self)
This function sorts all records from the cache to fit the current sort
order. |
| |
__sortOrderChanged(self,
row)
This function checks if a field in the sort order has been
changed. |