public abstract class IDXAbstractDatabase extends AbstractDatabase
Database to define your databases.| Modifier and Type | Field and Description |
|---|---|
protected IDBDatabase |
db |
errorHandler, logger, messages, name, version| Constructor and Description |
|---|
IDXAbstractDatabase() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the current database.
|
protected Transaction |
createTransaction(String[] storeNames,
Transaction.Mode mode) |
void |
delete(DatabaseCallback callback)
Remove the current database from client browser.
|
protected void |
doOpen(DatabaseCallback callback) |
protected abstract <K,V> ObjectStore<K,V> |
getObjectStore(String storeName,
IDBObjectStore idbObjectStore) |
boolean |
isOpen()
Return true if the current database is open.
|
boolean |
isSupported()
Return true if Crux Database is supported by current browser.
|
protected abstract void |
updateDatabaseStructure(IDBOpenDBRequest openDBRequest) |
add, add, delete, delete, get, getName, getTransaction, getTransaction, getVersion, open, put, put, setDefaultErrorHandler, setName, setVersion, useIndexedDB, useWebSQLprotected IDBDatabase db
public void close()
Databasepublic void delete(DatabaseCallback callback)
Databasecallback - called when operation is completedpublic boolean isOpen()
Databasepublic boolean isSupported()
Databaseprotected Transaction createTransaction(String[] storeNames, Transaction.Mode mode)
createTransaction in class AbstractDatabaseprotected void doOpen(DatabaseCallback callback)
doOpen in class AbstractDatabaseprotected abstract void updateDatabaseStructure(IDBOpenDBRequest openDBRequest)
protected abstract <K,V> ObjectStore<K,V> getObjectStore(String storeName, IDBObjectStore idbObjectStore)
Copyright © 2015. All rights reserved.