org.cruxframework.crux.core.client.db.indexeddb
Class IDBDatabase

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by org.cruxframework.crux.core.client.db.indexeddb.IDBClass
          extended by org.cruxframework.crux.core.client.db.indexeddb.IDBDatabase

public class IDBDatabase
extends IDBClass

Author:
Thiago da Rosa de Bustamante

Constructor Summary
protected IDBDatabase()
           
 
Method Summary
 void close()
           
 IDBObjectStore createObjectStore(String name)
           
 IDBObjectStore createObjectStore(String name, IDBObjectStoreParameters params)
           
 void deleteObjectStore(String name)
           
 String getName()
           
 String[] getObjectStoreNames()
           
 IDBTransaction getTransaction(String... storeNames)
           
 IDBTransaction getTransaction(String[] storeNames, IDBTransaction.IDBTransactionMode mode)
           
 int getVersion()
           
 FastList<String> listObjectStoreNames()
           
 void onAbort(IDBAbortEvent.Handler handler)
           
 void onVersionChange(IDBVersionChangeEvent.Handler handler)
           
 
Methods inherited from class org.cruxframework.crux.core.client.db.indexeddb.IDBClass
onError
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IDBDatabase

protected IDBDatabase()
Method Detail

getName

public final String getName()

getVersion

public final int getVersion()

getObjectStoreNames

public final String[] getObjectStoreNames()

listObjectStoreNames

public final FastList<String> listObjectStoreNames()

close

public final void close()

getTransaction

public final IDBTransaction getTransaction(String... storeNames)

getTransaction

public final IDBTransaction getTransaction(String[] storeNames,
                                           IDBTransaction.IDBTransactionMode mode)

createObjectStore

public final IDBObjectStore createObjectStore(String name)

createObjectStore

public final IDBObjectStore createObjectStore(String name,
                                              IDBObjectStoreParameters params)

deleteObjectStore

public final void deleteObjectStore(String name)

onAbort

public final void onAbort(IDBAbortEvent.Handler handler)

onVersionChange

public final void onVersionChange(IDBVersionChangeEvent.Handler handler)


Copyright © 2014. All rights reserved.