Package Modeling :: Package DatabaseAdaptors :: Package OracleAdaptorLayer :: Module OracleAdaptorChannel :: Class OracleAdaptorChannel
[show private | hide private]
[frames | no frames]

Class OracleAdaptorChannel

          AdaptorChannel --+    
                           |    
AbstractDBAPI2AdaptorChannel --+
                               |
                              OracleAdaptorChannel


Concrete AdaptorChannel for Oracle
Method Summary
  openChannel(self)
Overrides superclass implementation and alter the session's nls_date_format to be 'YYYY-MM-DD HH24:mi:ss', so that SQL queries including dates are correctly interpreted (this is the string format returned by a DCOracle2's OracleDate)
  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
  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
    Inherited from AbstractDBAPI2AdaptorChannel
tuple __implements__ = (<class Modeling.interfaces.AdaptorChan...

Method Details

openChannel(self)

Overrides superclass implementation and alter the session's nls_date_format to be 'YYYY-MM-DD HH24:mi:ss', so that SQL queries including dates are correctly interpreted (this is the string format returned by a DCOracle2's OracleDate)
Overrides:
Modeling.DatabaseAdaptors.AbstractDBAPI2AdaptorLayer.AbstractDBAPI2AdaptorChannel.AbstractDBAPI2AdaptorChannel.openChannel

primaryKeysForNewRowsWithEntity(self, count, anEntity)

Generates and returns a list of dictionaries, whose keys are PK attributes' names and values the corresponding PK value. This implementation executes the following SQL statement:

SELECT PK_SEQ_<entity.primaryKeyRootName()>.NEXTVAL FROM DUAL

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

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

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