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

Class CalculatedProperty

   BaseItem --+
              |
LabelsMixIn --+
              |
             CalculatedProperty


A calculated property object in the repository. A calculated property is a special kind of a Procedure.
Method Summary
  __init__(self, aProcedure)
Create a new calculated property item.
  updateLinks(self, aClass, modules, unlink)
If in unlink mode this function clears the pointer to the bound procedure.
    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: allways None
  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: allways True
  isReference: allways False
  procedure: the Procedure instance defining the property
  referencedClass: allways None

Method Details

__init__(self, aProcedure)
(Constructor)

Create a new calculated property item.
Parameters:
aProcedure - procedure to bind as calculated property
Overrides:
gnue.appserver.repository.BaseItem.__init__

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

If in unlink mode this function clears the pointer to the bound procedure.
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

allways None

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

allways True

isReference

allways False

procedure

the Procedure instance defining the property

referencedClass

allways None


GNUe Home

Public API

Developer's Corner