FTDictionaryServiceDB


Abstract

BDB wrapper for storing key value pairs for a particular node within a special graph

Methods

-addObject((id ), (id ), (BOOL), (id ), (id ), (id ), (BOOL))
adds an object to the dictionary. Replaces an existing one if there is one already defined for the given key
-addObject((id ), (id ), (id ), (id ), (BOOL), (id ), (id ), (id ), (BOOL))
adds an object to the dictionary. Replaces an existing one if there is one already defined for the given key
-allKeys
-close
closes the database
-graphId
-initWithIndexDB
-initWithIndexDB:withDataDB:forNodeId:forGraphId:
-objectForKey:
returns the object for the given key
-removeObjectForKey
remove a value specified by the key. Does nothing if no value is being associated with the given key.
-removeObjectForKey:
remove a value specified by the key. Does nothing if no value is being associated with the given key
-removeObjectForKey:withKeyUpdate:
remove a value specified by the key. Does nothing if no value is being associated with the given key.
-setObject:forKey:
adds an object to the dictionary. Replaces an existing one if there is one already defined for the given key
-setObject:forKey:withKeyUpdate:
adds an object to the dictionary. Replaces an existing one if there is one already defined for the given key
-updateAllUserKeys
Store current set of user keys

addObject((id ), (id ), (BOOL), (id ), (id ), (id ), (BOOL))


adds an object to the dictionary. Replaces an existing one if there is one already defined for the given key

See Also:
setObject:forKey:withKeyUpdate:
- setObject: (id <NSCoding>) anObject forKey: (id <NSCoding>) aKey withKeyUpdate: (BOOL) doUpdate;
Parameter Descriptions
anObject
object to add
aKey
underlying key
doUpdae
specifies wether the internal key map has to be update after the addition of the entry or not
method result
self

addObject((id ), (id ), (id ), (id ), (BOOL), (id ), (id ), (id ), (BOOL))


adds an object to the dictionary. Replaces an existing one if there is one already defined for the given key

See Also:
setObject:forKey:
- setObject: (id <NSCoding>) anObject forKey: (id <NSCoding>) aKey;
Parameter Descriptions
anObject
object to add
aKey
underlying key
method result
self

allKeys


- (id <ECIterator>) allKeys;
method result
all keys

close


closes the database

- close;
method result
self

graphId


- (id <FTId>) graphId;
method result
id of graph for which this instance has been created for

initWithIndexDB


See Also:
initWithIndexDB:withDataDB:forNodeId:forGraphId:
- initWithIndexDB: (FTDictionaryServiceIndexDB *) anIndexDB withDataDB: (BDBDatabase *) aDataDB forNodeId: (id <FTId>) aNodeId forGraphId: (id <FTId>) aGraphId;
Parameter Descriptions
anIndexDB
corresponding index db
aDataDB
database to be uses
aNodeId
identifier for node for which this service is being allocated
method result
self

initWithIndexDB:withDataDB:forNodeId:forGraphId:


See Also:
initWithIndexDB
- initWithIndexDB: (FTDictionaryServiceIndexDB *) anIndexDB withDataDB: (BDBDatabase *) aDataDB forNodeId: (id <FTId>) aNodeId forGraphId: (id <FTId>) aGraphId;
Parameter Descriptions
anIndexDB
corresponding index db
aDataDB
database to be uses
aNodeId
identifier for node for which this service is being allocated

objectForKey:


returns the object for the given key

- objectForKey: (id <NSCoding>) aKey;
Parameter Descriptions
aKey
underlying key
method result
object for specified key

removeObjectForKey


remove a value specified by the key. Does nothing if no value is being associated with the given key.

See Also:
removeObjectForKey:withKeyUpdate:
- removeObjectForKey: (id <NSCoding>) aKey withKeyUpdate: (BOOL) doUpdate;
Parameter Descriptions
aKey
Key to look for
doUpdate
specifies wether updateAllUserKeys has to be called after removing the entry or not.
method result
self

removeObjectForKey:


remove a value specified by the key. Does nothing if no value is being associated with the given key

- removeObjectForKey: (id <NSCoding>) aKey;
Parameter Descriptions
aKey
Key to look for
method result
self

removeObjectForKey:withKeyUpdate:


remove a value specified by the key. Does nothing if no value is being associated with the given key.

See Also:
removeObjectForKey
- removeObjectForKey: (id <NSCoding>) aKey withKeyUpdate: (BOOL) doUpdate;
Parameter Descriptions
aKey
Key to look for
doUpdate
specifies wether updateAllUserKeys has to be called after removing the entry or not.

setObject:forKey:


adds an object to the dictionary. Replaces an existing one if there is one already defined for the given key

See Also:
addObject
- setObject: (id <NSCoding>) anObject forKey: (id <NSCoding>) aKey;
Parameter Descriptions
anObject
object to add
aKey
underlying key

setObject:forKey:withKeyUpdate:


adds an object to the dictionary. Replaces an existing one if there is one already defined for the given key

See Also:
addObject
- setObject: (id <NSCoding>) anObject forKey: (id <NSCoding>) aKey withKeyUpdate: (BOOL) doUpdate;
Parameter Descriptions
anObject
object to add
aKey
underlying key
doUpdae
specifies wether the internal key map has to be update after the addition of the entry or not

updateAllUserKeys


Store current set of user keys

- updateAllUserKeys;
method result
self

(Last Updated June 13, 2006)