# 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`

### abort

Aborts the whole transaction

>     - (void) abort;

### addTransactionStep((id ), (FTTransactionContext *), (id ), (FTTransactionContext *), (id ), (id ))

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

### 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.

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

### addTransactionStep:

>     - (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

### addTransactionStep:withContext:

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

### 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.

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.

### commit

commits all actions associated with this transaction

>     - (void) commit;

### createContext

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:

>     - initForTransactionManager: (id <FTTransactionManager>) aManager;

##### Parameter Descriptions

> `aManager`
>   underlying transaction manager

method result
  self

### transactionStepForKey:

>     - (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

### transactionSteps

>     - (NSMutableArray *) transactionSteps;

method result
  all transaction steps of this transaction

##### Discussion

The caller may modify this array

(Last Updated August 27, 2006)