pdk.DataClasses.DataBaseStructure ($Date: 2002/12/04 10:16:54 $)
index
pdk/DataClasses/DataBaseStructure.py

Container classes encapsulating data base structure declarations.

Currently everything is read-only, but it is conceivable to add methods that would allow runtime changes of the structure delcarations.

FOG 05.2002

 
Classes
            
__builtin__.dict(__builtin__.object)
_Container
DBase
DField
DTable
DTableIndex
DTableIndices
 
class DBase(_Container)
     
Purpose:wraps the declaration for a data base

 
  
Method resolution order:
DBase
_Container
__builtin__.dict
__builtin__.object

Methods defined here:
getTableNames = keys(self)
returns a sorted list of wrapped keys in the container.
getTableStructures = values(self, *keys)
returns list of wrapped values in the container (sorted by key).
 
class DTable(_Container)
     
Purpose:wraps data table declarations

 
  
Method resolution order:
DTable
_Container
__builtin__.dict
__builtin__.object

Methods defined here:
__init__(self, _indices=None, _primaryKey=None, **initD)
getFieldLabels(self)
returns a list of field labels in this table.
getFieldNames = keys(self)
returns a sorted list of wrapped keys in the container.
getFieldStructures = values(self, *keys)
returns list of wrapped values in the container (sorted by key).
getFieldTypeCodes(self)
returns a list of DB field type codes in this table.
getIndices(self)
returns a list of DTableIndex instances.
getPrimaryKey(self)
returns the primary key (possibly a tuple) of this table.
 
class DField(_Container)
     
Purpose:wraps data table field declarations

 
  
Method resolution order:
DField
_Container
__builtin__.dict
__builtin__.object

Methods defined here:
__init__(self, typeCode, label=None, **initD)
__repr__(self)
getLabel(self)
returns the label for this table field (defaults to the field name).
getTypeCode(self)
returns the type code for this table field.
setName(self, name)
 
class DTableIndex(_Container)
     
Purpose:wraps data table index declarations

 
  
Method resolution order:
DTableIndex
_Container
__builtin__.dict
__builtin__.object

Methods defined here:
__init__(self, key, _maintain=1, **initD)
getKey(self)
isMaintained(self)
 
class DTableIndices(_Container)
     
Purpose:container for DTableIndex instances.

 
  
Method resolution order:
DTableIndices
_Container
__builtin__.dict
__builtin__.object
 
class _Container(__builtin__.dict)
     
Purpose:abstract base class for declaration containers

 
  
Method resolution order:
_Container
__builtin__.dict
__builtin__.object

Methods defined here:
__init__(self, **initD)
__repr__(self)
__setitem__(self, key, value)
getName(self)
return the name of this container.
items(self)
returns list of wrapped items in the container (sorted by key).
keys(self)
returns a sorted list of wrapped keys in the container.
setName(self, name)
set the name of this container.
update(self, dataD)
update the items held by this container.
values(self, *keys)
returns list of wrapped values in the container (sorted by key).

Data and non-method functions defined here:
__dict__ = <dict-proxy object>
__weakref__ = <member '__weakref__' of '_Container' objects>
 
Author
            
$Author: gathmann $