# FTSessionImpl.h

## Functions

`beginTransactionWithParent`
  Used to begin a transaction
`beginTransactionWithParent:withSettings:`
  Used to begin a transaction
`currentSession`
`currentTransaction`
`defaultObjectToIdMapper`
`graphManager`
`server`
  This method is meant for derived classes
`sessionId`

### beginTransactionWithParent

Used to begin a transaction

>     - (
>             id <FTTransaction>) beginTransactionWithParent: (
>             id <FTTransaction>) parentTransaction withSettings: (
>             id <FTTransactionSettings>) transactionSettings;

##### Parameter Descriptions

> `parentTransaction`
>   may be nil. If not then the specified transaction will be used as parent transaction and the new transaction will be executed as nested transaction. At present only nil values are supported.
> `transactionSettings`
>   an instance specifying settings for this transaction. At present, only nil values are supported.

function result
  underlying transaction

### beginTransactionWithParent:withSettings:

Used to begin a transaction

>     - (
>             id <FTTransaction>) beginTransactionWithParent: (
>             id <FTTransaction>) parentTransaction withSettings: (
>             id <FTTransactionSettings>) transactionSettings;

##### Parameter Descriptions

> `parentTransaction`
>   may be nil. If not then the specified transaction will be used as parent transaction and the new transaction will be executed as nested transaction. At present only nil values are supported.
> `transactionSettings`
>   an instance specifying settings for this transaction. At present, only nil values are supported.

function result
  underlying transaction

### currentSession

>     + (
>             FTSessionImpl *) currentSession;

function result
  the session associated to the currently running thread. nil, if not attached to this thread

### currentTransaction

>     - (
>             FTTransactionImpl *) currentTransaction;

function result
  current transaction of the given session

### defaultObjectToIdMapper

>     - (
>             id <FTObjectToIdMapper>) defaultObjectToIdMapper;

function result
  return the default object to id mapper used e.g. to get id's of graphs

### graphManager

>     - (
>             id <FTGraphManager>) graphManager;

function result
  return the manager used to fetch, create etc. graphs

### server

This method is meant for derived classes

>     - (
>             FTServerImpl *) server;

function result
  returns the reference to the server instance

### sessionId

>     - (
>             id) sessionId;

function result
  return the id of this session

(Last Updated August 27, 2006)