20
20
21
21
import static com .intellij .DriverPropertyInfoHelper .ScanConsistency .getQueryScanConsistency ;
22
22
23
+ @ SuppressWarnings ("RedundantThrows" )
23
24
public abstract class CouchbaseBaseStatement implements Statement {
24
25
protected final Cluster cluster ;
25
26
protected final Properties properties ;
@@ -56,7 +57,7 @@ void checkClosed() throws SQLException {
56
57
}
57
58
58
59
@ Override
59
- public boolean isClosed () {
60
+ public boolean isClosed () throws SQLException {
60
61
return isClosed ;
61
62
}
62
63
@@ -79,7 +80,7 @@ protected void setNewResultSet(@Nullable ResultSet resultSet) throws SQLExceptio
79
80
}
80
81
81
82
@ Override
82
- public boolean getMoreResults () {
83
+ public boolean getMoreResults () throws SQLException {
83
84
return false ;
84
85
}
85
86
@@ -145,7 +146,7 @@ public int getMaxRows() throws SQLException {
145
146
}
146
147
147
148
@ Override
148
- public void setMaxRows (int max ) {
149
+ public void setMaxRows (int max ) throws SQLException {
149
150
// todo
150
151
}
151
152
@@ -170,12 +171,12 @@ public void cancel() throws SQLException {
170
171
}
171
172
172
173
@ Override
173
- public SQLWarning getWarnings () {
174
+ public SQLWarning getWarnings () throws SQLException {
174
175
return null ; // todo
175
176
}
176
177
177
178
@ Override
178
- public void clearWarnings () {
179
+ public void clearWarnings () throws SQLException {
179
180
// todo
180
181
}
181
182
@@ -191,12 +192,12 @@ public void setFetchDirection(int direction) throws SQLException {
191
192
}
192
193
193
194
@ Override
194
- public int getFetchDirection () {
195
+ public int getFetchDirection () throws SQLException {
195
196
return ResultSet .FETCH_FORWARD ;
196
197
}
197
198
198
199
@ Override
199
- public void setFetchSize (int rows ) {
200
+ public void setFetchSize (int rows ) throws SQLException {
200
201
this .fetchSize = rows ;
201
202
}
202
203
0 commit comments