Package twisted :: Package world :: Module typemap :: Class EnumTypeMapper
[show private | hide private]
[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)
  getComponent(self, interface, registry, default)
I forward getComponent to self.original on the assumption that it is an instance of Componentized. (inherited from Adapter)
  getLowColumns(self, name)
  getPhysicalSize(self)
  highDataFromRow(self, index, name, db, sFile)
(inherited from AbstractTypeMapper)
  highToLow(self, db, obj)
  isuper(self, iface, adapter)
Forward isuper to self.original (inherited from Adapter)
  lowDataToRow(self, index, name, db, sFile, value)
(inherited from AbstractTypeMapper)
  lowToHigh(self, db, tup)
  null(self)
  toTuple(self)

Generated by Epydoc 1.1 on Fri Jun 27 03:49:21 2003 http://epydoc.sf.net