Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/jdk/java/sql/testng/util/StubStatement.java
41152 views
1
/*
2
* Copyright (c) 2015, 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 util;
24
25
import java.sql.Connection;
26
import java.sql.ResultSet;
27
import java.sql.SQLException;
28
import java.sql.SQLWarning;
29
import java.sql.Statement;
30
import java.util.regex.Pattern;
31
import static java.util.stream.Collectors.joining;
32
33
public class StubStatement implements Statement {
34
35
@Override
36
public ResultSet executeQuery(String sql) throws SQLException {
37
throw new UnsupportedOperationException("Not supported yet.");
38
}
39
40
@Override
41
public int executeUpdate(String sql) throws SQLException {
42
throw new UnsupportedOperationException("Not supported yet.");
43
}
44
45
@Override
46
public void close() throws SQLException {
47
throw new UnsupportedOperationException("Not supported yet.");
48
}
49
50
@Override
51
public int getMaxFieldSize() throws SQLException {
52
throw new UnsupportedOperationException("Not supported yet.");
53
}
54
55
@Override
56
public void setMaxFieldSize(int max) throws SQLException {
57
throw new UnsupportedOperationException("Not supported yet.");
58
}
59
60
@Override
61
public int getMaxRows() throws SQLException {
62
throw new UnsupportedOperationException("Not supported yet.");
63
}
64
65
@Override
66
public void setMaxRows(int max) throws SQLException {
67
throw new UnsupportedOperationException("Not supported yet.");
68
}
69
70
@Override
71
public void setEscapeProcessing(boolean enable) throws SQLException {
72
throw new UnsupportedOperationException("Not supported yet.");
73
}
74
75
@Override
76
public int getQueryTimeout() throws SQLException {
77
throw new UnsupportedOperationException("Not supported yet.");
78
}
79
80
@Override
81
public void setQueryTimeout(int seconds) throws SQLException {
82
throw new UnsupportedOperationException("Not supported yet.");
83
}
84
85
@Override
86
public void cancel() throws SQLException {
87
throw new UnsupportedOperationException("Not supported yet.");
88
}
89
90
@Override
91
public SQLWarning getWarnings() throws SQLException {
92
throw new UnsupportedOperationException("Not supported yet.");
93
}
94
95
@Override
96
public void clearWarnings() throws SQLException {
97
throw new UnsupportedOperationException("Not supported yet.");
98
}
99
100
@Override
101
public void setCursorName(String name) throws SQLException {
102
throw new UnsupportedOperationException("Not supported yet.");
103
}
104
105
@Override
106
public boolean execute(String sql) throws SQLException {
107
throw new UnsupportedOperationException("Not supported yet.");
108
}
109
110
@Override
111
public ResultSet getResultSet() throws SQLException {
112
throw new UnsupportedOperationException("Not supported yet.");
113
}
114
115
@Override
116
public int getUpdateCount() throws SQLException {
117
throw new UnsupportedOperationException("Not supported yet.");
118
}
119
120
@Override
121
public boolean getMoreResults() throws SQLException {
122
throw new UnsupportedOperationException("Not supported yet.");
123
}
124
125
@Override
126
public void setFetchDirection(int direction) throws SQLException {
127
throw new UnsupportedOperationException("Not supported yet.");
128
}
129
130
@Override
131
public int getFetchDirection() throws SQLException {
132
throw new UnsupportedOperationException("Not supported yet.");
133
}
134
135
@Override
136
public void setFetchSize(int rows) throws SQLException {
137
throw new UnsupportedOperationException("Not supported yet.");
138
}
139
140
@Override
141
public int getFetchSize() throws SQLException {
142
throw new UnsupportedOperationException("Not supported yet.");
143
}
144
145
@Override
146
public int getResultSetConcurrency() throws SQLException {
147
throw new UnsupportedOperationException("Not supported yet.");
148
}
149
150
@Override
151
public int getResultSetType() throws SQLException {
152
throw new UnsupportedOperationException("Not supported yet.");
153
}
154
155
@Override
156
public void addBatch(String sql) throws SQLException {
157
throw new UnsupportedOperationException("Not supported yet.");
158
}
159
160
@Override
161
public void clearBatch() throws SQLException {
162
throw new UnsupportedOperationException("Not supported yet.");
163
}
164
165
@Override
166
public int[] executeBatch() throws SQLException {
167
throw new UnsupportedOperationException("Not supported yet.");
168
}
169
170
@Override
171
public Connection getConnection() throws SQLException {
172
throw new UnsupportedOperationException("Not supported yet.");
173
}
174
175
@Override
176
public boolean getMoreResults(int current) throws SQLException {
177
throw new UnsupportedOperationException("Not supported yet.");
178
}
179
180
@Override
181
public ResultSet getGeneratedKeys() throws SQLException {
182
throw new UnsupportedOperationException("Not supported yet.");
183
}
184
185
@Override
186
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException {
187
throw new UnsupportedOperationException("Not supported yet.");
188
}
189
190
@Override
191
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {
192
throw new UnsupportedOperationException("Not supported yet.");
193
}
194
195
@Override
196
public int executeUpdate(String sql, String[] columnNames) throws SQLException {
197
throw new UnsupportedOperationException("Not supported yet.");
198
}
199
200
@Override
201
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {
202
throw new UnsupportedOperationException("Not supported yet.");
203
}
204
205
@Override
206
public boolean execute(String sql, int[] columnIndexes) throws SQLException {
207
throw new UnsupportedOperationException("Not supported yet.");
208
}
209
210
@Override
211
public boolean execute(String sql, String[] columnNames) throws SQLException {
212
throw new UnsupportedOperationException("Not supported yet.");
213
}
214
215
@Override
216
public int getResultSetHoldability() throws SQLException {
217
throw new UnsupportedOperationException("Not supported yet.");
218
}
219
220
@Override
221
public boolean isClosed() throws SQLException {
222
throw new UnsupportedOperationException("Not supported yet.");
223
}
224
225
@Override
226
public void setPoolable(boolean poolable) throws SQLException {
227
throw new UnsupportedOperationException("Not supported yet.");
228
}
229
230
@Override
231
public boolean isPoolable() throws SQLException {
232
throw new UnsupportedOperationException("Not supported yet.");
233
}
234
235
@Override
236
public void closeOnCompletion() throws SQLException {
237
throw new UnsupportedOperationException("Not supported yet.");
238
}
239
240
@Override
241
public boolean isCloseOnCompletion() throws SQLException {
242
throw new UnsupportedOperationException("Not supported yet.");
243
}
244
245
@Override
246
public <T> T unwrap(Class<T> iface) throws SQLException {
247
throw new UnsupportedOperationException("Not supported yet.");
248
}
249
250
@Override
251
public boolean isWrapperFor(Class<?> iface) throws SQLException {
252
throw new UnsupportedOperationException("Not supported yet.");
253
}
254
255
256
257
}
258
259