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 _IDBIndexWrappingImplementation extends DOMWrapperBase implements IDBIndex
{ | |
8 _IDBIndexWrappingImplementation() : super() {} | |
9 | |
10 static create__IDBIndexWrappingImplementation() native { | |
11 return new _IDBIndexWrappingImplementation(); | |
12 } | |
13 | |
14 String get keyPath() { return _get_keyPath(this); } | |
15 static String _get_keyPath(var _this) native; | |
16 | |
17 bool get multiEntry() { return _get_multiEntry(this); } | |
18 static bool _get_multiEntry(var _this) native; | |
19 | |
20 String get name() { return _get_name(this); } | |
21 static String _get_name(var _this) native; | |
22 | |
23 IDBObjectStore get objectStore() { return _get_objectStore(this); } | |
24 static IDBObjectStore _get_objectStore(var _this) native; | |
25 | |
26 bool get unique() { return _get_unique(this); } | |
27 static bool _get_unique(var _this) native; | |
28 | |
29 IDBRequest count([var key_OR_range = null]) { | |
30 if (key_OR_range === null) { | |
31 return _count(this); | |
32 } else { | |
33 if (key_OR_range is IDBKeyRange) { | |
34 return _count_2(this, key_OR_range); | |
35 } else { | |
36 if (key_OR_range is IDBKey) { | |
37 return _count_3(this, key_OR_range); | |
38 } | |
39 } | |
40 } | |
41 throw "Incorrect number or type of arguments"; | |
42 } | |
43 static IDBRequest _count(receiver) native; | |
44 static IDBRequest _count_2(receiver, key_OR_range) native; | |
45 static IDBRequest _count_3(receiver, key_OR_range) native; | |
46 | |
47 IDBRequest getObject(IDBKey key) { | |
48 return _getObject(this, key); | |
49 } | |
50 static IDBRequest _getObject(receiver, key) native; | |
51 | |
52 IDBRequest getKey(IDBKey key) { | |
53 return _getKey(this, key); | |
54 } | |
55 static IDBRequest _getKey(receiver, key) native; | |
56 | |
57 IDBRequest openCursor([IDBKeyRange range = null, int direction = null]) { | |
58 if (range === null) { | |
59 if (direction === null) { | |
60 return _openCursor(this); | |
61 } | |
62 } else { | |
63 if (direction === null) { | |
64 return _openCursor_2(this, range); | |
65 } else { | |
66 return _openCursor_3(this, range, direction); | |
67 } | |
68 } | |
69 throw "Incorrect number or type of arguments"; | |
70 } | |
71 static IDBRequest _openCursor(receiver) native; | |
72 static IDBRequest _openCursor_2(receiver, range) native; | |
73 static IDBRequest _openCursor_3(receiver, range, direction) native; | |
74 | |
75 IDBRequest openKeyCursor([IDBKeyRange range = null, int direction = null]) { | |
76 if (range === null) { | |
77 if (direction === null) { | |
78 return _openKeyCursor(this); | |
79 } | |
80 } else { | |
81 if (direction === null) { | |
82 return _openKeyCursor_2(this, range); | |
83 } else { | |
84 return _openKeyCursor_3(this, range, direction); | |
85 } | |
86 } | |
87 throw "Incorrect number or type of arguments"; | |
88 } | |
89 static IDBRequest _openKeyCursor(receiver) native; | |
90 static IDBRequest _openKeyCursor_2(receiver, range) native; | |
91 static IDBRequest _openKeyCursor_3(receiver, range, direction) native; | |
92 | |
93 String get typeName() { return "IDBIndex"; } | |
94 } | |
OLD | NEW |