FTTransactionImpl
Abstract
This is a very poor, simple, not usable transaction
implementation
Discussion
The idea behind is to just integrate the underlying
object infrastructure. Maybe in the future a real transaction model will
be provided.
Methods
- -abort
- Aborts the whole transaction
- -addTransactionStep((id ), (FTTransactionContext *), (id ), (FTTransactionContext *), (id ), (id ))
- Adds a step to the transaction
- -addTransactionStep((id ), (FTTransactionContext *), (id ), (id ))
- Adds a step to the transaction. Additionally it associates this
transaction step with a given key. Later on this step may be fetched
using this key.
- -addTransactionStep:
- -addTransactionStep:withContext:
- Adds a step to the transaction
- -addTransactionStep:withContext:identifiedByKey:
- Adds a step to the transaction. Additionally it associates this
transaction step with a given key. Later on this step may be fetched
using this key.
- -commit
- commits all actions associated with this transaction
- -createContext
- Creates a context for a transaction step
- -initForTransactionManager:
- -transactionStepForKey:
- -transactionSteps
Aborts the whole transaction
- (void) abort;
Adds a step to the transaction
See Also:
- addTransactionStep:withContext:
- addTransactionStep: (id <FTTransactionStep>) stepToAdd withContext: (FTTransactionContext *) context;
Parameter Descriptions
stepToAdd
- instance implementing the changes to be done by this step.
context
- Additional (context) data for the step
- method result
- self
Adds a step to the transaction. Additionally it associates this
transaction step with a given key. Later on this step may be fetched
using this key.
See Also:
- addTransactionStep:withContext:identifiedByKey:
- addTransactionStep: (id <FTTransactionStep>) stepToAdd withContext: (FTTransactionContext *) context identifiedByKey: (id <NSObject>) aKey;
Parameter Descriptions
stepToAdd
- instance implementing the changes to be done by this step.
context
- Additional (context) data for the step
identifiedByKey
- key used to identify the given transaction stept.
- method result
- self
- (unsigned) addTransactionStep: (FTTransactionStepAndContext *) stepToAdd;
Parameter Descriptions
stepToAdd
- transaction step to add
- method result
- array index where the element has been stored related to
self->transactionStepsAndContexts
Adds a step to the transaction
See Also:
- addTransactionStep
- addTransactionStep: (id <FTTransactionStep>) stepToAdd withContext: (FTTransactionContext *) context;
Parameter Descriptions
stepToAdd
- instance implementing the changes to be done by this step.
context
- Additional (context) data for the step
Adds a step to the transaction. Additionally it associates this
transaction step with a given key. Later on this step may be fetched
using this key.
See Also:
- addTransactionStep
- addTransactionStep: (id <FTTransactionStep>) stepToAdd withContext: (FTTransactionContext *) context identifiedByKey: (id <NSObject>) aKey;
Parameter Descriptions
stepToAdd
- instance implementing the changes to be done by this step.
context
- Additional (context) data for the step
identifiedByKey
- key used to identify the given transaction stept.
commits all actions associated with this transaction
- (void) commit;
Creates a context for a transaction step
- (FTTransactionContext *) createContext;
- method result
- new context. This context is not attached to this transaction until
is being called.
- initForTransactionManager: (id <FTTransactionManager>) aManager;
Parameter Descriptions
aManager
- underlying transaction manager
- method result
- self
- (id <FTTransactionStep>) transactionStepForKey: (id <NSObject>) aKey;
Parameter Descriptions
aKey
- key identifying a transaction step
- method result
- returns the transaction step associated with the given key
or nil if not existent
- (NSMutableArray *) transactionSteps;
- method result
- all transaction steps of this transaction
Discussion
The caller may modify this array
(Last Updated August 27, 2006)