Interface IDBDatabase
-
- All Superinterfaces:
org.teavm.jso.dom.events.EventTarget
,org.teavm.jso.JSObject
public interface IDBDatabase extends org.teavm.jso.dom.events.EventTarget
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TRANSACTION_READONLY
static java.lang.String
TRANSACTION_READWRITE
static java.lang.String
TRANSACTION_VERSIONCHANGE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
IDBObjectStore
createObjectStore(java.lang.String name)
IDBObjectStore
createObjectStore(java.lang.String name, IDBObjectStoreParameters optionalParameters)
void
deleteObjectStore(java.lang.String name)
java.lang.String
getName()
java.lang.String[]
getObjectStoreNames()
int
getVersion()
void
setOnAbort(EventHandler handler)
void
setOnError(EventHandler handler)
void
setOnVersionChange(EventHandler handler)
IDBTransaction
transaction(java.lang.String storeName)
IDBTransaction
transaction(java.lang.String[] storeNames)
IDBTransaction
transaction(java.lang.String[] storeNames, java.lang.String transactionMode)
IDBTransaction
transaction(java.lang.String storeName, java.lang.String transactionMode)
-
-
-
Field Detail
-
TRANSACTION_READONLY
static final java.lang.String TRANSACTION_READONLY
- See Also:
- Constant Field Values
-
TRANSACTION_READWRITE
static final java.lang.String TRANSACTION_READWRITE
- See Also:
- Constant Field Values
-
TRANSACTION_VERSIONCHANGE
static final java.lang.String TRANSACTION_VERSIONCHANGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
java.lang.String getName()
-
getVersion
int getVersion()
-
getObjectStoreNames
java.lang.String[] getObjectStoreNames()
-
createObjectStore
IDBObjectStore createObjectStore(java.lang.String name, IDBObjectStoreParameters optionalParameters)
-
createObjectStore
IDBObjectStore createObjectStore(java.lang.String name)
-
deleteObjectStore
void deleteObjectStore(java.lang.String name)
-
transaction
IDBTransaction transaction(java.lang.String storeName, java.lang.String transactionMode)
-
transaction
IDBTransaction transaction(java.lang.String storeName)
-
transaction
IDBTransaction transaction(java.lang.String[] storeNames, java.lang.String transactionMode)
-
transaction
IDBTransaction transaction(java.lang.String[] storeNames)
-
close
void close()
-
setOnAbort
void setOnAbort(EventHandler handler)
-
setOnError
void setOnError(EventHandler handler)
-
setOnVersionChange
void setOnVersionChange(EventHandler handler)
-
-