@JsType(isNative=true) public class IDBDatabase extends JsObject
| Constructor and Description |
|---|
IDBDatabase() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
IDBObjectStore |
createObjectStore(String objStore,
Object parametes) |
void |
deleteObjectStore(String objStore) |
String |
getName() |
String[] |
getObjectStoreNames() |
Long |
getVersion() |
void |
setOnabort(Function f) |
void |
setOnerror(Function f) |
void |
setOnversionchange(Function f) |
IDBTransaction |
transaction(String[] objStores,
String mode) |
getOwnPropertyNames, hasOwnProperty, observepublic IDBDatabase()
@JsProperty public Long getVersion()
@JsProperty public String[] getObjectStoreNames()
@JsProperty public void setOnabort(Function f)
@JsProperty public void setOnerror(Function f)
@JsProperty public void setOnversionchange(Function f)
public void close()
public IDBObjectStore createObjectStore(String objStore, Object parametes)
public void deleteObjectStore(String objStore)
public IDBTransaction transaction(String[] objStores, String mode)
Copyright © 2017. All rights reserved.