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.Reader;
21  import java.sql.NClob;
22  import java.sql.Ref;
23  import java.sql.RowId;
24  import java.sql.SQLException;
25  import java.sql.SQLFeatureNotSupportedException;
26  import java.util.Map;
27  
28  /**
29   * Unsupported {@code ResultSet} methods.
30   */
31  public abstract class AbstractUnsupportedOperationResultSet extends AbstractUnsupportedUpdateOperationResultSet {
32      
33      @Override
34      public boolean previous() throws SQLException {
35          throw new SQLFeatureNotSupportedException("previous");
36      }
37      
38      @Override
39      public boolean isBeforeFirst() throws SQLException {
40          throw new SQLFeatureNotSupportedException("isBeforeFirst");
41      }
42      
43      @Override
44      public boolean isAfterLast() throws SQLException {
45          throw new SQLFeatureNotSupportedException("isAfterLast");
46      }
47      
48      @Override
49      public boolean isFirst() throws SQLException {
50          throw new SQLFeatureNotSupportedException("isFirst");
51      }
52      
53      @Override
54      public boolean isLast() throws SQLException {
55          throw new SQLFeatureNotSupportedException("isLast");
56      }
57      
58      @Override
59      public void beforeFirst() throws SQLException {
60          throw new SQLFeatureNotSupportedException("beforeFirst");
61      }
62      
63      @Override
64      public void afterLast() throws SQLException {
65          throw new SQLFeatureNotSupportedException("afterLast");
66      }
67      
68      @Override
69      public boolean first() throws SQLException {
70          throw new SQLFeatureNotSupportedException("first");
71      }
72      
73      @Override
74      public boolean last() throws SQLException {
75          throw new SQLFeatureNotSupportedException("last");
76      }
77      
78      @Override
79      public boolean absolute(final int row) throws SQLException {
80          throw new SQLFeatureNotSupportedException("absolute");
81      }
82      
83      @Override
84      public boolean relative(final int rows) throws SQLException {
85          throw new SQLFeatureNotSupportedException("relative");
86      }
87      
88      @Override
89      public int getRow() throws SQLException {
90          throw new SQLFeatureNotSupportedException("getRow");
91      }
92      
93      @Override
94      public final void insertRow() throws SQLException {
95          throw new SQLFeatureNotSupportedException("insertRow");
96      }
97      
98      @Override
99      public final void updateRow() throws SQLException {
100         throw new SQLFeatureNotSupportedException("updateRow");
101     }
102     
103     @Override
104     public final void deleteRow() throws SQLException {
105         throw new SQLFeatureNotSupportedException("deleteRow");
106     }
107     
108     @Override
109     public final void refreshRow() throws SQLException {
110         throw new SQLFeatureNotSupportedException("refreshRow");
111     }
112     
113     @Override
114     public final void cancelRowUpdates() throws SQLException {
115         throw new SQLFeatureNotSupportedException("cancelRowUpdates");
116     }
117     
118     @Override
119     public final void moveToInsertRow() throws SQLException {
120         throw new SQLFeatureNotSupportedException("moveToInsertRow");
121     }
122     
123     @Override
124     public final void moveToCurrentRow() throws SQLException {
125         throw new SQLFeatureNotSupportedException("moveToCurrentRow");
126     }
127     
128     @Override
129     public final boolean rowInserted() throws SQLException {
130         throw new SQLFeatureNotSupportedException("rowInserted");
131     }
132     
133     @Override
134     public final boolean rowUpdated() throws SQLException {
135         throw new SQLFeatureNotSupportedException("rowUpdated");
136     }
137     
138     @Override
139     public final boolean rowDeleted() throws SQLException {
140         throw new SQLFeatureNotSupportedException("rowDeleted");
141     }
142     
143     @Override
144     public final String getCursorName() throws SQLException {
145         throw new SQLFeatureNotSupportedException("getCursorName");
146     }
147     
148     @Override
149     public final int getHoldability() throws SQLException {
150         throw new SQLFeatureNotSupportedException("getHoldability");
151     }
152     
153     @Override
154     public final NClob getNClob(final int columnIndex) throws SQLException {
155         throw new SQLFeatureNotSupportedException("getNClob");
156     }
157     
158     @Override
159     public final NClob getNClob(final String columnLabel) throws SQLException {
160         throw new SQLFeatureNotSupportedException("getNClob");
161     }
162     
163     @Override
164     public final Reader getNCharacterStream(final int columnIndex) throws SQLException {
165         throw new SQLFeatureNotSupportedException("getNCharacterStream");
166     }
167     
168     @Override
169     public final Reader getNCharacterStream(final String columnLabel) throws SQLException {
170         throw new SQLFeatureNotSupportedException("getNCharacterStream");
171     }
172     
173     @Override
174     public final Ref getRef(final int columnIndex) throws SQLException {
175         throw new SQLFeatureNotSupportedException("getRef");
176     }
177     
178     @Override
179     public final Ref getRef(final String columnLabel) throws SQLException {
180         throw new SQLFeatureNotSupportedException("getRef");
181     }
182     
183     @Override
184     public final RowId getRowId(final int columnIndex) throws SQLException {
185         throw new SQLFeatureNotSupportedException("getRowId");
186     }
187     
188     @Override
189     public final RowId getRowId(final String columnLabel) throws SQLException {
190         throw new SQLFeatureNotSupportedException("getRowId");
191     }
192     
193     @Override
194     public <T> T getObject(final int columnIndex, final Class<T> type) throws SQLException {
195         throw new SQLFeatureNotSupportedException("getObject with type");
196     }
197     
198     @Override
199     public <T> T getObject(final String columnLabel, final Class<T> type) throws SQLException {
200         throw new SQLFeatureNotSupportedException("getObject with type");
201     }
202     
203     @Override
204     public final Object getObject(final String columnLabel, final Map<String, Class<?>> map) throws SQLException {
205         throw new SQLFeatureNotSupportedException("getObject with map");
206     }
207     
208     @Override
209     public final Object getObject(final int columnIndex, final Map<String, Class<?>> map) throws SQLException {
210         throw new SQLFeatureNotSupportedException("getObject with map");
211     }
212 }