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.JsObject;
009import jsinterop.annotations.JsProperty;
010import jsinterop.annotations.JsType;
011
012/**
013 *
014 * @author Cristian Rinaldi <crinaldi@santafe.gov.ar>
015 */
016@JsType(isNative = true)
017public class IDBObjectStore {
018    
019    public native Object createIndex(String name, String path, JsObject options);
020    
021    public native IDBRequest add(JsObject obj, String id);
022    
023    public native IDBRequest put(JsObject obj, String id);
024    
025    public native IDBRequest get(String id);
026    
027    @JsProperty
028    public native String getKeyPath();
029    
030}