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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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. |
|
|
get a Vector of matching DBObjects for a specific key. Returns an empty vector if no matching object was found. |
|
|
get the first object being associated with the keys in the keyObj. Returns null if no matching object was found. |
|
|
get the first matching object for a specific key. Returns null if no matching object was found. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.5