Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/jdk/java/sql/modules/luckydogdriver/luckydogtennis/StubConnection.java
41161 views
1
/*
2
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation.
8
*
9
* This code is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
* version 2 for more details (a copy is included in the LICENSE file that
13
* accompanied this code).
14
*
15
* You should have received a copy of the GNU General Public License version
16
* 2 along with this work; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*/
23
package luckydogtennis;
24
25
import java.sql.Array;
26
import java.sql.Blob;
27
import java.sql.CallableStatement;
28
import java.sql.Clob;
29
import java.sql.Connection;
30
import java.sql.DatabaseMetaData;
31
import java.sql.NClob;
32
import java.sql.PreparedStatement;
33
import java.sql.SQLClientInfoException;
34
import java.sql.SQLException;
35
import java.sql.SQLWarning;
36
import java.sql.SQLXML;
37
import java.sql.Savepoint;
38
import java.sql.Statement;
39
import java.sql.Struct;
40
import java.util.Map;
41
import java.util.Properties;
42
import java.util.concurrent.Executor;
43
44
public class StubConnection implements Connection{
45
46
@Override
47
public Statement createStatement() throws SQLException {
48
throw new UnsupportedOperationException("Not supported yet.");
49
}
50
51
@Override
52
public PreparedStatement prepareStatement(String sql) throws SQLException {
53
throw new UnsupportedOperationException("Not supported yet.");
54
}
55
56
@Override
57
public CallableStatement prepareCall(String sql) throws SQLException {
58
throw new UnsupportedOperationException("Not supported yet.");
59
}
60
61
@Override
62
public String nativeSQL(String sql) throws SQLException {
63
throw new UnsupportedOperationException("Not supported yet.");
64
}
65
66
@Override
67
public void setAutoCommit(boolean autoCommit) throws SQLException {
68
throw new UnsupportedOperationException("Not supported yet.");
69
}
70
71
@Override
72
public boolean getAutoCommit() throws SQLException {
73
throw new UnsupportedOperationException("Not supported yet.");
74
}
75
76
@Override
77
public void commit() throws SQLException {
78
throw new UnsupportedOperationException("Not supported yet.");
79
}
80
81
@Override
82
public void rollback() throws SQLException {
83
throw new UnsupportedOperationException("Not supported yet.");
84
}
85
86
@Override
87
public void close() throws SQLException {
88
throw new UnsupportedOperationException("Not supported yet.");
89
}
90
91
@Override
92
public boolean isClosed() throws SQLException {
93
throw new UnsupportedOperationException("Not supported yet.");
94
}
95
96
@Override
97
public DatabaseMetaData getMetaData() throws SQLException {
98
throw new UnsupportedOperationException("Not supported yet.");
99
}
100
101
@Override
102
public void setReadOnly(boolean readOnly) throws SQLException {
103
throw new UnsupportedOperationException("Not supported yet.");
104
}
105
106
@Override
107
public boolean isReadOnly() throws SQLException {
108
throw new UnsupportedOperationException("Not supported yet.");
109
}
110
111
@Override
112
public void setCatalog(String catalog) throws SQLException {
113
throw new UnsupportedOperationException("Not supported yet.");
114
}
115
116
@Override
117
public String getCatalog() throws SQLException {
118
throw new UnsupportedOperationException("Not supported yet.");
119
}
120
121
@Override
122
public void setTransactionIsolation(int level) throws SQLException {
123
throw new UnsupportedOperationException("Not supported yet.");
124
}
125
126
@Override
127
public int getTransactionIsolation() throws SQLException {
128
throw new UnsupportedOperationException("Not supported yet.");
129
}
130
131
@Override
132
public SQLWarning getWarnings() throws SQLException {
133
throw new UnsupportedOperationException("Not supported yet.");
134
}
135
136
@Override
137
public void clearWarnings() throws SQLException {
138
throw new UnsupportedOperationException("Not supported yet.");
139
}
140
141
@Override
142
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException {
143
throw new UnsupportedOperationException("Not supported yet.");
144
}
145
146
@Override
147
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
148
throw new UnsupportedOperationException("Not supported yet.");
149
}
150
151
@Override
152
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException {
153
throw new UnsupportedOperationException("Not supported yet.");
154
}
155
156
@Override
157
public Map<String, Class<?>> getTypeMap() throws SQLException {
158
throw new UnsupportedOperationException("Not supported yet.");
159
}
160
161
@Override
162
public void setTypeMap(Map<String, Class<?>> map) throws SQLException {
163
throw new UnsupportedOperationException("Not supported yet.");
164
}
165
166
@Override
167
public void setHoldability(int holdability) throws SQLException {
168
throw new UnsupportedOperationException("Not supported yet.");
169
}
170
171
@Override
172
public int getHoldability() throws SQLException {
173
throw new UnsupportedOperationException("Not supported yet.");
174
}
175
176
@Override
177
public Savepoint setSavepoint() throws SQLException {
178
throw new UnsupportedOperationException("Not supported yet.");
179
}
180
181
@Override
182
public Savepoint setSavepoint(String name) throws SQLException {
183
throw new UnsupportedOperationException("Not supported yet.");
184
}
185
186
@Override
187
public void rollback(Savepoint savepoint) throws SQLException {
188
throw new UnsupportedOperationException("Not supported yet.");
189
}
190
191
@Override
192
public void releaseSavepoint(Savepoint savepoint) throws SQLException {
193
throw new UnsupportedOperationException("Not supported yet.");
194
}
195
196
@Override
197
public Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
198
throw new UnsupportedOperationException("Not supported yet.");
199
}
200
201
@Override
202
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
203
throw new UnsupportedOperationException("Not supported yet.");
204
}
205
206
@Override
207
public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException {
208
throw new UnsupportedOperationException("Not supported yet.");
209
}
210
211
@Override
212
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException {
213
throw new UnsupportedOperationException("Not supported yet.");
214
}
215
216
@Override
217
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException {
218
throw new UnsupportedOperationException("Not supported yet.");
219
}
220
221
@Override
222
public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException {
223
throw new UnsupportedOperationException("Not supported yet.");
224
}
225
226
@Override
227
public Clob createClob() throws SQLException {
228
throw new UnsupportedOperationException("Not supported yet.");
229
}
230
231
@Override
232
public Blob createBlob() throws SQLException {
233
throw new UnsupportedOperationException("Not supported yet.");
234
}
235
236
@Override
237
public NClob createNClob() throws SQLException {
238
throw new UnsupportedOperationException("Not supported yet.");
239
}
240
241
@Override
242
public SQLXML createSQLXML() throws SQLException {
243
throw new UnsupportedOperationException("Not supported yet.");
244
}
245
246
@Override
247
public boolean isValid(int timeout) throws SQLException {
248
throw new UnsupportedOperationException("Not supported yet.");
249
}
250
251
@Override
252
public void setClientInfo(String name, String value) throws SQLClientInfoException {
253
throw new UnsupportedOperationException("Not supported yet.");
254
}
255
256
@Override
257
public void setClientInfo(Properties properties) throws SQLClientInfoException {
258
throw new UnsupportedOperationException("Not supported yet.");
259
}
260
261
@Override
262
public String getClientInfo(String name) throws SQLException {
263
throw new UnsupportedOperationException("Not supported yet.");
264
}
265
266
@Override
267
public Properties getClientInfo() throws SQLException {
268
throw new UnsupportedOperationException("Not supported yet.");
269
}
270
271
@Override
272
public Array createArrayOf(String typeName, Object[] elements) throws SQLException {
273
throw new UnsupportedOperationException("Not supported yet.");
274
}
275
276
@Override
277
public Struct createStruct(String typeName, Object[] attributes) throws SQLException {
278
throw new UnsupportedOperationException("Not supported yet.");
279
}
280
281
@Override
282
public void setSchema(String schema) throws SQLException {
283
throw new UnsupportedOperationException("Not supported yet.");
284
}
285
286
@Override
287
public String getSchema() throws SQLException {
288
throw new UnsupportedOperationException("Not supported yet.");
289
}
290
291
@Override
292
public void abort(Executor executor) throws SQLException {
293
throw new UnsupportedOperationException("Not supported yet.");
294
}
295
296
@Override
297
public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
298
throw new UnsupportedOperationException("Not supported yet.");
299
}
300
301
@Override
302
public int getNetworkTimeout() throws SQLException {
303
throw new UnsupportedOperationException("Not supported yet.");
304
}
305
306
@Override
307
public <T> T unwrap(Class<T> iface) throws SQLException {
308
throw new UnsupportedOperationException("Not supported yet.");
309
}
310
311
@Override
312
public boolean isWrapperFor(Class<?> iface) throws SQLException {
313
throw new UnsupportedOperationException("Not supported yet.");
314
}
315
}
316
317