org.cruxframework.crux.core.client.db
Class IDXAbstractObjectStore<K,V>

java.lang.Object
  extended by org.cruxframework.crux.core.client.db.DBObject
      extended by org.cruxframework.crux.core.client.db.AbstractObjectStore<K,V>
          extended by org.cruxframework.crux.core.client.db.IDXAbstractObjectStore<K,V>
All Implemented Interfaces:
ObjectStore<K,V>

public abstract class IDXAbstractObjectStore<K,V>
extends AbstractObjectStore<K,V>

CRUX INTERNAL CLASS. DO NOT USE IT DIRECTLY. Indexed DB implementation for ObjectStore Interface. Use the interface ObjectStore instead.

Author:
Thiago da Rosa de Bustamante

Field Summary
protected  IDXAbstractDatabase db
           
protected  IDBObjectStore idbObjectStore
           
 
Fields inherited from class org.cruxframework.crux.core.client.db.DBObject
logger
 
Constructor Summary
protected IDXAbstractObjectStore(IDXAbstractDatabase db, IDBObjectStore idbObjectStore)
           
 
Method Summary
 void clear(DatabaseCallback callback)
          Clear this object store
 void count(DatabaseCountCallback callback)
          Return the number of items stored into this object store.
 void count(KeyRange<K> range, DatabaseCountCallback callback)
          Return the number of items stored into this object store in the given range.
 String[] getIndexNames()
          Return the names of the indexes associated with this object store.
 boolean isAutoIncrement()
          Return true if this object store auto increments its keys.
 
Methods inherited from class org.cruxframework.crux.core.client.db.AbstractObjectStore
add, delete, delete, put
 
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
 
Methods inherited from interface org.cruxframework.crux.core.client.db.ObjectStore
add, delete, delete, get, getIndex, getKeyRangeFactory, getObjectStoreName, openCursor, openCursor, openCursor, put
 

Field Detail

idbObjectStore

protected final IDBObjectStore idbObjectStore

db

protected final IDXAbstractDatabase db
Constructor Detail

IDXAbstractObjectStore

protected IDXAbstractObjectStore(IDXAbstractDatabase db,
                                 IDBObjectStore idbObjectStore)
Method Detail

getIndexNames

public String[] getIndexNames()
Description copied from interface: ObjectStore
Return the names of the indexes associated with this object store.

Returns:

isAutoIncrement

public boolean isAutoIncrement()
Description copied from interface: ObjectStore
Return true if this object store auto increments its keys.

Returns:

clear

public void clear(DatabaseCallback callback)
Description copied from interface: ObjectStore
Clear this object store


count

public void count(DatabaseCountCallback callback)
Description copied from interface: ObjectStore
Return the number of items stored into this object store.


count

public void count(KeyRange<K> range,
                  DatabaseCountCallback callback)
Description copied from interface: ObjectStore
Return the number of items stored into this object store in the given range.



Copyright © 2014. All rights reserved.