Package gnue :: Package appserver :: Package gld :: Module readgld :: Class gldReader
[show private | hide private]

Class gldReader


Method Summary
  __init__(self, connections, database, files, moduleLookup, classLookup, propertyLookup, procedureLookup)
Create a new instance of a gld reader
  doUpdate(self, resultSet, data, deferPost)
This function sets all fields in the current record of the resultset based on the key/values given by the data dictionary.
  run(self)
This function loads all GLD files, builds the object dictionaries and updates the repository using these dictionaries.

Method Details

__init__(self, connections, database, files, moduleLookup=None, classLookup=None, propertyLookup=None, procedureLookup=None)
(Constructor)

Create a new instance of a gld reader
Parameters:
connections - GConnections instance to be used
database - name of the connection to use (in connection.conf)
files - sequence of filenames to integerate
moduleLookup - lookup dictionary for 'gnue_modules'
classLookup - lookup dictionary for 'gnue_class'
propertyLookup - lookup dictionary for 'gnue_property'
procedureLookup - lookup dictionary for 'gnue_procedure'

doUpdate(self, resultSet, data, deferPost=False)

This function sets all fields in the current record of the resultset based on the key/values given by the data dictionary. It returns TRUE, if a field value has been changed, otherwise FALSE. If a field was changed, the record gets posted unless 'deferPost' is set to True.
Parameters:
resultSet - resultset with the current record to be updated
data - dictionary with keys and values used for updates
deferPost - if True, this function does not post () the changes. The caller will do this later.
Returns:
TRUE if a field has been changed, FALSE if no field has been changed.

run(self)

This function loads all GLD files, builds the object dictionaries and updates the repository using these dictionaries.


GNUe Home

Public API

Developer's Corner