public interface IDBRequest extends EventTarget
The IDBRequest
interface of the IndexedDB API provides access to results of asynchronous requests to databases and database objects using event handler attributes. Each reading and writing operation on a database is done using a request.
The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest
instance.
Inherits from: EventTarget
Modifier and Type | Method and Description |
---|---|
EventRemover |
addEventListener(String type,
EventListener listener)
Register an event handler of a specific event type on the
EventTarget . |
EventRemover |
addEventListener(String type,
EventListener listener,
boolean useCapture)
Register an event handler of a specific event type on the
EventTarget . |
boolean |
dispatchEvent(Event evt)
Dispatch an event to this
EventTarget . |
DOMError |
getError() |
int |
getErrorCode() |
EventListener |
getOnerror() |
EventListener |
getOnsuccess() |
String |
getReadyState() |
Object |
getResult() |
Object |
getSource() |
IDBTransaction |
getTransaction() |
String |
getWebkitErrorMessage() |
void |
removeEventListener(String type,
EventListener listener)
Removes an event listener from the
EventTarget . |
void |
removeEventListener(String type,
EventListener listener,
boolean useCapture)
Removes an event listener from the
EventTarget . |
void |
setOnerror(EventListener arg) |
void |
setOnsuccess(EventListener arg) |
DOMError getError()
int getErrorCode()
EventListener getOnerror()
void setOnerror(EventListener arg)
EventListener getOnsuccess()
void setOnsuccess(EventListener arg)
String getReadyState()
Object getResult()
Object getSource()
IDBTransaction getTransaction()
String getWebkitErrorMessage()
EventRemover addEventListener(String type, EventListener listener)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
EventRemover addEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.addEventListener
in interface EventTarget
boolean dispatchEvent(Event evt)
EventTarget
EventTarget
.dispatchEvent
in interface EventTarget
void removeEventListener(String type, EventListener listener)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
void removeEventListener(String type, EventListener listener, boolean useCapture)
EventTarget
EventTarget
.removeEventListener
in interface EventTarget
Copyright © 2016. All rights reserved.