# Methods

`+addGenericContextData`
`+addGenericContextData:graph:operation:toContext:`
`+createForDeletionOfNode`
  Creates a transaction used to remove a node
`+createForDeletionOfNode:withContext:withGraph:`
  Creates a transaction used to remove a node
`+createForNodeUpdate`
  Creates a transaction used to update a node
`+createForUpdateOfNode:withContext:withGraph:`
  Creates a transaction used to update a node
`-graphFromContext:`
  Utilitiy method to fetch the graph parameter from the transaction context
`-nodeFromContext`
  Utilitiy method to fetch the graph parameter from the transaction context
`-nodeFromContext:`
  Utilitiy method to fetch the node parameter from the transaction context
`+operationIdFromContext:`
  internal method to parse the current context in order to determine the operation id
`-performAction:`
  Called by the transaction controll in order to run the transaction
`-performDeletionWithContext`
  Performs the deletion of a node
`-performDeletionWithContext:withGraph:`
  Performs the deletion of a node
`-performUpdate`
  performs an update of a node
`-performUpdateWithContext:withGraph:`
  performs an update of a node
`-undoAction:`
  removes all modifications previously been done by ``

### addGenericContextData

See Also:

> addGenericContextData:graph:operation:toContext:

>     + (void) addGenericContextData:(FTNodeImpl *) node graph: (FTGraphImpl *) graph operation: (int) operation toContext: (FTTransactionContext *) context;

##### Parameter Descriptions

> `node`
>   to add
> `graph`
>   to add
> `operation`
>   specifying the kind of operation to execute.
> `context`
>   to modify

### addGenericContextData:graph:operation:toContext:

See Also:

> addGenericContextData

>     + (void) addGenericContextData:(FTNodeImpl *) node graph: (FTGraphImpl *) graph operation: (int) operation toContext: (FTTransactionContext *) context;

##### Parameter Descriptions

> `node`
>   to add
> `graph`
>   to add
> `operation`
>   specifying the kind of operation to execute.
> `context`
>   to modify

### createForDeletionOfNode

Creates a transaction used to remove a node

See Also:

> createForDeletionOfNode:withContext:withGraph:

>     + (FTGraphImplTransactions *) createForDeletionOfNode: (FTNodeImpl *) node withContext: (FTTransactionContext *) context withGraph: (FTGraphImpl *) graph;

##### Parameter Descriptions

> `node`
>   node to remove
> `context`
>   transaction context to be used

method result
  transaction step which is initialized correspondingly

### createForDeletionOfNode:withContext:withGraph:

Creates a transaction used to remove a node

See Also:

> createForDeletionOfNode

>     + (FTGraphImplTransactions *) createForDeletionOfNode: (FTNodeImpl *) node withContext: (FTTransactionContext *) context withGraph: (FTGraphImpl *) graph;

##### Parameter Descriptions

> `node`
>   node to remove
> `context`
>   transaction context to be used

### createForNodeUpdate

Creates a transaction used to update a node

See Also:

> createForUpdateOfNode:withContext:withGraph:

>     + (FTGraphImplTransactions *) createForUpdateOfNode: (FTNodeImpl *) node withContext: (FTTransactionContext *) context withGraph: (FTGraphImpl *) graph;

##### Parameter Descriptions

> `node`
>   node to update
> `context`
>   transaction context to be used

method result
  transaction step which is initialized correspondingly

### createForUpdateOfNode:withContext:withGraph:

Creates a transaction used to update a node

See Also:

> createForNodeUpdate

>     + (FTGraphImplTransactions *) createForUpdateOfNode: (FTNodeImpl *) node withContext: (FTTransactionContext *) context withGraph: (FTGraphImpl *) graph;

##### Parameter Descriptions

> `node`
>   node to update
> `context`
>   transaction context to be used

### graphFromContext:

Utilitiy method to fetch the graph parameter from the transaction context

See Also:

> nodeFromContext

>     - (FTGraphImpl *) graphFromContext: (FTTransactionContext *) transactionContext;

### nodeFromContext

Utilitiy method to fetch the graph parameter from the transaction context

See Also:

> graphFromContext:

>     - (FTGraphImpl *) graphFromContext: (FTTransactionContext *) transactionContext;

method result
  graph parameter of transaction context or nil if not existent

### nodeFromContext:

Utilitiy method to fetch the node parameter from the transaction context

>     - (FTNodeImpl *) nodeFromContext: (FTTransactionContext *) transactionContext;

method result
  node parameter of transaction context or nil if not existent

### operationIdFromContext:

internal method to parse the current context in order to determine the operation id

>     + (enum __FTGraphImplTransactionType) operationIdFromContext: (FTTransactionContext *) transactionContext;

##### Parameter Descriptions

> `transactionContext`
>   underlying context

method result
  operation id

### performAction:

Called by the transaction controll in order to run the transaction

>     - (BOOL) performAction: (FTTransactionContext *) transactionContext;

method result
  return information about the success of this operation

### performDeletionWithContext

Performs the deletion of a node

See Also:

> performDeletionWithContext:withGraph:

>     - (BOOL) performDeletionWithContext: (FTTransactionContext *) transactionContext withGraph: (FTGraphImpl *) aGraph;

##### Parameter Descriptions

> `transactionContext`
>   underlying context
> `aGraph`
>   related graph

method result
  YES in case of success

### performDeletionWithContext:withGraph:

Performs the deletion of a node

See Also:

> performDeletionWithContext

>     - (BOOL) performDeletionWithContext: (FTTransactionContext *) transactionContext withGraph: (FTGraphImpl *) aGraph;

##### Parameter Descriptions

> `transactionContext`
>   underlying context
> `aGraph`
>   related graph

### performUpdate

performs an update of a node

See Also:

> performUpdateWithContext:withGraph:

>     - (BOOL) performUpdateWithContext: (FTTransactionContext *) transactionContext withGraph: (FTGraphImpl *) aGraph;

##### Parameter Descriptions

> `transactionContext`

method result
  YES on success

### performUpdateWithContext:withGraph:

performs an update of a node

See Also:

> performUpdate

>     - (BOOL) performUpdateWithContext: (FTTransactionContext *) transactionContext withGraph: (FTGraphImpl *) aGraph;

##### Parameter Descriptions

> `transactionContext`

### undoAction:

removes all modifications previously been done by ``

>     - (BOOL) undoAction: (FTTransactionContext *) transactionContext;

method result
  return YES if done successfully

(Last Updated August 27, 2006)