Up

EOAdaptorOperation Class

Authors

Mirko Viviani (mirko.viviani@rccr.cremona.it)

Version: 21645

Date: 2005-08-17 10:07:57 +0200 (Mit, 17 Aug 2005)

Copyright: (C) 2000-2002,2003,2004,2005 Free Software Foundation, Inc.


Contents -

  1. Software documentation for the EOAdaptorOperation class
  2. Software documentation for the EODatabaseOperation class
  3. EODatabaseOperation types

Software documentation for the EOAdaptorOperation class

EOAdaptorOperation : NSObject

Declared in:
EOAccess/EODatabaseOperation.h
Availability: OpenStep

EOAdaptorOperation represent an adaptor 'elementaty' operation. Instance objects are created by EODatabaseOperation

Instance Variables

Method summary

adaptorOperationWithEntity: 

+ (EOAdaptorOperation*) adaptorOperationWithEntity: (EOEntity*)entity;
Availability: OpenStep

Description forthcoming.

adaptorOperator 

- (EOAdaptorOperator) adaptorOperator;
Availability: OpenStep

returns adaptor operator

attributes 

- (NSArray*) attributes;
Availability: OpenStep

Description forthcoming.

changedValues 

- (NSDictionary*) changedValues;
Availability: OpenStep

returns dictionary of changed values

compareAdaptorOperation: 

- (NSComparisonResult) compareAdaptorOperation: (EOAdaptorOperation*)adaptorOp;
Availability: OpenStep

compare 2 adaptor operations

entity 

- (EOEntity*) entity;
Availability: OpenStep

returns entity

exception 

- (NSException*) exception;
Availability: OpenStep

Description forthcoming.

initWithEntity: 

- (id) initWithEntity: (EOEntity*)entity;
Availability: OpenStep

Init the instance with the main concerned entity

qualifier 

- (EOQualifier*) qualifier;
Availability: OpenStep

returns qualifier

setAdaptorOperator: 

- (void) setAdaptorOperator: (EOAdaptorOperator)adaptorOperator;
Availability: OpenStep

set adaptor operator

setAttributes: 

- (void) setAttributes: (NSArray*)attributes;
Availability: OpenStep

Description forthcoming.

setChangedValues: 

- (void) setChangedValues: (NSDictionary*)changedValues;
Availability: OpenStep

set dictionary of changed values

setException: 

- (void) setException: (NSException*)exception;
Availability: OpenStep

Description forthcoming.

setQualifier: 

- (void) setQualifier: (EOQualifier*)qualifier;
Availability: OpenStep

set Qualifier

setStoredProcedure: 

- (void) setStoredProcedure: (EOStoredProcedure*)storedProcedure;
Availability: OpenStep

Description forthcoming.

storedProcedure 

- (EOStoredProcedure*) storedProcedure;
Availability: OpenStep

Description forthcoming.



Instance Variables for EOAdaptorOperation Class

_adaptorOperator

@protected EOAdaptorOperator _adaptorOperator;
Database Adaptor
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_attributes

@protected NSArray* _attributes;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_changedValues

@protected NSDictionary* _changedValues;
dictionary of changed fields/values
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_entity

@protected EOEntity* _entity;
Main concerned entity
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_exception

@protected NSException* _exception;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_qualifier

@protected EOQualifier* _qualifier;
qualifier
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_storedProcedure

@protected EOStoredProcedure* _storedProcedure;
Stored Procedure
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.




Software documentation for the EODatabaseOperation class

EODatabaseOperation : NSObject

Declared in:
EOAccess/EODatabaseOperation.h
Availability: OpenStep

EODatabaseOperation represent a database high level operation on an object (record) It creates EOAdaptorOperations. You generally don't need to create such objects by yourself. They are created by EOEditingContext

Instance Variables

Method summary

databaseOperationWithGlobalID: object: entity: 

+ (EODatabaseOperation*) databaseOperationWithGlobalID: (EOGlobalID*)globalID object: (id)object entity: (EOEntity*)entity;
Availability: OpenStep

Description forthcoming.

adaptorOperations 

- (NSArray*) adaptorOperations;
Availability: OpenStep

returns array of EOAdaptorOperations to perform

addAdaptorOperation: 

- (void) addAdaptorOperation: (EOAdaptorOperation*)adaptorOperation;
Availability: OpenStep

adds an Adaptor Operation Raises an exception if adaptorOperation is nil

databaseOperator 

- (EODatabaseOperator) databaseOperator;
Availability: OpenStep

Description forthcoming.

dbSnapshot 

- (NSDictionary*) dbSnapshot;
Availability: OpenStep

Returns the database snapshot for the object. The snapshot contains the last known database values for the object. If the object has just been inserted (i.e. not yet in database), the returned dictionary is empty

entity 

- (EOEntity*) entity;
Availability: OpenStep

Description forthcoming.

globalID 

- (EOGlobalID*) globalID;
Availability: OpenStep

Description forthcoming.

initWithGlobalID: object: entity: 

- (id) initWithGlobalID: (EOGlobalID*)globalID object: (id)object entity: (EOEntity*)entity;
Availability: OpenStep

Description forthcoming.

newRow 

- (NSMutableDictionary*) newRow;
Availability: OpenStep

Returns a dictionary with (new) values (properties+primary keys...) of the object. The newRow dictionary is created when creating the database operation (in EODatabaseChannel -databaseOperationForObject: for exemple). Values come from object state in database and overrides by changes made on the object

object 

- (id) object;
Availability: OpenStep

Description forthcoming.

primaryKeyDiffs 

- (NSDictionary*) primaryKeyDiffs;
Availability: OpenStep

Description forthcoming.

recordToManySnapshot: relationshipName: 

- (void) recordToManySnapshot: (NSArray*)gids relationshipName: (NSString*)name;
Availability: OpenStep

Description forthcoming.

removeAdaptorOperation: 

- (void) removeAdaptorOperation: (EOAdaptorOperation*)adaptorOperation;
Availability: OpenStep

removes an Adaptor Operation

rowDiffs 

- (NSDictionary*) rowDiffs;
Availability: OpenStep

Description forthcoming.

rowDiffsForAttributes: 

- (NSDictionary*) rowDiffsForAttributes: (NSArray*)attributes;
Availability: OpenStep

Description forthcoming.

setDBSnapshot: 

- (void) setDBSnapshot: (NSDictionary*)dbSnapshot;
Availability: OpenStep

sets the snapshot for the object (should be empty if the object has just been inserted into an EOEditingContext

setDatabaseOperator: 

- (void) setDatabaseOperator: (EODatabaseOperator)dbOp;
Availability: OpenStep

Description forthcoming.

setNewRow: 

- (void) setNewRow: (NSMutableDictionary*)newRow;
Availability: OpenStep

Description forthcoming.

toManySnapshots 

- (NSDictionary*) toManySnapshots;
Availability: OpenStep

Description forthcoming.



Instance Variables for EODatabaseOperation Class

_adaptorOps

@protected NSMutableArray* _adaptorOps;
EOAdaptorOperations generated to perfor this DatabaseOperation
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_databaseOperator

@protected EODatabaseOperator _databaseOperator;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_dbSnapshot

@protected NSDictionary* _dbSnapshot;
The last known database values for the object (i.e. values from last fetch or last commited operation)
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_entity

@protected EOEntity* _entity;
entity
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_globalID

@protected EOGlobalID* _globalID;
global ID of the object
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_newRow

@protected NSMutableDictionary* _newRow;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_object

@protected id _object;
object (record)
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.

_toManySnapshots

@protected NSMutableDictionary* _toManySnapshots;
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.




EODatabaseOperation types

EOAdaptorOperator

typedef enum ... EOAdaptorOperator;
Description forthcoming.

EODatabaseOperator

typedef enum ... EODatabaseOperator;
Description forthcoming.


Up