Up
Authors
- Mirko Viviani (
mirko.viviani@gmail.com
)
-
Version: 25326
Date: 2007-07-12 08:39:22 +0200 (Don, 12 Jul 2007)
Copyright: (C)
2000-2002,2003,2004,2005 Free Software
Foundation, Inc.
- Declared in:
- EOAccess/EODatabaseOperation.h
EOAdaptorOperation represent an adaptor
'elementaty' operation. Instance objects are
created by EODatabaseOperation
Instance Variables
Method summary
- (NSArray*)
attributes;
Description forthcoming.
- (NSDictionary*)
changedValues;
returns dictionary of changed values
- (NSComparisonResult)
compareAdaptorOperation: (
EOAdaptorOperation*)adaptorOp;
compare 2 adaptor operations
- (NSException*)
exception;
Description forthcoming.
- (id)
initWithEntity: (
EOEntity*)entity;
Init the instance with the main concerned
entity
- (EOQualifier*)
qualifier;
returns qualifier
- (void)
setAdaptorOperator: (
EOAdaptorOperator)adaptorOperator;
set adaptor operator
- (void)
setAttributes: (NSArray*)attributes;
Description forthcoming.
- (void)
setChangedValues: (NSDictionary*)changedValues;
set dictionary of changed values
- (void)
setException: (NSException*)exception;
Description forthcoming.
- (void)
setQualifier: (EOQualifier*)qualifier;
set Qualifier
- (void)
setStoredProcedure: (
EOStoredProcedure*)storedProcedure;
Description forthcoming.
Instance Variables for EOAdaptorOperation Class
@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.
@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.
@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.
@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.
@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.
@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.
@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.
- Declared in:
- EOAccess/EODatabaseOperation.h
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
+ (
EODatabaseOperation*)
databaseOperationWithGlobalID: (EOGlobalID*)globalID
object: (id)object
entity: (
EOEntity*)entity;
Description forthcoming.
- (NSArray*)
adaptorOperations;
returns array of EOAdaptorOperations to perform
- (void)
addAdaptorOperation: (
EOAdaptorOperation*)adaptorOperation;
adds an Adaptor Operation Raises an exception if
adaptorOperation is nil
- (NSDictionary*)
dbSnapshot;
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
- (
EOEntity*)
entity;
Description forthcoming.
- (EOGlobalID*)
globalID;
Description forthcoming.
- (id)
initWithGlobalID: (EOGlobalID*)globalID
object: (id)object
entity: (
EOEntity*)entity;
Description forthcoming.
- (NSMutableDictionary*)
newRow;
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
- (id)
object;
Description forthcoming.
- (NSDictionary*)
primaryKeyDiffs;
Description forthcoming.
- (void)
recordToManySnapshot: (NSArray*)gids
relationshipName: (NSString*)name;
Description forthcoming.
- (void)
removeAdaptorOperation: (
EOAdaptorOperation*)adaptorOperation;
removes an Adaptor Operation
- (NSDictionary*)
rowDiffs;
Description forthcoming.
- (NSDictionary*)
rowDiffsForAttributes: (NSArray*)attributes;
Description forthcoming.
- (void)
setDBSnapshot: (NSDictionary*)dbSnapshot;
sets the snapshot for the object (should be empty if
the object has just been inserted into an
EOEditingContext
- (void)
setNewRow: (NSMutableDictionary*)newRow;
Description forthcoming.
- (NSDictionary*)
toManySnapshots;
Description forthcoming.
Instance Variables for EODatabaseOperation Class
@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.
@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.
@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.
@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.
@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.
@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.
@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.
@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.
typedef enum ... EOAdaptorOperator;
Description forthcoming.
typedef enum ... EODatabaseOperator;
Description forthcoming.
Up