| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
| 2 // for details. All rights reserved. Use of this source code is governed by a | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 class _IDBObjectStoreWrappingImplementation extends DOMWrapperBase implements ID
BObjectStore { | |
| 8 _IDBObjectStoreWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__IDBObjectStoreWrappingImplementation() native { | |
| 11 return new _IDBObjectStoreWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 List<String> get indexNames() { return _get_indexNames(this); } | |
| 15 static List<String> _get_indexNames(var _this) native; | |
| 16 | |
| 17 String get keyPath() { return _get_keyPath(this); } | |
| 18 static String _get_keyPath(var _this) native; | |
| 19 | |
| 20 String get name() { return _get_name(this); } | |
| 21 static String _get_name(var _this) native; | |
| 22 | |
| 23 IDBTransaction get transaction() { return _get_transaction(this); } | |
| 24 static IDBTransaction _get_transaction(var _this) native; | |
| 25 | |
| 26 IDBRequest add(Dynamic value, [IDBKey key = null]) { | |
| 27 if (key === null) { | |
| 28 return _add(this, value); | |
| 29 } else { | |
| 30 return _add_2(this, value, key); | |
| 31 } | |
| 32 } | |
| 33 static IDBRequest _add(receiver, value) native; | |
| 34 static IDBRequest _add_2(receiver, value, key) native; | |
| 35 | |
| 36 IDBRequest clear() { | |
| 37 return _clear(this); | |
| 38 } | |
| 39 static IDBRequest _clear(receiver) native; | |
| 40 | |
| 41 IDBRequest count([var key_OR_range = null]) { | |
| 42 if (key_OR_range === null) { | |
| 43 return _count(this); | |
| 44 } else { | |
| 45 if (key_OR_range is IDBKeyRange) { | |
| 46 return _count_2(this, key_OR_range); | |
| 47 } else { | |
| 48 if (key_OR_range is IDBKey) { | |
| 49 return _count_3(this, key_OR_range); | |
| 50 } | |
| 51 } | |
| 52 } | |
| 53 throw "Incorrect number or type of arguments"; | |
| 54 } | |
| 55 static IDBRequest _count(receiver) native; | |
| 56 static IDBRequest _count_2(receiver, key_OR_range) native; | |
| 57 static IDBRequest _count_3(receiver, key_OR_range) native; | |
| 58 | |
| 59 IDBIndex createIndex(String name, String keyPath) { | |
| 60 return _createIndex(this, name, keyPath); | |
| 61 } | |
| 62 static IDBIndex _createIndex(receiver, name, keyPath) native; | |
| 63 | |
| 64 IDBRequest delete(var key_OR_keyRange) { | |
| 65 if (key_OR_keyRange is IDBKeyRange) { | |
| 66 return _delete(this, key_OR_keyRange); | |
| 67 } else { | |
| 68 if (key_OR_keyRange is IDBKey) { | |
| 69 return _delete_2(this, key_OR_keyRange); | |
| 70 } | |
| 71 } | |
| 72 throw "Incorrect number or type of arguments"; | |
| 73 } | |
| 74 static IDBRequest _delete(receiver, key_OR_keyRange) native; | |
| 75 static IDBRequest _delete_2(receiver, key_OR_keyRange) native; | |
| 76 | |
| 77 void deleteIndex(String name) { | |
| 78 _deleteIndex(this, name); | |
| 79 return; | |
| 80 } | |
| 81 static void _deleteIndex(receiver, name) native; | |
| 82 | |
| 83 IDBRequest getObject(IDBKey key) { | |
| 84 return _getObject(this, key); | |
| 85 } | |
| 86 static IDBRequest _getObject(receiver, key) native; | |
| 87 | |
| 88 IDBIndex index(String name) { | |
| 89 return _index(this, name); | |
| 90 } | |
| 91 static IDBIndex _index(receiver, name) native; | |
| 92 | |
| 93 IDBRequest openCursor([IDBKeyRange range = null, int direction = null]) { | |
| 94 if (range === null) { | |
| 95 if (direction === null) { | |
| 96 return _openCursor(this); | |
| 97 } | |
| 98 } else { | |
| 99 if (direction === null) { | |
| 100 return _openCursor_2(this, range); | |
| 101 } else { | |
| 102 return _openCursor_3(this, range, direction); | |
| 103 } | |
| 104 } | |
| 105 throw "Incorrect number or type of arguments"; | |
| 106 } | |
| 107 static IDBRequest _openCursor(receiver) native; | |
| 108 static IDBRequest _openCursor_2(receiver, range) native; | |
| 109 static IDBRequest _openCursor_3(receiver, range, direction) native; | |
| 110 | |
| 111 IDBRequest put(Dynamic value, [IDBKey key = null]) { | |
| 112 if (key === null) { | |
| 113 return _put(this, value); | |
| 114 } else { | |
| 115 return _put_2(this, value, key); | |
| 116 } | |
| 117 } | |
| 118 static IDBRequest _put(receiver, value) native; | |
| 119 static IDBRequest _put_2(receiver, value, key) native; | |
| 120 | |
| 121 String get typeName() { return "IDBObjectStore"; } | |
| 122 } | |
| OLD | NEW |