001/* 002 * To change this license header, choose License Headers in Project Properties. 003 * To change this template file, choose Tools | Templates 004 * and open the template in the editor. 005 */ 006package gwt.material.design.jscore.client.api.db; 007 008import gwt.material.design.jscore.client.api.Function; 009import gwt.material.design.jscore.client.api.JsObject; 010import gwt.material.design.jscore.client.api.core.DOMError; 011import jsinterop.annotations.JsProperty; 012import jsinterop.annotations.JsType; 013 014/** 015 * 016 * @author Cristian Rinaldi <crinaldi@santafe.gov.ar> 017 */ 018@JsType(isNative = true) 019public class IDBRequest<T> { 020 021 @JsProperty 022 public native void setOnsuccess(Function fn); 023 024 @JsProperty 025 public native Function getOnsuccess(); 026 027 @JsProperty 028 public native void setSource(JsObject object); 029 030 @JsProperty 031 public native JsObject getSource(); 032 033 @JsProperty 034 public native DOMError getError(); 035 036 @JsProperty 037 public native void setError(DOMError dom); 038 039 @JsProperty 040 public native void setOnerror(Function fn); 041 042 @JsProperty 043 public native Function getOnerror(); 044 045 @JsProperty 046 public native String getReadyState(); 047 048 @JsProperty 049 public native T getResult(); 050 051 @JsProperty 052 public native IDBTransaction getTransaction(); 053 054}