sfi.director.repository.DBSetIndex Class Reference

List of all members.

Detailed Description

implements a search index for lists of DBObjects.

Builds an index of DBObjects for fast searching of DBObjects with one attribute as the search key.


Public Member Functions

 DBSetIndex ()
 DBSetIndex (String attr)
String searchAttr ()
String searchAttr (String attr)
synchronized void resetIndex ()
synchronized void add (DBObject dbo)
void add (Enumeration elements)
void add (Vector elements)
synchronized void remove (DBObject dbo)
DBObject getFirst (String key)
 get the first matching object for a specific key.
DBObject getFirst (DBObject keyObj)
 get the first object being associated with the keys in the keyObj.
Vector get (String key)
 get a Vector of matching DBObjects for a specific key.
Vector get (DBObject keyObj)
 get a Vector of all DBObjects associated with one of the keys in the keyObj.

Public Attributes

final String EMPTY = ""

Protected Member Functions

Vector indexKeys (DBObject dbo)

Protected Attributes

Hashtable index = new Hashtable()
String searchAttr = null


Constructor & Destructor Documentation

sfi.director.repository.DBSetIndex.DBSetIndex  ) 
 

sfi.director.repository.DBSetIndex.DBSetIndex String  attr  ) 
 


Member Function Documentation

void sfi.director.repository.DBSetIndex.add Vector  elements  ) 
 

void sfi.director.repository.DBSetIndex.add Enumeration  elements  ) 
 

synchronized void sfi.director.repository.DBSetIndex.add DBObject  dbo  ) 
 

Vector sfi.director.repository.DBSetIndex.get DBObject  keyObj  ) 
 

get a Vector of all DBObjects associated with one of the keys in the keyObj.

Returns an empty Vector if no matching object was found.

Vector sfi.director.repository.DBSetIndex.get String  key  ) 
 

get a Vector of matching DBObjects for a specific key.

Returns an empty vector if no matching object was found.

DBObject sfi.director.repository.DBSetIndex.getFirst DBObject  keyObj  ) 
 

get the first object being associated with the keys in the keyObj.

Returns null if no matching object was found.

DBObject sfi.director.repository.DBSetIndex.getFirst String  key  ) 
 

get the first matching object for a specific key.

Returns null if no matching object was found.

Vector sfi.director.repository.DBSetIndex.indexKeys DBObject  dbo  )  [protected]
 

synchronized void sfi.director.repository.DBSetIndex.remove DBObject  dbo  ) 
 

synchronized void sfi.director.repository.DBSetIndex.resetIndex  ) 
 

String sfi.director.repository.DBSetIndex.searchAttr String  attr  ) 
 

String sfi.director.repository.DBSetIndex.searchAttr  ) 
 


Member Data Documentation

final String sfi.director.repository.DBSetIndex.EMPTY = ""
 

Hashtable sfi.director.repository.DBSetIndex.index = new Hashtable() [protected]
 

String sfi.director.repository.DBSetIndex.searchAttr = null [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Feb 11 01:20:22 2012 for Node Director by  doxygen 1.4.5