View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *     http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  
18  package org.apache.shardingsphere.sqlfederation.resultset;
19  
20  import java.io.InputStream;
21  import java.io.Reader;
22  import java.math.BigDecimal;
23  import java.sql.Array;
24  import java.sql.Blob;
25  import java.sql.Clob;
26  import java.sql.Date;
27  import java.sql.NClob;
28  import java.sql.Ref;
29  import java.sql.ResultSet;
30  import java.sql.RowId;
31  import java.sql.SQLException;
32  import java.sql.SQLFeatureNotSupportedException;
33  import java.sql.SQLXML;
34  import java.sql.Time;
35  import java.sql.Timestamp;
36  
37  /**
38   * Unsupported {@code ResultSet} update methods.
39   */
40  public abstract class AbstractUnsupportedUpdateOperationResultSet extends WrapperAdapter implements ResultSet {
41      
42      @Override
43      public final void updateNull(final int columnIndex) throws SQLException {
44          throw new SQLFeatureNotSupportedException("updateNull");
45      }
46      
47      @Override
48      public final void updateNull(final String columnLabel) throws SQLException {
49          throw new SQLFeatureNotSupportedException("updateNull");
50      }
51      
52      @Override
53      public final void updateBoolean(final int columnIndex, final boolean x) throws SQLException {
54          throw new SQLFeatureNotSupportedException("updateBoolean");
55      }
56      
57      @Override
58      public final void updateBoolean(final String columnLabel, final boolean x) throws SQLException {
59          throw new SQLFeatureNotSupportedException("updateBoolean");
60      }
61      
62      @Override
63      public final void updateByte(final int columnIndex, final byte x) throws SQLException {
64          throw new SQLFeatureNotSupportedException("updateByte");
65      }
66      
67      @Override
68      public final void updateByte(final String columnLabel, final byte x) throws SQLException {
69          throw new SQLFeatureNotSupportedException("updateByte");
70      }
71      
72      @Override
73      public final void updateShort(final int columnIndex, final short x) throws SQLException {
74          throw new SQLFeatureNotSupportedException("updateShort");
75      }
76      
77      @Override
78      public final void updateShort(final String columnLabel, final short x) throws SQLException {
79          throw new SQLFeatureNotSupportedException("updateShort");
80      }
81      
82      @Override
83      public final void updateInt(final int columnIndex, final int x) throws SQLException {
84          throw new SQLFeatureNotSupportedException("updateInt");
85      }
86      
87      @Override
88      public final void updateInt(final String columnLabel, final int x) throws SQLException {
89          throw new SQLFeatureNotSupportedException("updateInt");
90      }
91      
92      @Override
93      public final void updateLong(final int columnIndex, final long x) throws SQLException {
94          throw new SQLFeatureNotSupportedException("updateLong");
95      }
96      
97      @Override
98      public final void updateLong(final String columnLabel, final long x) throws SQLException {
99          throw new SQLFeatureNotSupportedException("updateLong");
100     }
101     
102     @Override
103     public final void updateFloat(final int columnIndex, final float x) throws SQLException {
104         throw new SQLFeatureNotSupportedException("updateFloat");
105     }
106     
107     @Override
108     public final void updateFloat(final String columnLabel, final float x) throws SQLException {
109         throw new SQLFeatureNotSupportedException("updateFloat");
110     }
111     
112     @Override
113     public final void updateDouble(final int columnIndex, final double x) throws SQLException {
114         throw new SQLFeatureNotSupportedException("updateDouble");
115     }
116     
117     @Override
118     public final void updateDouble(final String columnLabel, final double x) throws SQLException {
119         throw new SQLFeatureNotSupportedException("updateDouble");
120     }
121     
122     @Override
123     public final void updateBigDecimal(final int columnIndex, final BigDecimal x) throws SQLException {
124         throw new SQLFeatureNotSupportedException("updateBigDecimal");
125     }
126     
127     @Override
128     public final void updateBigDecimal(final String columnLabel, final BigDecimal x) throws SQLException {
129         throw new SQLFeatureNotSupportedException("updateBigDecimal");
130     }
131     
132     @Override
133     public final void updateString(final int columnIndex, final String x) throws SQLException {
134         throw new SQLFeatureNotSupportedException("updateString");
135     }
136     
137     @Override
138     public final void updateString(final String columnLabel, final String x) throws SQLException {
139         throw new SQLFeatureNotSupportedException("updateString");
140     }
141     
142     @Override
143     public final void updateNString(final int columnIndex, final String nString) throws SQLException {
144         throw new SQLFeatureNotSupportedException("updateNString");
145     }
146     
147     @Override
148     public final void updateNString(final String columnLabel, final String nString) throws SQLException {
149         throw new SQLFeatureNotSupportedException("updateNString");
150     }
151     
152     @Override
153     public final void updateBytes(final int columnIndex, final byte[] x) throws SQLException {
154         throw new SQLFeatureNotSupportedException("updateBytes");
155     }
156     
157     @Override
158     public final void updateBytes(final String columnLabel, final byte[] x) throws SQLException {
159         throw new SQLFeatureNotSupportedException("updateBytes");
160     }
161     
162     @Override
163     public final void updateDate(final int columnIndex, final Date x) throws SQLException {
164         throw new SQLFeatureNotSupportedException("updateDate");
165     }
166     
167     @Override
168     public final void updateDate(final String columnLabel, final Date x) throws SQLException {
169         throw new SQLFeatureNotSupportedException("updateDate");
170     }
171     
172     @Override
173     public final void updateTime(final int columnIndex, final Time x) throws SQLException {
174         throw new SQLFeatureNotSupportedException("updateTime");
175     }
176     
177     @Override
178     public final void updateTime(final String columnLabel, final Time x) throws SQLException {
179         throw new SQLFeatureNotSupportedException("updateTime");
180     }
181     
182     @Override
183     public final void updateTimestamp(final int columnIndex, final Timestamp x) throws SQLException {
184         throw new SQLFeatureNotSupportedException("updateTimestamp");
185     }
186     
187     @Override
188     public final void updateTimestamp(final String columnLabel, final Timestamp x) throws SQLException {
189         throw new SQLFeatureNotSupportedException("updateTimestamp");
190     }
191     
192     @Override
193     public final void updateAsciiStream(final int columnIndex, final InputStream inputStream) throws SQLException {
194         throw new SQLFeatureNotSupportedException("updateAsciiStream");
195     }
196     
197     @Override
198     public final void updateAsciiStream(final String columnLabel, final InputStream inputStream) throws SQLException {
199         throw new SQLFeatureNotSupportedException("updateAsciiStream");
200     }
201     
202     @Override
203     public final void updateAsciiStream(final int columnIndex, final InputStream x, final int length) throws SQLException {
204         throw new SQLFeatureNotSupportedException("updateAsciiStream");
205     }
206     
207     @Override
208     public final void updateAsciiStream(final String columnLabel, final InputStream x, final int length) throws SQLException {
209         throw new SQLFeatureNotSupportedException("updateAsciiStream");
210     }
211     
212     @Override
213     public final void updateAsciiStream(final int columnIndex, final InputStream inputStream, final long length) throws SQLException {
214         throw new SQLFeatureNotSupportedException("updateAsciiStream");
215     }
216     
217     @Override
218     public final void updateAsciiStream(final String columnLabel, final InputStream inputStream, final long length) throws SQLException {
219         throw new SQLFeatureNotSupportedException("updateAsciiStream");
220     }
221     
222     @Override
223     public final void updateBinaryStream(final int columnIndex, final InputStream x) throws SQLException {
224         throw new SQLFeatureNotSupportedException("updateBinaryStream");
225     }
226     
227     @Override
228     public final void updateBinaryStream(final String columnLabel, final InputStream x) throws SQLException {
229         throw new SQLFeatureNotSupportedException("updateBinaryStream");
230     }
231     
232     @Override
233     public final void updateBinaryStream(final int columnIndex, final InputStream x, final int length) throws SQLException {
234         throw new SQLFeatureNotSupportedException("updateBinaryStream");
235     }
236     
237     @Override
238     public final void updateBinaryStream(final String columnLabel, final InputStream x, final int length) throws SQLException {
239         throw new SQLFeatureNotSupportedException("updateBinaryStream");
240     }
241     
242     @Override
243     public final void updateBinaryStream(final int columnIndex, final InputStream x, final long length) throws SQLException {
244         throw new SQLFeatureNotSupportedException("updateBinaryStream");
245     }
246     
247     @Override
248     public final void updateBinaryStream(final String columnLabel, final InputStream x, final long length) throws SQLException {
249         throw new SQLFeatureNotSupportedException("updateBinaryStream");
250     }
251     
252     @Override
253     public final void updateCharacterStream(final int columnIndex, final Reader x) throws SQLException {
254         throw new SQLFeatureNotSupportedException("updateCharacterStream");
255     }
256     
257     @Override
258     public final void updateCharacterStream(final String columnLabel, final Reader x) throws SQLException {
259         throw new SQLFeatureNotSupportedException("updateCharacterStream");
260     }
261     
262     @Override
263     public final void updateCharacterStream(final int columnIndex, final Reader x, final int length) throws SQLException {
264         throw new SQLFeatureNotSupportedException("updateCharacterStream");
265     }
266     
267     @Override
268     public final void updateCharacterStream(final String columnLabel, final Reader reader, final int length) throws SQLException {
269         throw new SQLFeatureNotSupportedException("updateCharacterStream");
270     }
271     
272     @Override
273     public final void updateCharacterStream(final int columnIndex, final Reader x, final long length) throws SQLException {
274         throw new SQLFeatureNotSupportedException("updateCharacterStream");
275     }
276     
277     @Override
278     public final void updateCharacterStream(final String columnLabel, final Reader reader, final long length) throws SQLException {
279         throw new SQLFeatureNotSupportedException("updateCharacterStream");
280     }
281     
282     @Override
283     public final void updateNCharacterStream(final int columnIndex, final Reader x) throws SQLException {
284         throw new SQLFeatureNotSupportedException("updateNCharacterStream");
285     }
286     
287     @Override
288     public final void updateNCharacterStream(final String columnLabel, final Reader x) throws SQLException {
289         throw new SQLFeatureNotSupportedException("updateNCharacterStream");
290     }
291     
292     @Override
293     public final void updateNCharacterStream(final int columnIndex, final Reader x, final long length) throws SQLException {
294         throw new SQLFeatureNotSupportedException("updateNCharacterStream");
295     }
296     
297     @Override
298     public final void updateNCharacterStream(final String columnLabel, final Reader x, final long length) throws SQLException {
299         throw new SQLFeatureNotSupportedException("updateNCharacterStream");
300     }
301     
302     @Override
303     public final void updateObject(final int columnIndex, final Object x) throws SQLException {
304         throw new SQLFeatureNotSupportedException("updateObject");
305     }
306     
307     @Override
308     public final void updateObject(final String columnLabel, final Object x) throws SQLException {
309         throw new SQLFeatureNotSupportedException("updateObject");
310     }
311     
312     @Override
313     public final void updateObject(final int columnIndex, final Object x, final int scaleOrLength) throws SQLException {
314         throw new SQLFeatureNotSupportedException("updateObject");
315     }
316     
317     @Override
318     public final void updateObject(final String columnLabel, final Object x, final int scaleOrLength) throws SQLException {
319         throw new SQLFeatureNotSupportedException("updateObject");
320     }
321     
322     @Override
323     public final void updateRef(final int columnIndex, final Ref x) throws SQLException {
324         throw new SQLFeatureNotSupportedException("updateRef");
325     }
326     
327     @Override
328     public final void updateRef(final String columnLabel, final Ref x) throws SQLException {
329         throw new SQLFeatureNotSupportedException("updateRef");
330     }
331     
332     @Override
333     public final void updateBlob(final int columnIndex, final Blob x) throws SQLException {
334         throw new SQLFeatureNotSupportedException("updateBlob");
335     }
336     
337     @Override
338     public final void updateBlob(final String columnLabel, final Blob x) throws SQLException {
339         throw new SQLFeatureNotSupportedException("updateBlob");
340     }
341     
342     @Override
343     public final void updateBlob(final int columnIndex, final InputStream inputStream) throws SQLException {
344         throw new SQLFeatureNotSupportedException("updateBlob");
345     }
346     
347     @Override
348     public final void updateBlob(final String columnLabel, final InputStream inputStream) throws SQLException {
349         throw new SQLFeatureNotSupportedException("updateBlob");
350     }
351     
352     @Override
353     public final void updateBlob(final int columnIndex, final InputStream inputStream, final long length) throws SQLException {
354         throw new SQLFeatureNotSupportedException("updateBlob");
355     }
356     
357     @Override
358     public final void updateBlob(final String columnLabel, final InputStream inputStream, final long length) throws SQLException {
359         throw new SQLFeatureNotSupportedException("updateBlob");
360     }
361     
362     @Override
363     public final void updateClob(final int columnIndex, final Clob x) throws SQLException {
364         throw new SQLFeatureNotSupportedException("updateClob");
365     }
366     
367     @Override
368     public final void updateClob(final String columnLabel, final Clob x) throws SQLException {
369         throw new SQLFeatureNotSupportedException("updateClob");
370     }
371     
372     @Override
373     public final void updateClob(final int columnIndex, final Reader reader) throws SQLException {
374         throw new SQLFeatureNotSupportedException("updateClob");
375     }
376     
377     @Override
378     public final void updateClob(final String columnLabel, final Reader reader) throws SQLException {
379         throw new SQLFeatureNotSupportedException("updateClob");
380     }
381     
382     @Override
383     public final void updateClob(final int columnIndex, final Reader reader, final long length) throws SQLException {
384         throw new SQLFeatureNotSupportedException("updateClob");
385     }
386     
387     @Override
388     public final void updateClob(final String columnLabel, final Reader reader, final long length) throws SQLException {
389         throw new SQLFeatureNotSupportedException("updateClob");
390     }
391     
392     @Override
393     public final void updateNClob(final int columnIndex, final NClob nClob) throws SQLException {
394         throw new SQLFeatureNotSupportedException("updateNClob");
395     }
396     
397     @Override
398     public final void updateNClob(final String columnLabel, final NClob nClob) throws SQLException {
399         throw new SQLFeatureNotSupportedException("updateNClob");
400     }
401     
402     @Override
403     public final void updateNClob(final int columnIndex, final Reader reader) throws SQLException {
404         throw new SQLFeatureNotSupportedException("updateNClob");
405     }
406     
407     @Override
408     public final void updateNClob(final String columnLabel, final Reader reader) throws SQLException {
409         throw new SQLFeatureNotSupportedException("updateNClob");
410     }
411     
412     @Override
413     public final void updateNClob(final int columnIndex, final Reader reader, final long length) throws SQLException {
414         throw new SQLFeatureNotSupportedException("updateNClob");
415     }
416     
417     @Override
418     public final void updateNClob(final String columnLabel, final Reader reader, final long length) throws SQLException {
419         throw new SQLFeatureNotSupportedException("updateNClob");
420     }
421     
422     @Override
423     public final void updateArray(final int columnIndex, final Array x) throws SQLException {
424         throw new SQLFeatureNotSupportedException("updateArray");
425     }
426     
427     @Override
428     public final void updateArray(final String columnLabel, final Array x) throws SQLException {
429         throw new SQLFeatureNotSupportedException("updateArray");
430     }
431     
432     @Override
433     public final void updateRowId(final int columnIndex, final RowId x) throws SQLException {
434         throw new SQLFeatureNotSupportedException("updateRowId");
435     }
436     
437     @Override
438     public final void updateRowId(final String columnLabel, final RowId x) throws SQLException {
439         throw new SQLFeatureNotSupportedException("updateRowId");
440     }
441     
442     @Override
443     public final void updateSQLXML(final int columnIndex, final SQLXML xmlObject) throws SQLException {
444         throw new SQLFeatureNotSupportedException("updateSQLXML");
445     }
446     
447     @Override
448     public final void updateSQLXML(final String columnLabel, final SQLXML xmlObject) throws SQLException {
449         throw new SQLFeatureNotSupportedException("updateSQLXML");
450     }
451 }