Part of twisted.enterprise.reflector View Source View In Hierarchy
Known subclasses: twisted.enterprise.sqlreflector.SQLReflector
Base class for enterprise reflectors. This implements row caching.
Method | __init__ | Initialize me against a database. |
Method | __getstate__ | Undocumented |
Method | __setstate__ | Undocumented |
Method | populateSchemaFor | This is called once for each registered rowClass to add it |
Method | getTableInfo | Get a TableInfo record about a particular instance. |
Method | buildWhereClause | util method used by reflectors. builds a where clause to link a row to another table. |
Method | addToParent | util method used by reflectors. adds these rows to the parent row object. |
Method | addToCache | NOTE: Should this be recursive?! requires better container knowledge... |
Method | findInCache | Undocumented |
Method | removeFromCache | NOTE: should this be recursive!?? |
Method | loadObjectsFrom | Implement me to load objects from the database. |
Method | updateRow | update this rowObject to the database. |
Method | insertRow | insert a new row for this object instance. |
Method | deleteRow | delete the row for this object from the database. |
Method | _populate | Implement me to populate schema information for the reflector. |
Parameters | rowClasses | a list of row class objects that describe the database schema. |
This record contains various information about the instance's class as registered with this reflector.
Parameters | rowObject | a RowObject
instance of a class previously registered with me.
|
Raises | twisted.enterprise.row.DBError | raised if this class was not previously registered. |
Parameters | whereClause | a list of tuples of (columnName, conditional, value) so it can be parsed by
all types of reflectors. eg.:
whereClause = [("name", EQUALS, "fred"), ("age", GREATERTHAN, 18)] |