Home | Trees | Index | Help |
|
---|
Package Modeling :: Package DatabaseAdaptors :: Package AbstractDBAPI2AdaptorLayer :: Module AbstractDBAPI2AdaptorChannel :: Class AbstractDBAPI2AdaptorChannel |
|
AdaptorChannel
--+
|
AbstractDBAPI2AdaptorChannel
MySQLAdaptorChannel
,
OracleAdaptorChannel
,
PostgresqlAdaptorChannel
,
SQLiteAdaptorChannel
Your inheriting concrete Adaptor class must override:
- primaryKeysForNewRowsWithEntity()
You normally do not need to override other methods. In particular, dbAPI_cursor() does not need to be overridden --but you will use it to access the underlying cursor.
Method Summary | |
---|---|
See Modeling.interfaces.AdaptorChannel for details | |
| |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
dbAPI_cursor(self)
| |
Builds the DELETE SQLExpression for 'aQualifier' and 'anEntity' ans executes it. | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
Generates and returns a list of dictionaries, whose keys are PK attributes' names and values the corresponding PK value. | |
See Modeling.interfaces.AdaptorChannel for details | |
Implemented by concrete adaptors to return the number of rows that would be fetched if selectAttributes() is called with the same arguments. | |
See Modeling.interfaces.AdaptorChannel for details | |
See Modeling.interfaces.AdaptorChannel for details | |
Builds the UPDATE SQLExpression for 'row', 'aQualifier' and 'anEntity' and executes it. | |
Inherited from AdaptorChannel | |
See interfaces.AdaptorChannel for details | |
See interfaces.AdaptorChannel for details | |
See interfaces.AdaptorChannel for details | |
Calls 'deleteRowsDescribedByQualifier()' on itself and make sure that one and only one row was deleted. | |
See interfaces.AdaptorChannel for details | |
See interfaces.AdaptorChannel for details | |
Examines 'anAdaptorOperation' and executes the corresponding method. | |
Iterates on each item in 'adaptorOperations' and calls 'performAdaptorOperation()' with that item as a parameter. | |
See interfaces.AdaptorChannel for details | |
Calls 'updateValuesInRowsDescribedByQualifier' on itself and make sure that one and only one row was updated. |
Class Variable Summary | |
---|---|
tuple |
__implements__ = (<class Modeling.interfaces.AdaptorChan...
|
int |
_count_for_execute = 0 |
Method Details |
---|
__init__(self,
anAdaptorContext)
See Modeling.interfaces.AdaptorChannel for details
|
__unimplemented__(self)
|
attributesToFetch(self)See Modeling.interfaces.AdaptorChannel for details |
cancelFetch(self)See Modeling.interfaces.AdaptorChannel for details |
closeChannel(self)See Modeling.interfaces.AdaptorChannel for details |
deleteRowsDescribedByQualifier(self, aQualifier, anEntity)Builds the DELETE SQLExpression for 'aQualifier' and 'anEntity' ans executes it. Returns the number of rows that were deleted. Raises GeneralAdaptorException if the channel is not opened, or if it is fetching, or if its AdaptorContext has no transaction in progress. See Modeling.interfaces.AdaptorChannel for details |
describeModelWithTableNames(self, tableNames)See Modeling.interfaces.AdaptorChannel for details |
describeResults(self)See Modeling.interfaces.AdaptorChannel for details |
describeStoredProcedureNames(self)See Modeling.interfaces.AdaptorChannel for details |
describeTableNames(self)See Modeling.interfaces.AdaptorChannel for details |
evaluateExpression(self, anSQLexpression)See Modeling.interfaces.AdaptorChannel for details |
executeStoredProcedure(self, aStoredProcedure, values)See Modeling.interfaces.AdaptorChannel for details |
fetchRow(self)See Modeling.interfaces.AdaptorChannel for details |
insertRow(self, row, anEntity)See Modeling.interfaces.AdaptorChannel for details |
isFetchInProgress(self)See Modeling.interfaces.AdaptorChannel for details |
isOpen(self)See Modeling.interfaces.AdaptorChannel for details |
openChannel(self)See Modeling.interfaces.AdaptorChannel for details |
primaryKeysForNewRowsWithEntity(self, count, anEntity)Generates and returns a list of dictionaries, whose keys are PK attributes' names and values the corresponding PK value. If 'anEntity' defines more than one PK (compound primary key), returns an empty list. Parameters:
Subclasses should override this method without calling the superclass' implementation. This method is correlated with the implementation of your concrete SchemaGeneration's methods:
See also: Modeling.AdaptorChannel.primaryKeysForNewRowsWithEntity() |
returnValuesForLastStoredProcedureInvocation(self)See Modeling.interfaces.AdaptorChannel for details |
rowCountForSelectAttributes(self, attributes, aFetchSpecification, shouldLock, anEntity)Implemented by concrete adaptors to return the number of rows that would be fetched if selectAttributes() is called with the same arguments. Parameters: see selectAttributes() See also: SQLExpression.prepareSelectCountExpressionWithAttributes()
|
selectAttributes(self, attributes, aFetchSpecification, shouldLock, anEntity)See Modeling.interfaces.AdaptorChannel for details |
setAttributesToFetch(self, attributes)See Modeling.interfaces.AdaptorChannel for details |
updateValuesInRowsDescribedByQualifier(self, row, aQualifier, anEntity)Builds the UPDATE SQLExpression for 'row', 'aQualifier' and 'anEntity' and executes it. Returns the number of rows that were updated. Raises GeneralAdaptorException if the channel is not opened, or if it is fetching, or if its AdaptorContext has no transaction in progress. See Modeling.interfaces.AdaptorChannel for details |
Class Variable Details |
---|
__implements__
|
_count_for_execute
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:26 2006 | http://epydoc.sf.net |