Package gnue :: Package appserver :: Module geasList :: Class geasList
[show private | hide private]

Class geasList


Method Summary
  __init__(self, session, classdef, connection, recordset, propertylist, condition, dsSort, asSort)
  count(self)
Get the number of instances available in this list.
  fetch(self, start, count)
This function returns @count instances skipping the first @start instances.
  __evaluateExist(self, caller, lookup)
This function evaluates an exist-condition for the instance given in 'lookup'.
  __fillupSorted(self, count)
This function fills the internal list of instances with up to count elements.
  __fillupUnsorted(self, count)
This function fills up the internal list of instances with up to @count elements.
  __getGroup(self, instance)
This function returns a grouping list according to the datasource-sorting.
  __getInstance(self)
This function fetches the next usable instance from the recordset according to the list's condition.
  __sortBatch(self)
This function sorts the unsorted batch according to asSorting.
  __wantMore(self, count)
This function returns TRUE if more instances are needed to fill up the instance cache with @count elements.
  _destroy(self)
This function closes the list by freeing all references and resources maintained by the list.

Method Details

__init__(self, session, classdef, connection, recordset, propertylist, condition, dsSort, asSort)
(Constructor)

count(self)

Get the number of instances available in this list.
Returns:
number of instances available in this list

fetch(self, start, count)

This function returns @count instances skipping the first @start instances. If @start is negative, the starting point is from the end of the list.

__evaluateExist(self, caller, lookup)

This function evaluates an exist-condition for the instance given in 'lookup'.
Parameters:
caller - GCexist instance defining the condition
lookup - geasInstance instance to be evaluated
Returns:
True if there are instance matching the condition, False otherwise

__fillupSorted(self, count)

This function fills the internal list of instances with up to count elements. If @count is 0 all available instances are added to the list.

__fillupUnsorted(self, count)

This function fills up the internal list of instances with up to @count elements.

__getGroup(self, instance)

This function returns a grouping list according to the datasource-sorting. If no such sort order is defined, None is returned.

__getInstance(self)

This function fetches the next usable instance from the recordset according to the list's condition. This instance will be returned as function result.

__sortBatch(self)

This function sorts the unsorted batch according to asSorting.

__wantMore(self, count)

This function returns TRUE if more instances are needed to fill up the instance cache with @count elements. If @count is zero, an unlimited amount of instances is accepted.

_destroy(self)

This function closes the list by freeing all references and resources maintained by the list.


GNUe Home

Private API

Developer's Corner