Home | Trees | Index | Help |
|
---|
Package Modeling :: Module Adaptor |
|
Adaptor
CVS information
$Id: Adaptor.py,v 1.8 2004/07/20 06:21:36 sbigaret Exp $
Classes | |
---|---|
Adaptor |
See interfaces.Adaptor for details |
Exceptions | |
---|---|
AdaptorImportError |
|
CannotSerializeException |
|
GeneralAdaptorException |
Function Summary | |
---|---|
__abstract__()
| |
Returns the adaptor associated to the supplied model: it extracts the name of the adaptor to be used with the model then calls adaptorWithModel() Raises ValueError is parameter 'aModel' is None or if its adaptorName is empty. | |
Returns the adaptor. | |
Returns the default delegate. | |
Returns the expression class to be used by adaptor, or None if none was previously set with 'setExpressionClassForAdaptor()'. | |
Sets the default delegate which is assigned to Adaptor instances when they are initialized. | |
Sets the SQLExpression to use in conjonction with a particular adaptor. |
Function Details |
---|
adaptorWithModel(aModel)Returns the adaptor associated to the supplied model: it extracts the name of the adaptor to be used with the model then calls adaptorWithModel() Raises ValueError is parameter 'aModel' is None or if its adaptorName is empty. Raises AdaptorImportError if the adaptor cannot be loaded. |
adaptorWithName(aName)Returns the adaptor. Raises AdaptorImportError if the adaptor cannot be loaded. |
defaultDelegate()Returns the default delegate. See also: setDefaultDelegate() |
expressionClassForAdaptor(adaptor)Returns the expression class to be used by adaptor, or None if none was previously set with 'setExpressionClassForAdaptor()'. |
setDefaultDelegate(delegate)Sets the default delegate which is assigned to Adaptor instances when they are initialized. |
setExpressionClassForAdaptor(sqlExpression, adaptor)Sets the SQLExpression to use in conjonction with a particular adaptor. Parameters 'sqlExpression' and 'adaptor' can be either instances or classes. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:22 2006 | http://epydoc.sf.net |