Package twisted :: Package world :: Module typemap :: Class EnumTypeMapper
[frames | no frames]

Class EnumTypeMapper

       Adapter --+    
                 |    
AbstractTypeMapper --+
                     |
                    EnumTypeMapper


Map from a list of values given to the contstructor to an integer in the database. Uninitialized values get the first item of the enumeration as a default value.
Method Summary
  __init__(self, *values)
  getLowColumns(self, name)
  getPhysicalSize(self)
  highToLow(self, db, obj)
  lowToHigh(self, db, tup)
  null(self)
  toTuple(self)
    Inherited from AbstractTypeMapper
  highDataFromRow(self, index, name, db, sFile)
  lowDataToRow(self, index, name, db, sFile, value)
    Inherited from Adapter
  getComponent(self, interface, registry, default)
I forward getComponent to self.original on the assumption that it is an instance of Componentized.
  isuper(self, iface, adapter)
Forward isuper to self.original

Class Variable Summary
    Inherited from Adapter
int multiComponent: If this adapter is persistent, should it be automatically registered for all appropriate interfaces.
int temporaryAdapter: If this is True, the adapter will not be persisted on the Componentized.

Generated by Epydoc 2.0 on Sat Sep 13 04:21:20 2003 http://epydoc.sf.net