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.driver.jdbc.unsupported;
19  
20  import java.io.InputStream;
21  import java.io.Reader;
22  import java.net.URL;
23  import java.sql.Array;
24  import java.sql.Blob;
25  import java.sql.Clob;
26  import java.sql.Date;
27  import java.sql.SQLException;
28  import java.sql.SQLFeatureNotSupportedException;
29  import java.sql.SQLWarning;
30  import java.sql.SQLXML;
31  import java.sql.Time;
32  import java.sql.Timestamp;
33  import java.util.Calendar;
34  
35  /**
36   * Unsupported {@code ResultSet} methods for generated keys.
37   */
38  public abstract class AbstractUnsupportedGeneratedKeysResultSet extends AbstractUnsupportedOperationResultSet {
39      
40      @Override
41      public final boolean getBoolean(final int columnIndex) throws SQLException {
42          throw new SQLFeatureNotSupportedException("getBoolean");
43      }
44      
45      @Override
46      public final boolean getBoolean(final String columnLabel) throws SQLException {
47          throw new SQLFeatureNotSupportedException("getBoolean");
48      }
49      
50      @Override
51      public final Date getDate(final int columnIndex) throws SQLException {
52          throw new SQLFeatureNotSupportedException("getDate");
53      }
54      
55      @Override
56      public final Date getDate(final String columnLabel) throws SQLException {
57          throw new SQLFeatureNotSupportedException("getDate");
58      }
59      
60      @Override
61      public final Date getDate(final int columnIndex, final Calendar cal) throws SQLException {
62          throw new SQLFeatureNotSupportedException("getDate");
63      }
64      
65      @Override
66      public final Date getDate(final String columnLabel, final Calendar cal) throws SQLException {
67          throw new SQLFeatureNotSupportedException("getDate");
68      }
69      
70      @Override
71      public final Time getTime(final int columnIndex) throws SQLException {
72          throw new SQLFeatureNotSupportedException("getTime");
73      }
74      
75      @Override
76      public final Time getTime(final int columnIndex, final Calendar cal) throws SQLException {
77          throw new SQLFeatureNotSupportedException("getTime");
78      }
79      
80      @Override
81      public final Time getTime(final String columnLabel, final Calendar cal) throws SQLException {
82          throw new SQLFeatureNotSupportedException("getTime");
83      }
84      
85      @Override
86      public final Time getTime(final String columnLabel) throws SQLException {
87          throw new SQLFeatureNotSupportedException("getTime");
88      }
89      
90      @Override
91      public final Timestamp getTimestamp(final int columnIndex) throws SQLException {
92          throw new SQLFeatureNotSupportedException("getTimestamp");
93      }
94      
95      @Override
96      public final Timestamp getTimestamp(final String columnLabel) throws SQLException {
97          throw new SQLFeatureNotSupportedException("getTimestamp");
98      }
99      
100     @Override
101     public final Timestamp getTimestamp(final int columnIndex, final Calendar cal) throws SQLException {
102         throw new SQLFeatureNotSupportedException("getTimestamp");
103     }
104     
105     @Override
106     public final Timestamp getTimestamp(final String columnLabel, final Calendar cal) throws SQLException {
107         throw new SQLFeatureNotSupportedException("getTimestamp");
108     }
109     
110     @Override
111     public final Array getArray(final int columnIndex) throws SQLException {
112         throw new SQLFeatureNotSupportedException("getArray");
113     }
114     
115     @Override
116     public final Array getArray(final String columnLabel) throws SQLException {
117         throw new SQLFeatureNotSupportedException("getArray");
118     }
119     
120     @Override
121     public final InputStream getAsciiStream(final int columnIndex) throws SQLException {
122         throw new SQLFeatureNotSupportedException("getAsciiStream");
123     }
124     
125     @Override
126     public final InputStream getAsciiStream(final String columnLabel) throws SQLException {
127         throw new SQLFeatureNotSupportedException("getAsciiStream");
128     }
129     
130     @Override
131     public final InputStream getUnicodeStream(final int columnIndex) throws SQLException {
132         throw new SQLFeatureNotSupportedException("getUnicodeStream");
133     }
134     
135     @Override
136     public final InputStream getUnicodeStream(final String columnLabel) throws SQLException {
137         throw new SQLFeatureNotSupportedException("getUnicodeStream");
138     }
139     
140     @Override
141     public final InputStream getBinaryStream(final int columnIndex) throws SQLException {
142         throw new SQLFeatureNotSupportedException("getBinaryStream");
143     }
144     
145     @Override
146     public final InputStream getBinaryStream(final String columnLabel) throws SQLException {
147         throw new SQLFeatureNotSupportedException("getBinaryStream");
148     }
149     
150     @Override
151     public final SQLWarning getWarnings() throws SQLException {
152         throw new SQLFeatureNotSupportedException("getWarnings");
153     }
154     
155     @Override
156     public final void clearWarnings() throws SQLException {
157         throw new SQLFeatureNotSupportedException("clearWarnings");
158     }
159     
160     @Override
161     public final Reader getCharacterStream(final int columnIndex) throws SQLException {
162         throw new SQLFeatureNotSupportedException("getCharacterStream");
163     }
164     
165     @Override
166     public final Reader getCharacterStream(final String columnLabel) throws SQLException {
167         throw new SQLFeatureNotSupportedException("getCharacterStream");
168     }
169     
170     @Override
171     public final void setFetchDirection(final int direction) throws SQLException {
172         throw new SQLFeatureNotSupportedException("setFetchDirection");
173     }
174     
175     @Override
176     public final int getFetchDirection() throws SQLException {
177         throw new SQLFeatureNotSupportedException("getFetchDirection");
178     }
179     
180     @Override
181     public final void setFetchSize(final int rows) throws SQLException {
182         throw new SQLFeatureNotSupportedException("setFetchSize");
183     }
184     
185     @Override
186     public final int getFetchSize() throws SQLException {
187         throw new SQLFeatureNotSupportedException("getFetchSize");
188     }
189     
190     @Override
191     public final Blob getBlob(final int columnIndex) throws SQLException {
192         throw new SQLFeatureNotSupportedException("getBlob");
193     }
194     
195     @Override
196     public final Blob getBlob(final String columnLabel) throws SQLException {
197         throw new SQLFeatureNotSupportedException("getBlob");
198     }
199     
200     @Override
201     public final Clob getClob(final int columnIndex) throws SQLException {
202         throw new SQLFeatureNotSupportedException("getClob");
203     }
204     
205     @Override
206     public final Clob getClob(final String columnLabel) throws SQLException {
207         throw new SQLFeatureNotSupportedException("getClob");
208     }
209     
210     @Override
211     public final URL getURL(final int columnIndex) throws SQLException {
212         throw new SQLFeatureNotSupportedException("getURL");
213     }
214     
215     @Override
216     public final URL getURL(final String columnLabel) throws SQLException {
217         throw new SQLFeatureNotSupportedException("getURL");
218     }
219     
220     @Override
221     public final SQLXML getSQLXML(final int columnIndex) throws SQLException {
222         throw new SQLFeatureNotSupportedException("getSQLXML");
223     }
224     
225     @Override
226     public final SQLXML getSQLXML(final String columnLabel) throws SQLException {
227         throw new SQLFeatureNotSupportedException("getSQLXML");
228     }
229 }