Package Modeling :: Package DatabaseAdaptors :: Package MySQLAdaptorLayer :: Module MySQLAdaptorChannel :: Class MySQLAdaptorChannel
[show private | hide private]
[frames | no frames]

Class MySQLAdaptorChannel

          AdaptorChannel --+    
                           |    
AbstractDBAPI2AdaptorChannel --+
                               |
                              MySQLAdaptorChannel


Concrete AdaptorChannel for MySQL [module MySQLdb]
Method Summary
  primaryKeysForNewRowsWithEntity(self, count, anEntity)
Generates and returns a list of dictionaries, whose keys are PK attributes' names and values the corresponding PK value.
    Inherited from AbstractDBAPI2AdaptorChannel
  __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
  dbAPI_cursor(self)
  deleteRowsDescribedByQualifier(self, aQualifier, anEntity)
Builds the DELETE SQLExpression for 'aQualifier' and 'anEntity' ans executes it.
  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
  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.
  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.
    Inherited from AdaptorChannel
  adaptorContext(self)
See interfaces.AdaptorChannel for details
  addStoredProceduresNamed(self, storedProcedureNames, aModel)
See interfaces.AdaptorChannel for details
  delegate(self)
See interfaces.AdaptorChannel for details
  deleteRowDescribedByQualifier(self, aQualifier, anEntity)
Calls 'deleteRowsDescribedByQualifier()' on itself and make sure that one and only one row was deleted.
  dictionaryWithObjectsForAttributes(self, objects, attributes)
See interfaces.AdaptorChannel for details
  lockRowComparingAttributes(self, atts, anEntity, aQualifier, snapshot)
See interfaces.AdaptorChannel for details
  performAdaptorOperation(self, anAdaptorOperation)
Examines 'anAdaptorOperation' and executes the corresponding method.
  performAdaptorOperations(self, adaptorOperations)
Iterates on each item in 'adaptorOperations' and calls 'performAdaptorOperation()' with that item as a parameter.
  setDelegate(self, aDelegate)
See interfaces.AdaptorChannel for details
  updateValuesInRowDescribedByQualifier(self, row, aQualifier, anEntity)
Calls 'updateValuesInRowsDescribedByQualifier' on itself and make sure that one and only one row was updated.

Class Variable Summary
int _count_for_execute = 0                                                                     
    Inherited from AbstractDBAPI2AdaptorChannel
tuple __implements__ = (<class Modeling.interfaces.AdaptorChan...

Method 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:

count -- the number of primary keys to generate

anEntity -- the entity for which PKs are generated

The method used here is described in MySQLSchemaGeneration.primaryKeySupportStatementsForEntityGroup()

See also:
MySQLSchemaGeneration.primaryKeySupportStatementsForEntityGroup() MySQLSchemaGeneration.dropPrimaryKeySupportStatementsForEntityGroup() Modeling.AdaptorChannel.primaryKeysForNewRowsWithEntity()
Overrides:
Modeling.DatabaseAdaptors.AbstractDBAPI2AdaptorLayer.AbstractDBAPI2AdaptorChannel.AbstractDBAPI2AdaptorChannel.primaryKeysForNewRowsWithEntity

Class Variable Details

_count_for_execute

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Sat Mar 4 13:36:21 2006 http://epydoc.sf.net