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.core.DOMError; 010import gwt.material.design.jscore.client.api.core.EventTarget; 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 IDBTransaction extends EventTarget{ 020 021 @JsProperty 022 public native IDBDatabase getBb(); 023 024 @JsProperty 025 public native DOMError getError(); 026 027 @JsProperty 028 public native IDBTransactionMode getMode(); 029 030 @JsProperty 031 public native void setMode(IDBTransactionMode mode); 032 033 @JsProperty 034 public native void setOnabort(Function fn); 035 036 @JsProperty 037 public native void setOncomplete(Function fn); 038 039 @JsProperty 040 public native String[] getObjectStoreNames(); 041 042 @JsProperty 043 public native void setOnerror(Function fn); 044 045 public native void abort(); 046 047 public native IDBObjectStore objectStore(String name); 048}