OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 class _DatabaseWrappingImplementation extends DOMWrapperBase implements Database
{ | 7 class _DatabaseWrappingImplementation extends DOMWrapperBase implements Database
{ |
8 _DatabaseWrappingImplementation() : super() {} | 8 _DatabaseWrappingImplementation() : super() {} |
9 | 9 |
10 static create__DatabaseWrappingImplementation() native { | 10 static create__DatabaseWrappingImplementation() native { |
11 return new _DatabaseWrappingImplementation(); | 11 return new _DatabaseWrappingImplementation(); |
12 } | 12 } |
13 | 13 |
14 String get version() { return _get_version(this); } | 14 String get version() { return _get_version(this); } |
15 static String _get_version(var _this) native; | 15 static String _get_version(var _this) native; |
16 | 16 |
17 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba
ck successCallback = null]) { | 17 void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallba
ck callback = null, SQLTransactionErrorCallback errorCallback = null, VoidCallba
ck successCallback = null]) { |
18 if (callback === null) { | 18 _changeVersion(this, oldVersion, newVersion, callback, errorCallback, succes
sCallback); |
19 if (errorCallback === null) { | 19 return; |
20 if (successCallback === null) { | |
21 _changeVersion(this, oldVersion, newVersion); | |
22 return; | |
23 } | |
24 } | |
25 } else { | |
26 if (errorCallback === null) { | |
27 if (successCallback === null) { | |
28 _changeVersion_2(this, oldVersion, newVersion, callback); | |
29 return; | |
30 } | |
31 } else { | |
32 if (successCallback === null) { | |
33 _changeVersion_3(this, oldVersion, newVersion, callback, errorCallback
); | |
34 return; | |
35 } else { | |
36 _changeVersion_4(this, oldVersion, newVersion, callback, errorCallback
, successCallback); | |
37 return; | |
38 } | |
39 } | |
40 } | |
41 throw "Incorrect number or type of arguments"; | |
42 } | 20 } |
43 static void _changeVersion(receiver, oldVersion, newVersion) native; | 21 static void _changeVersion(receiver, oldVersion, newVersion, callback, errorCa
llback, successCallback) native; |
44 static void _changeVersion_2(receiver, oldVersion, newVersion, callback) nativ
e; | |
45 static void _changeVersion_3(receiver, oldVersion, newVersion, callback, error
Callback) native; | |
46 static void _changeVersion_4(receiver, oldVersion, newVersion, callback, error
Callback, successCallback) native; | |
47 | 22 |
48 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback = null, VoidCallback successCallback = null]) { | 23 void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCall
back errorCallback = null, VoidCallback successCallback = null]) { |
49 if (errorCallback === null) { | 24 _readTransaction(this, callback, errorCallback, successCallback); |
50 if (successCallback === null) { | 25 return; |
51 _readTransaction(this, callback); | |
52 return; | |
53 } | |
54 } else { | |
55 if (successCallback === null) { | |
56 _readTransaction_2(this, callback, errorCallback); | |
57 return; | |
58 } else { | |
59 _readTransaction_3(this, callback, errorCallback, successCallback); | |
60 return; | |
61 } | |
62 } | |
63 throw "Incorrect number or type of arguments"; | |
64 } | 26 } |
65 static void _readTransaction(receiver, callback) native; | 27 static void _readTransaction(receiver, callback, errorCallback, successCallbac
k) native; |
66 static void _readTransaction_2(receiver, callback, errorCallback) native; | |
67 static void _readTransaction_3(receiver, callback, errorCallback, successCallb
ack) native; | |
68 | 28 |
69 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback
errorCallback = null, VoidCallback successCallback = null]) { | 29 void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback
errorCallback = null, VoidCallback successCallback = null]) { |
70 if (errorCallback === null) { | 30 _transaction(this, callback, errorCallback, successCallback); |
71 if (successCallback === null) { | 31 return; |
72 _transaction(this, callback); | |
73 return; | |
74 } | |
75 } else { | |
76 if (successCallback === null) { | |
77 _transaction_2(this, callback, errorCallback); | |
78 return; | |
79 } else { | |
80 _transaction_3(this, callback, errorCallback, successCallback); | |
81 return; | |
82 } | |
83 } | |
84 throw "Incorrect number or type of arguments"; | |
85 } | 32 } |
86 static void _transaction(receiver, callback) native; | 33 static void _transaction(receiver, callback, errorCallback, successCallback) n
ative; |
87 static void _transaction_2(receiver, callback, errorCallback) native; | |
88 static void _transaction_3(receiver, callback, errorCallback, successCallback)
native; | |
89 | 34 |
90 String get typeName() { return "Database"; } | 35 String get typeName() { return "Database"; } |
91 } | 36 } |
OLD | NEW |