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

Class Property

   BaseItem --+
              |
LabelsMixIn --+
              |
             Property


A property object in the repository.
Method Summary
  __init__(self, predefined, moduleLookup)
Create a new property item.
  finalize(self, classes)
Verify the type of the property and set the reference flags for rerference properties.
  updateLinks(self, aClass, modules, unlink)
Update the links of a property item to it's Module and Class.
    Inherited from LabelsMixIn
  getFilterLabels(self, language)
    Inherited from BaseItem
  __getitem__(self, attr)
Emulate a dictionary access to the wrapper instance.
  __nonzero__(self)

Instance Variable Summary
  column: name of the column in the backend this property is bound to
  dbFullType: full datatype as used at the backend
  dbLength: length used at the backend
  dbScale: scale used at the backend
  dbType: base datatype as used at the backend
  fullName: fully qualified name of the property
  fullType: full datatype as used by gnue
  isCalculated: if True, the property is a calculated field, based on a Procedure.
  isReference: True, if the property is a reference to another Class.
  referencedClass: for a reference property this attribute contains the Class instance of the referenced class (= master class)

Method Details

__init__(self, predefined, moduleLookup)
(Constructor)

Create a new property item.
Parameters:
predefined - dictionary with predefined ('builtin') values
moduleLookup - (raw) lookup-dictionary with all modules available
Overrides:
gnue.appserver.repository.BaseItem.__init__

finalize(self, classes)

Verify the type of the property and set the reference flags for rerference properties.
Parameters:
classes - dictionary with all classes available

updateLinks(self, aClass, modules, unlink=False)

Update the links of a property item to it's Module and Class. If unlink is set the references are cleared.
Parameters:
aClass - Class instance the property belongs to
modules - module dictionary with all modules available
unlink - this boolean Flag determines wether to establish links or to break them

Instance Variable Details

column

name of the column in the backend this property is bound to

dbFullType

full datatype as used at the backend

dbLength

length used at the backend

dbScale

scale used at the backend

dbType

base datatype as used at the backend

fullName

fully qualified name of the property

fullType

full datatype as used by gnue

isCalculated

if True, the property is a calculated field, based on a Procedure. In this case column is set to None

isReference

True, if the property is a reference to another Class.

referencedClass

for a reference property this attribute contains the Class instance of the referenced class (= master class)


GNUe Home

Public API

Developer's Corner