|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.garret.consus.Persistent org.garret.consus.StringIndex
Field Summary |
---|
Fields inherited from class org.garret.consus.Persistent |
---|
db, oid, PO_DELETED, PO_LOADED, PO_NEW, PO_STUB, state, type |
Constructor Summary | |
---|---|
StringIndex()
|
Method Summary | |
---|---|
abstract void |
clear()
Remove all the objects from the index. |
abstract java.lang.Object |
clone()
Clone index. |
abstract void |
insert(java.lang.String key,
Persistent obj)
Insert a new object in the index. |
abstract boolean |
insertUnique(java.lang.String key,
Persistent obj)
Insert a new object in the index. |
abstract boolean |
remove(java.lang.String key,
Persistent obj)
Remove an object from the index. |
abstract ConsusResultSet |
select()
Selects all indexed objects. |
abstract ConsusResultSet |
select(boolean forUpdate)
Selects all indexed objects, |
abstract ConsusResultSet |
select(java.lang.String key)
Select objects with the specified value of the key. |
abstract ConsusResultSet |
select(java.lang.String firstKey,
java.lang.String lastKey)
Select an object with a value of the key greater-or-equal than firstKey
and less-or-equal than lastKey . |
abstract ConsusResultSet |
select(java.lang.String firstKey,
java.lang.String lastKey,
boolean forUpdate)
Select an object with a value of the key greater-or-equal than firstKey
and less-or-equal than lastKey . |
ConsusResultSet |
selectForUpdate()
Selects all indexed objects for update. |
abstract ConsusResultSet |
selectForUpdate(java.lang.String key)
Select for update the objects with the specified value of the key. |
abstract ConsusResultSet |
selectForUpdate(java.lang.String firstKey,
java.lang.String lastKey)
Select for update an object with a value of the key greater-or-equal than firstKey
and less-or-equal than lastKey . |
abstract java.lang.Object |
selectUnique(java.lang.String key)
Select the object with the specified value of the key. |
Methods inherited from class org.garret.consus.Persistent |
---|
assignOID, become, beginUpdate, endUpdate, get, get, getOid, getOid, getRef, getRef, isDeleted, isLoaded, isNew, load, loadClosure, loadComponents, lock, remove, save, store, store, toString, unget |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringIndex()
Method Detail |
---|
public abstract void clear()
public abstract java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public abstract void insert(java.lang.String key, Persistent obj)
obj
- object to be placed in the indexpublic abstract boolean insertUnique(java.lang.String key, Persistent obj)
obj
- object to be placed in the index if unique constraint is not violatedpublic abstract boolean remove(java.lang.String key, Persistent obj)
obj
- object to be removed from the indexpublic abstract ConsusResultSet select()
public abstract ConsusResultSet select(boolean forUpdate)
forUpdate
- if objects are selected for update
public abstract ConsusResultSet select(java.lang.String key)
key
- searched value
public abstract ConsusResultSet select(java.lang.String firstKey, java.lang.String lastKey)
firstKey
and less-or-equal than lastKey
.
firstKey
- low bound of key rabgelastKey
- high bound of key rabge
public abstract ConsusResultSet select(java.lang.String firstKey, java.lang.String lastKey, boolean forUpdate)
firstKey
and less-or-equal than lastKey
.
firstKey
- low bound of key rabgelastKey
- high bound of key rabgeforUpdate
- if objects are selected for update
public ConsusResultSet selectForUpdate()
public abstract ConsusResultSet selectForUpdate(java.lang.String key)
key
- searched value
public abstract ConsusResultSet selectForUpdate(java.lang.String firstKey, java.lang.String lastKey)
firstKey
and less-or-equal than lastKey
.
firstKey
- low bound of key rangelastKey
- high bound of key range
public abstract java.lang.Object selectUnique(java.lang.String key)
key
- searched value
null
if there are no such object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |