# Methods

`-closeAllServiceDBs`
  closes all databases used for by the services except for the index database
`-createNameForNewDatabase`
  creates a fully-qualified database name used to create a database for a (new) graph id
`-databaseForGraphId:`
  Internal method used to get/create a database for the specified graph id
`-databasenameForGraphId:`
  looks up for the database name of the given graph id. If not found then it will determine a new unique id
`-dictionaryServiceClosed:`
  this method is called by dictionary service db's in case they have been closed. It is used to inform the receiver in order to (potentially) releasing the database
`-dictionaryServiceDBForGraphId((id ), (id ), (id ), (id ), (NSString *), (id ))`
  returns a database which may be used by the dictionary service
`-dictionaryServiceDBForGraphId((id ), (NSString *), (id ))`
  Looks wether a database name already exists for the given graph id
`-dictionaryServiceDBForGraphId:forNodeId:`
  returns a database which may be used by the dictionary service
`-getDatabasenameForGraphId`
  looks up for the database name of the given graph id. If not found then it will determine a new unique id
`-initWithIndexDBName`
`-initWithIndexDBName:withDataDirectory:`
`-lookupDatabasenameForGraphId:`
  Looks wether a database name already exists for the given graph id
`-mount`
  mounts the database
`-storeDatabasename`
  used to store the mapping graphId -> database name
`-storeDatabasename:forGraphId:`
  used to store the mapping graphId -> database name

### closeAllServiceDBs

closes all databases used for by the services except for the index database

>     - closeAllServiceDBs;

method result
  self

### createNameForNewDatabase

creates a fully-qualified database name used to create a database for a (new) graph id

>     - (NSString *) createNameForNewDatabase;

method result
  a fully-qualified database name

### databaseForGraphId:

Internal method used to get/create a database for the specified graph id

>     - (BDBDatabase *) databaseForGraphId: (id <FTId>) aGraphId;

##### Parameter Descriptions

> `aGraphId`
>   graph id to look for

method result
  related database

### databasenameForGraphId:

looks up for the database name of the given graph id. If not found then it will determine a new unique id

See Also:

> getDatabasenameForGraphId

>     - (NSString *) databasenameForGraphId: (id <FTId>) aGraphId;

##### Parameter Descriptions

> `aGraphId`
>   graph id to look for

### dictionaryServiceClosed:

this method is called by dictionary service db's in case they have been closed. It is used to inform the receiver in order to (potentially) releasing the database

>     - dictionaryServiceClosed: (FTDictionaryServiceDB *) aServiceDB;

### dictionaryServiceDBForGraphId((id ), (id ), (id ), (id ), (NSString *), (id ))

returns a database which may be used by the dictionary service

See Also:

> dictionaryServiceDBForGraphId:forNodeId:

>     - (FTDictionaryServiceDB *) dictionaryServiceDBForGraphId: (id <FTId>) aGraphId forNodeId: (id <FTId>) aNodeId;

##### Parameter Descriptions

> `aGraphId`
>   id of related graph

method result
  dictionary database for specified graph

### dictionaryServiceDBForGraphId((id ), (NSString *), (id ))

Looks wether a database name already exists for the given graph id

See Also:

> lookupDatabasenameForGraphId:

>     - (NSString *) lookupDatabasenameForGraphId: (id <FTId>) aGraphId;

##### Parameter Descriptions

> `aGraphId`
>   graph id to look for

method result
  name for related database

### dictionaryServiceDBForGraphId:forNodeId:

returns a database which may be used by the dictionary service

See Also:

> dictionaryServiceDBForGraphId

>     - (FTDictionaryServiceDB *) dictionaryServiceDBForGraphId: (id <FTId>) aGraphId forNodeId: (id <FTId>) aNodeId;

##### Parameter Descriptions

> `aGraphId`
>   id of related graph

### getDatabasenameForGraphId

looks up for the database name of the given graph id. If not found then it will determine a new unique id

See Also:

> databasenameForGraphId:

>     - (NSString *) databasenameForGraphId: (id <FTId>) aGraphId;

##### Parameter Descriptions

> `aGraphId`
>   graph id to look for

method result
  corresponding database name

### initWithIndexDBName

See Also:

> initWithIndexDBName:withDataDirectory:

>     - initWithIndexDBName: (NSString *) anIndexDBName withDataDirectory: (NSString *) aDataDirectory;

##### Parameter Descriptions

> `anIndexDBName`
>   name to be used for the database
> `aDataDirectory`
>   file system directory where database files can be put into

method result
  self

### initWithIndexDBName:withDataDirectory:

See Also:

> initWithIndexDBName

>     - initWithIndexDBName: (NSString *) anIndexDBName withDataDirectory: (NSString *) aDataDirectory;

##### Parameter Descriptions

> `anIndexDBName`
>   name to be used for the database
> `aDataDirectory`
>   file system directory where database files can be put into

### lookupDatabasenameForGraphId:

Looks wether a database name already exists for the given graph id

See Also:

> dictionaryServiceDBForGraphId

>     - (NSString *) lookupDatabasenameForGraphId: (id <FTId>) aGraphId;

##### Parameter Descriptions

> `aGraphId`
>   graph id to look for

### mount

mounts the database

>     - mount;

method result
  self

### storeDatabasename

used to store the mapping graphId -> database name

See Also:

> storeDatabasename:forGraphId:

>     - storeDatabasename: (NSString *) aDatabasename forGraphId: (id <FTId>) aGraphId;

##### Parameter Descriptions

> `aDatabasename`
>   related database name
> `aGraphId`
>   graph id for which the database name has to be stored for

method result
  self

### storeDatabasename:forGraphId:

used to store the mapping graphId -> database name

See Also:

> storeDatabasename

>     - storeDatabasename: (NSString *) aDatabasename forGraphId: (id <FTId>) aGraphId;

##### Parameter Descriptions

> `aDatabasename`
>   related database name
> `aGraphId`
>   graph id for which the database name has to be stored for

(Last Updated June 13, 2006)