Class v.c.a.a.SQLAttribute(inmemory, Comparable):

Part of vmc.contrib.axiom.attributes View In Hierarchy

Known subclasses: vmc.contrib.axiom.attributes.boolean, vmc.contrib.axiom.attributes.bytes, vmc.contrib.axiom.attributes.ieee754_double, vmc.contrib.axiom.attributes.integer, vmc.contrib.axiom.attributes.text

Implements interfaces: vmc.contrib.axiom.iaxiom.IColumn

Abstract superclass of all attributes.

_Not_ an attribute itself.
Instance VariablesindexedA bool indicating whether this attribute will be indexed in the database.
defaultThe value used for this attribute, if no value is specified.
Method __init__ Undocumented
Method computeDefault Undocumented
Method reprFor Undocumented
Method getShortColumnName
Method getColumnName
Method prepareInsert Override this method to do something to an item to prepare for its
Method coercer must return a value equivalent to the data being passed in for it to be
Method infilter used to convert a Python value to something that lives in the database;
Method outfilter used to convert an SQL value to something that lives in memory; so
Method requiredSlots Undocumented
Method fullyQualifiedName
Method __repr__ Undocumented
Method type Undocumented
Method __get__
Method loaded Undocumented
Method __set__ Undocumented

Inherited from Comparable:

Method compare Override this in a subclass.

Inherited from _ContainableMixin (via Comparable):

Method oneOf Choose items whose attributes are in a fixed set.
Method notOneOf Undocumented

Inherited from _ComparisonOperatorMuxer (via Comparable):

Method __eq__ Undocumented
Method __ne__ Undocumented
Method __gt__ Undocumented
Method __lt__ Undocumented
Method __ge__ Undocumented
Method __le__ Undocumented

Inherited from _MatchingOperationMuxer (via Comparable):

Method _like Undocumented
Method like Undocumented
Method notLike Undocumented
Method startswith Undocumented
Method endswith Undocumented

Inherited from _OrderingMixin (via Comparable):

Method _asc Undocumented
Method _desc Undocumented
def __init__(self, doc='', indexed=False, default=None, allowNone=True, defaultFactory=None):
Undocumented
def computeDefault(self):
Undocumented
def reprFor(self, oself):
Undocumented
def getShortColumnName(self, store):
ReturnsJust the name of this column. (type: str )
def getColumnName(self, store):
ReturnsThe fully qualified name of this object as a column within the database, eg, "main_database.some_table.[this_column]". (type: str )
def prepareInsert(self, oself, store):
Override this method to do something to an item to prepare for its insertion into a database.
def coercer(self, value):
must return a value equivalent to the data being passed in for it to be considered valid for a value of this attribute. for example, 'int' or 'str'.
def infilter(self, pyval, oself, store):
used to convert a Python value to something that lives in the database; so called because it is called when objects go in to the database. It takes a Python value and returns an SQL value.
def outfilter(self, dbval, oself):
used to convert an SQL value to something that lives in memory; so called because it is called when objects come out of the database. It takes an SQL value and returns a Python value.
def requiredSlots(self, modname, classname, attrname):
Undocumented
def fullyQualifiedName(self):
ReturnsThe fully qualfied name of this object as an attribute in Python code, eg, myproject.mymodule.MyClass.myAttribute. If this attribute is represented by an actual Python code object, it will be a dot-separated sequence of Python identifiers; otherwise, it will contain invalid identifier characters other than '.'. (type: str )
def __repr__(self):
Undocumented
def type():
Undocumented
def __get__(self, oself, type=None):
Parametersrowan item that has this column. (type: axiom.item.Item )
ReturnsThe value of the column described by this object, for the given row. (type: depends on the underlying type of the column. )
def loaded(self, oself, dbval):
Undocumented
def _convertPyval(self, oself, pyval):
Convert a Python value to a value suitable for inserting into the database.
ParametersoselfThe object on which this descriptor is an attribute.
pyvalThe value to be converted.
ReturnsA value legal for this column in the database.
def __set__(self, oself, pyval):
Undocumented
API Documentation for vodafone-mobile-connect-card-driver-for-linux, generated by pydoctor at 2008-01-10 13:06:31.