|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.core.client.db.DBObject
org.cruxframework.crux.core.client.db.Index<K,I,V>
org.cruxframework.crux.core.client.db.WSQLIndex<K,I,V>
K - object key typeI - index key type. The type of the indexed columnV - object typepublic abstract class WSQLIndex<K,I,V>
Represents an index into this database.
| Field Summary | |
|---|---|
protected WSQLAbstractDatabase |
db
|
protected WSQLTransaction |
transaction
|
| Fields inherited from class org.cruxframework.crux.core.client.db.DBObject |
|---|
logger |
| Constructor Summary | |
|---|---|
protected |
WSQLIndex(WSQLAbstractDatabase db,
WSQLTransaction transaction)
|
| Method Summary | |
|---|---|
void |
count(DatabaseCountCallback callback)
Return the number of items referenced by the index. |
void |
count(KeyRange<I> range,
DatabaseCountCallback callback)
Return the number of items referenced by the index in the given range. |
void |
get(I key,
DatabaseRetrieveCallback<V> callback)
Retrieve the object associated with the given key from the index. |
void |
get(KeyRange<I> keyRange,
DatabaseRetrieveCallback<V> callback)
Retrieve the object in the given keyRange from the index. |
void |
getKey(I key,
DatabaseRetrieveCallback<K> callback)
Retrieve the object key associated with the given key from the index. |
void |
getKey(KeyRange<I> keyRange,
DatabaseRetrieveCallback<K> callback)
Retrieve the object key in the given keyRange from the index. |
abstract KeyRangeFactory<I> |
getKeyRangeFactory()
Retrieve a factory to create KeyRange objects used by this index. |
void |
openCursor(DatabaseCursorCallback<I,V> callback)
Open a cursor to iterate over the object store. |
abstract void |
openCursor(KeyRange<I> keyRange,
Cursor.CursorDirection direction,
DatabaseCursorCallback<I,V> callback)
Open a cursor to iterate over the object store. |
void |
openCursor(KeyRange<I> keyRange,
DatabaseCursorCallback<I,V> callback)
Open a cursor to iterate over the object store. |
void |
openKeyCursor(DatabaseCursorCallback<I,K> callback)
Open a cursor to iterate over the object store. |
abstract void |
openKeyCursor(KeyRange<I> keyRange,
Cursor.CursorDirection direction,
DatabaseCursorCallback<I,K> callback)
Open a cursor to iterate over the object store. |
void |
openKeyCursor(KeyRange<I> keyRange,
DatabaseCursorCallback<I,K> callback)
Open a cursor to iterate over the object store. |
| Methods inherited from class org.cruxframework.crux.core.client.db.Index |
|---|
getName, isMultiEntry, isUnique |
| Methods inherited from class org.cruxframework.crux.core.client.db.DBObject |
|---|
reportError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final WSQLAbstractDatabase db
protected final WSQLTransaction transaction
| Constructor Detail |
|---|
protected WSQLIndex(WSQLAbstractDatabase db,
WSQLTransaction transaction)
| Method Detail |
|---|
public void count(DatabaseCountCallback callback)
count in class Index<K,I,V>callback -
public void count(KeyRange<I> range,
DatabaseCountCallback callback)
count in class Index<K,I,V>range - callback -
public void get(I key,
DatabaseRetrieveCallback<V> callback)
DatabaseRetrieveCallback.
get in class Index<K,I,V>key - callback -
public void get(KeyRange<I> keyRange,
DatabaseRetrieveCallback<V> callback)
DatabaseRetrieveCallback.
get in class Index<K,I,V>keyRange - callback -
public void getKey(I key,
DatabaseRetrieveCallback<K> callback)
DatabaseRetrieveCallback.
getKey in class Index<K,I,V>key - callback -
public void getKey(KeyRange<I> keyRange,
DatabaseRetrieveCallback<K> callback)
DatabaseRetrieveCallback.
getKey in class Index<K,I,V>keyRange - callback - public void openCursor(DatabaseCursorCallback<I,V> callback)
openCursor in class Index<K,I,V>callback -
public void openCursor(KeyRange<I> keyRange,
DatabaseCursorCallback<I,V> callback)
openCursor in class Index<K,I,V>keyRange - callback - public void openKeyCursor(DatabaseCursorCallback<I,K> callback)
openKeyCursor in class Index<K,I,V>callback -
public void openKeyCursor(KeyRange<I> keyRange,
DatabaseCursorCallback<I,K> callback)
openKeyCursor in class Index<K,I,V>keyRange - callback -
public abstract void openCursor(KeyRange<I> keyRange,
Cursor.CursorDirection direction,
DatabaseCursorCallback<I,V> callback)
openCursor in class Index<K,I,V>keyRange - direction - callback -
public abstract void openKeyCursor(KeyRange<I> keyRange,
Cursor.CursorDirection direction,
DatabaseCursorCallback<I,K> callback)
openKeyCursor in class Index<K,I,V>keyRange - direction - callback - public abstract KeyRangeFactory<I> getKeyRangeFactory()
getKeyRangeFactory in class Index<K,I,V>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||