| |
- Adapter(object)
-
- DBAPIAdapter
class DBAPIAdapter(Adapter) |
|
DBAPI2.0 adapter interface for SQL databases
This is the base class for DBAPI 2.0 adapters
it provides only the most basic insert, update and
property support (with no data type information
available, and hence no specialized editors).
The values edited by a DBAPI adapter are "DBTables",
which are specialized collections providing
sequence semantics for a query-result set
(though at the moment, this must be an actual table). |
|
- Method resolution order:
- DBAPIAdapter
- Adapter
- object
Methods defined here:
- CalculateProperties(self, value=None)
- Return property set for the given or current value
value -- if not None, a value other than the current value
for which properties should be retrieved.
This implementation uses the propertyset module to
create a set of property definitions for the value.
Methods inherited from Adapter:
- GetProperties(self, value=None)
- Returns current property set
- GetPropertyCount(self)
- Get a count of the current properties
- GetValue(self)
- Get the currently-edited object
returns the object
- RetrieveValue(self)
- Customisation Point: Retrieve reference to the value
This customization point is called whenever the adapter
needs to retrieve a reference to the currently-edited value.
You can override this method to allow such things as
only storing weak references.
Default implementation returns self.value
- SetProperties(self, value=None)
- Set the current property-set for the adapter
value -- sequence of property definition objects
or None to attempt to automatically determine the
property-set using CalculateProperties
- SetValue(self, value=None)
- Set the object to be edited by the view
value -- the object to be edited
- StoreValue(self, value)
- Customisation Point: Store reference to the value
This customization point is called whenever the adapter
needs to store a reference to the currently-edited value.
You can override this method to allow such things as
only storing weak references.
Default implementation does self.value = value
- __init__(self, value=None, properties=None, **named)
- Initialize the Adapter
view -- pointer to the wxoo.table.gridview.View sub-
object which is being serviced by the adapter.
Data and other attributes inherited from Adapter:
- __dict__ = <dictproxy object at 0x01DF3690>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Adapter' objects>
- list of weak references to the object (if defined)
- properties = <ListProperty 'properties'>
- The list of property descriptors for the Adapter
- propertiesCalculated = <BooleanProperty 'propertiesCalculated'>
- Whether property-set was automatically calculated
Used to determine whether to re-calculate if necessary
- value = None
| |