Package Modeling :: Module AdaptorOperation :: Class AdaptorOperation
[show private | hide private]
[frames | no frames]

Class AdaptorOperation


Method Summary
  __init__(self, anEntity, adaptorOperator)
  __cmp__(self, anAdaptorOperation)
Compares 'self' to 'anAdaptorOperation'.
  __repr__(self)
  __str__(self)
Returns a string representation for this object, made of: 'repr(self)', the operator and the entity's name.
  __unimplemented__(self)
  adaptorOperator(self)
Returns the type of the operation the AdaptorOperation performs
  attributes(self)
__TBD for lock only
  changedValues(self)
See setChangedValues() for details
  entity(self)
Returns the Entity corresponding to the object concerned by this AdaptorOperation.
  exception(self)
  qualifier(self)
Returns the qualifier that should be used for LOCK, UPDATE or DELETE operations.
  setAdaptorOperator(self, anAdaptorOperator)
Sets the type of the operation the AdaptorOperation performs
  setAttributes(self, attributes)
__TBD for lock only
  setChangedValues(self, changedValues)
INSERT: the full set of value to be inserted within the underlying database
  setException(self, anException)
  setQualifier(self, aQualifier)
Sets the object's quelifier
  setStoredProcedure(self, aStoredProcedure)
Unimplemented yet
  storedProcedure(self)
Unimplemented yet
  __operatorToString(self)
Internally used by __str__

Method Details

__cmp__(self, anAdaptorOperation)
(Comparison operator)

Compares 'self' to 'anAdaptorOperation'. Comparison is based on the AdaptorOperations' adaptorOperators, whose order is: LOCK, INSERT, UPDATE, DELETE, STORED_PROCEDURE (the latter is not supported yet).

__str__(self)
(Informal representation operator)

Returns a string representation for this object, made of: 'repr(self)', the operator and the entity's name.

__unimplemented__(self)

adaptorOperator(self)

Returns the type of the operation the AdaptorOperation performs

attributes(self)

__TBD for lock only

changedValues(self)

See setChangedValues() for details

entity(self)

Returns the Entity corresponding to the object concerned by this AdaptorOperation.

See also: setEntity()

qualifier(self)

Returns the qualifier that should be used for LOCK, UPDATE or DELETE operations.

See also: setQualifier()

setAdaptorOperator(self, anAdaptorOperator)

Sets the type of the operation the AdaptorOperation performs

Raises ValueError in anAdaptorOperator is not in ADAPTOR_OPERATORS.

setAttributes(self, attributes)

__TBD for lock only

setChangedValues(self, changedValues)

INSERT: the full set of value to be inserted within the underlying database

UPDATE: the values to changed

LOCK: the values to be compared with the row in the database

Parameter:

changedValues -- a dictionary made of attributes' names and their corresponding values.

setQualifier(self, aQualifier)

Sets the object's quelifier

Used by for LOCK, UPDATE and DELETE.

setStoredProcedure(self, aStoredProcedure)

Unimplemented yet

storedProcedure(self)

Unimplemented yet

__operatorToString(self)

Internally used by __str__

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