View Javadoc

1   /**
2    * 
3    */
4   package com.github.smokestack.jdbc;
5   
6   import static org.hamcrest.MatcherAssert.assertThat;
7   
8   import java.io.InputStream;
9   import java.io.Reader;
10  import java.math.BigDecimal;
11  import java.net.URL;
12  import java.sql.Array;
13  import java.sql.Blob;
14  import java.sql.Clob;
15  import java.sql.Date;
16  import java.sql.Ref;
17  import java.sql.ResultSet;
18  import java.sql.ResultSetMetaData;
19  import java.sql.SQLException;
20  import java.sql.SQLWarning;
21  import java.sql.Statement;
22  import java.sql.Time;
23  import java.sql.Timestamp;
24  import java.util.Calendar;
25  import java.util.HashMap;
26  import java.util.Map;
27  
28  import com.github.smokestack.exception.NeedsMockDefinitionException;
29  
30  import org.apache.commons.lang.builder.ReflectionToStringBuilder;
31  import org.apache.commons.lang.builder.ToStringStyle;
32  import org.hamcrest.core.AnyOf;
33  import org.hamcrest.core.Is;
34  import org.hamcrest.core.IsNot;
35  
36  /**
37   * @author gliptak
38   *
39   */
40  public class MockResultSet implements ResultSet {
41  
42  	public enum ResultSetState {NEW, CLOSE, AUTOCLOSE};
43  	
44  	protected ResultSetState mockState=ResultSetState.NEW;
45  
46  	private String sql;
47  	
48  	private MockStatement parent;
49  
50  	private int fetchDirection;
51  
52  	private int fetchSize;
53  
54  	private int concurrency;
55  
56  	private Map<Object,Object> rsValues = new HashMap<Object,Object>();
57  
58  	public MockResultSet(String sql) {
59  		this.sql=sql;
60  	}
61  
62  	/* (non-Javadoc)
63  	 * @see java.sql.ResultSet#absolute(int)
64  	 */
65  	public boolean absolute(int row) throws SQLException {
66  		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
67  		return _absolute(row);
68  	}
69  
70  	public boolean _absolute(int row) {
71  		throw new NeedsMockDefinitionException();	
72  	}
73  
74  	/* (non-Javadoc)
75  	 * @see java.sql.ResultSet#afterLast()
76  	 */
77  	public void afterLast() throws SQLException {
78  		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
79  		_afterLast();
80  	}
81  
82  	public void _afterLast() {
83  		throw new NeedsMockDefinitionException();	
84  	}
85  
86  	/* (non-Javadoc)
87  	 * @see java.sql.ResultSet#beforeFirst()
88  	 */
89  	public void beforeFirst() throws SQLException {
90  		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
91  		_beforeFirst();
92  	}
93  
94  	public void _beforeFirst() {
95  		throw new NeedsMockDefinitionException();	
96  	}
97  
98  	/* (non-Javadoc)
99  	 * @see java.sql.ResultSet#cancelRowUpdates()
100 	 */
101 	public void cancelRowUpdates() throws SQLException {
102 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
103 		_cancelRowUpdates();
104 	}
105 
106 	public void _cancelRowUpdates() {
107 		throw new NeedsMockDefinitionException();	
108 	}
109 
110 	/* (non-Javadoc)
111 	 * @see java.sql.ResultSet#clearWarnings()
112 	 */
113 	public void clearWarnings() throws SQLException {
114 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
115 		_clearWarnings();
116 	}
117 
118 	public void _clearWarnings() {
119 		throw new NeedsMockDefinitionException();	
120 	}
121 
122 	/* (non-Javadoc)
123 	 * @see java.sql.ResultSet#close()
124 	 */
125 	public void close() throws SQLException {
126 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
127 		_close();
128 		mockState=ResultSetState.CLOSE;
129 		parent.complete();
130 	}
131 
132 	public void _close() {
133 	}
134 
135 	/* (non-Javadoc)
136 	 * @see java.sql.ResultSet#deleteRow()
137 	 */
138 	public void deleteRow() throws SQLException {
139 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
140 		_deleteRow();
141 	}
142 
143 	public void _deleteRow() {
144 		throw new NeedsMockDefinitionException();	
145 	}
146 
147 	/* (non-Javadoc)
148 	 * @see java.sql.ResultSet#findColumn(java.lang.String)
149 	 */
150 	public int findColumn(String columnName) throws SQLException {
151 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
152 		return _findColumn(columnName);
153 	}
154 
155 	public int _findColumn(String columnName) {
156 		throw new NeedsMockDefinitionException();	
157 	}
158 
159 	/* (non-Javadoc)
160 	 * @see java.sql.ResultSet#first()
161 	 */
162 	public boolean first() throws SQLException {
163 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
164 		return _first();
165 	}
166 
167 	public boolean _first() {
168 		throw new NeedsMockDefinitionException();	
169 	}
170 
171 	/* (non-Javadoc)
172 	 * @see java.sql.ResultSet#getArray(int)
173 	 */
174 	public Array getArray(int i) throws SQLException {
175 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
176 		return _getArray(i);
177 	}
178 
179 	public Array _getArray(int i) {
180 		throw new NeedsMockDefinitionException();	
181 	}
182 
183 	/* (non-Javadoc)
184 	 * @see java.sql.ResultSet#getArray(java.lang.String)
185 	 */
186 	public Array getArray(String colName) throws SQLException {
187 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
188 		return _getArray(colName);
189 	}
190 
191 	public Array _getArray(String colName) {
192 		throw new NeedsMockDefinitionException();	
193 	}
194 
195 	/* (non-Javadoc)
196 	 * @see java.sql.ResultSet#getAsciiStream(int)
197 	 */
198 	public InputStream getAsciiStream(int columnIndex) throws SQLException {
199 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
200 		return _getAsciiStream(columnIndex);
201 	}
202 
203 	public InputStream _getAsciiStream(int columnIndex) {
204 		throw new NeedsMockDefinitionException();	
205 	}
206 
207 	/* (non-Javadoc)
208 	 * @see java.sql.ResultSet#getAsciiStream(java.lang.String)
209 	 */
210 	public InputStream getAsciiStream(String columnName) throws SQLException {
211 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
212 		return _getAsciiStream(columnName);
213 	}
214 
215 	public InputStream _getAsciiStream(String columnName) {
216 		throw new NeedsMockDefinitionException();	
217 	}
218 
219 	/* (non-Javadoc)
220 	 * @see java.sql.ResultSet#getBigDecimal(int)
221 	 */
222 	public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
223 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
224 		return _getBigDecimal(columnIndex);
225 	}
226 
227 	public BigDecimal _getBigDecimal(int columnIndex) {
228 		throw new NeedsMockDefinitionException();	
229 	}
230 
231 	/* (non-Javadoc)
232 	 * @see java.sql.ResultSet#getBigDecimal(java.lang.String)
233 	 */
234 	public BigDecimal getBigDecimal(String columnName) throws SQLException {
235 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
236 		return _getBigDecimal(columnName);
237 	}
238 
239 	public BigDecimal _getBigDecimal(String columnName) {
240 		throw new NeedsMockDefinitionException();	
241 	}
242 
243 	/* (non-Javadoc)
244 	 * @see java.sql.ResultSet#getBigDecimal(int, int)
245 	 */
246 	public BigDecimal getBigDecimal(int columnIndex, int scale)
247 			throws SQLException {
248 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
249 		return _getBigDecimal(columnIndex, scale);
250 	}
251 
252 	public BigDecimal _getBigDecimal(int columnIndex, int scale) {
253 		throw new NeedsMockDefinitionException();	
254 	}
255 
256 	/* (non-Javadoc)
257 	 * @see java.sql.ResultSet#getBigDecimal(java.lang.String, int)
258 	 */
259 	public BigDecimal getBigDecimal(String columnName, int scale)
260 			throws SQLException {
261 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
262 		return _getBigDecimal(columnName, scale);	
263 	}
264 
265 	public BigDecimal _getBigDecimal(String columnName, int scale) {
266 		throw new NeedsMockDefinitionException();	
267 	}
268 
269 	/* (non-Javadoc)
270 	 * @see java.sql.ResultSet#getBinaryStream(int)
271 	 */
272 	public InputStream getBinaryStream(int columnIndex) throws SQLException {
273 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
274 		return _getBinaryStream(columnIndex);
275 	}
276 
277 	public InputStream _getBinaryStream(int columnIndex) {
278 		throw new NeedsMockDefinitionException();	
279 	}
280 
281 	/* (non-Javadoc)
282 	 * @see java.sql.ResultSet#getBinaryStream(java.lang.String)
283 	 */
284 	public InputStream getBinaryStream(String columnName) throws SQLException {
285 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
286 		return _getBinaryStream(columnName);	
287 	}
288 
289 	public InputStream _getBinaryStream(String columnName) {
290 		throw new NeedsMockDefinitionException();	
291 	}
292 
293 	/* (non-Javadoc)
294 	 * @see java.sql.ResultSet#getBlob(int)
295 	 */
296 	public Blob getBlob(int i) throws SQLException {
297 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
298 		return _getBlob(i);	
299 	}
300 
301 	public Blob _getBlob(int i) {
302 		throw new NeedsMockDefinitionException();	
303 	}
304 
305 	/* (non-Javadoc)
306 	 * @see java.sql.ResultSet#getBlob(java.lang.String)
307 	 */
308 	public Blob getBlob(String colName) throws SQLException {
309 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
310 		return _getBlob(colName);	
311 	}
312 
313 	public Blob _getBlob(String colName) {
314 		throw new NeedsMockDefinitionException();	
315 	}
316 
317 	/* (non-Javadoc)
318 	 * @see java.sql.ResultSet#getBoolean(int)
319 	 */
320 	public boolean getBoolean(int columnIndex) throws SQLException {
321 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
322 		return _getBoolean(columnIndex);	
323 	}
324 
325 	public boolean _getBoolean(int columnIndex) {
326 		throw new NeedsMockDefinitionException();	
327 	}
328 
329 	/* (non-Javadoc)
330 	 * @see java.sql.ResultSet#getBoolean(java.lang.String)
331 	 */
332 	public boolean getBoolean(String columnName) throws SQLException {
333 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
334 		return _getBoolean(columnName);	
335 	}
336 
337 	public boolean _getBoolean(String columnName) {
338 		throw new NeedsMockDefinitionException();	
339 	}
340 
341 	/* (non-Javadoc)
342 	 * @see java.sql.ResultSet#getByte(int)
343 	 */
344 	public byte getByte(int columnIndex) throws SQLException {
345 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
346 		return _getByte(columnIndex);	
347 	}
348 
349 	public byte _getByte(int columnIndex) {
350 		throw new NeedsMockDefinitionException();	
351 	}
352 
353 	/* (non-Javadoc)
354 	 * @see java.sql.ResultSet#getByte(java.lang.String)
355 	 */
356 	public byte getByte(String columnName) throws SQLException {
357 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
358 		return _getByte(columnName);	
359 	}
360 
361 	public byte _getByte(String columnName) {
362 		throw new NeedsMockDefinitionException();	
363 	}
364 
365 	/* (non-Javadoc)
366 	 * @see java.sql.ResultSet#getBytes(int)
367 	 */
368 	public byte[] getBytes(int columnIndex) throws SQLException {
369 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
370 		return _getBytes(columnIndex);	
371 	}
372 
373 	public byte[] _getBytes(int columnIndex) {
374 		throw new NeedsMockDefinitionException();	
375 	}
376 
377 	/* (non-Javadoc)
378 	 * @see java.sql.ResultSet#getBytes(java.lang.String)
379 	 */
380 	public byte[] getBytes(String columnName) throws SQLException {
381 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
382 		return _getBytes(columnName);	
383 	}
384 
385 	public byte[] _getBytes(String columnName) {
386 		throw new NeedsMockDefinitionException();	
387 	}
388 
389 	/* (non-Javadoc)
390 	 * @see java.sql.ResultSet#getCharacterStream(int)
391 	 */
392 	public Reader getCharacterStream(int columnIndex) throws SQLException {
393 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
394 		return _getCharacterStream(columnIndex);	
395 	}
396 
397 	public Reader _getCharacterStream(int columnIndex) {
398 		throw new NeedsMockDefinitionException();	
399 	}
400 
401 	/* (non-Javadoc)
402 	 * @see java.sql.ResultSet#getCharacterStream(java.lang.String)
403 	 */
404 	public Reader getCharacterStream(String columnName) throws SQLException {
405 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
406 		return _getCharacterStream(columnName);	
407 	}
408 
409 	public Reader _getCharacterStream(String columnName) {
410 		throw new NeedsMockDefinitionException();	
411 	}
412 
413 	/* (non-Javadoc)
414 	 * @see java.sql.ResultSet#getClob(int)
415 	 */
416 	public Clob getClob(int i) throws SQLException {
417 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
418 		return _getClob(i);	
419 	}
420 
421 	public Clob _getClob(int i) {
422 		throw new NeedsMockDefinitionException();	
423 	}
424 
425 	/* (non-Javadoc)
426 	 * @see java.sql.ResultSet#getClob(java.lang.String)
427 	 */
428 	public Clob getClob(String colName) throws SQLException {
429 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
430 		return _getClob(colName);	
431 	}
432 
433 	public Clob _getClob(String colName) {
434 		throw new NeedsMockDefinitionException();	
435 	}
436 
437 	/* (non-Javadoc)
438 	 * @see java.sql.ResultSet#getConcurrency()
439 	 */
440 	public int getConcurrency() throws SQLException {
441 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
442 		_getConcurrency();
443 		return concurrency;	
444 	}
445 
446 	public int _getConcurrency() {
447 		return -1; 
448 	}
449 
450 	/* (non-Javadoc)
451 	 * @see java.sql.ResultSet#getCursorName()
452 	 */
453 	public String getCursorName() throws SQLException {
454 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
455 		return _getCursorName();	
456 	}
457 
458 	public String _getCursorName() {
459 		throw new NeedsMockDefinitionException();	
460 	}
461 
462 	/* (non-Javadoc)
463 	 * @see java.sql.ResultSet#getDate(int)
464 	 */
465 	public Date getDate(int columnIndex) throws SQLException {
466 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
467 		return _getDate(columnIndex);	
468 	}
469 
470 	public Date _getDate(int columnIndex) {
471 		throw new NeedsMockDefinitionException();	
472 	}
473 
474 	/* (non-Javadoc)
475 	 * @see java.sql.ResultSet#getDate(java.lang.String)
476 	 */
477 	public Date getDate(String columnName) throws SQLException {
478 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
479 		return _getDate(columnName);	
480 	}
481 
482 	public Date _getDate(String columnName) {
483 		throw new NeedsMockDefinitionException();	
484 	}
485 
486 	/* (non-Javadoc)
487 	 * @see java.sql.ResultSet#getDate(int, java.util.Calendar)
488 	 */
489 	public Date getDate(int columnIndex, Calendar cal) throws SQLException {
490 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
491 		return _getDate(columnIndex, cal);
492 	}
493 
494 	public Date _getDate(int columnIndex, Calendar cal) {
495 		throw new NeedsMockDefinitionException();	
496 	}
497 
498 	/* (non-Javadoc)
499 	 * @see java.sql.ResultSet#getDate(java.lang.String, java.util.Calendar)
500 	 */
501 	public Date getDate(String columnName, Calendar cal) throws SQLException {
502 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
503 		return _getDate(columnName, cal);
504 	}
505 
506 	public Date _getDate(String columnName, Calendar cal) {
507 		throw new NeedsMockDefinitionException();	
508 	}
509 
510 	/* (non-Javadoc)
511 	 * @see java.sql.ResultSet#getDouble(int)
512 	 */
513 	public double getDouble(int columnIndex) throws SQLException {
514 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
515 		return _getDouble(columnIndex);
516 	}
517 
518 	public double _getDouble(int columnIndex) {
519 		throw new NeedsMockDefinitionException();	
520 	}
521 
522 	/* (non-Javadoc)
523 	 * @see java.sql.ResultSet#getDouble(java.lang.String)
524 	 */
525 	public double getDouble(String columnName) throws SQLException {
526 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
527 		return _getDouble(columnName);
528 	}
529 
530 	public double _getDouble(String columnName) {
531 		throw new NeedsMockDefinitionException();	
532 	}
533 
534 	/* (non-Javadoc)
535 	 * @see java.sql.ResultSet#getFetchDirection()
536 	 */
537 	public int getFetchDirection() throws SQLException {
538 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
539 		_getFetchDirection();
540 		return fetchDirection;
541 	}
542 
543 	public int _getFetchDirection() {
544 		return -1;
545 	}
546 
547 	/* (non-Javadoc)
548 	 * @see java.sql.ResultSet#getFetchSize()
549 	 */
550 	public int getFetchSize() throws SQLException {
551 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
552 		_getFetchSize();
553 		return fetchSize;
554 	}
555 
556 	public int _getFetchSize() {
557 		return -1;
558 	}
559 
560 	/* (non-Javadoc)
561 	 * @see java.sql.ResultSet#getFloat(int)
562 	 */
563 	public float getFloat(int columnIndex) throws SQLException {
564 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
565 		return _getFloat(columnIndex);
566 	}
567 
568 	public float _getFloat(int columnIndex) {
569 		throw new NeedsMockDefinitionException();	
570 	}
571 
572 	/* (non-Javadoc)
573 	 * @see java.sql.ResultSet#getFloat(java.lang.String)
574 	 */
575 	public float getFloat(String columnName) throws SQLException {
576 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
577 		return _getFloat(columnName);
578 	}
579 
580 	public float _getFloat(String columnName) {
581 		throw new NeedsMockDefinitionException();	
582 	}
583 
584 	/* (non-Javadoc)
585 	 * @see java.sql.ResultSet#getInt(int)
586 	 */
587 	public int getInt(int columnIndex) throws SQLException {
588 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
589 		return _getInt(columnIndex);
590 	}
591 
592 	public int _getInt(int columnIndex) {
593 		throw new NeedsMockDefinitionException();	
594 	}
595 
596 	/* (non-Javadoc)
597 	 * @see java.sql.ResultSet#getInt(java.lang.String)
598 	 */
599 	public int getInt(String columnName) throws SQLException {
600 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
601 		return _getInt(columnName);
602 	}
603 
604 	public int _getInt(String columnName) {
605 		throw new NeedsMockDefinitionException();	
606 	}
607 
608 	/* (non-Javadoc)
609 	 * @see java.sql.ResultSet#getLong(int)
610 	 */
611 	public long getLong(int columnIndex) throws SQLException {
612 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
613 		return _getLong(columnIndex);
614 	}
615 
616 	public long _getLong(int i) {
617 		throw new NeedsMockDefinitionException();	
618 	}
619 	
620 	/* (non-Javadoc)
621 	 * @see java.sql.ResultSet#getLong(java.lang.String)
622 	 */
623 	public long getLong(String columnName) throws SQLException {
624 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
625 		return _getLong(columnName);
626 	}
627 
628 	public long _getLong(String columnName) {
629 		throw new NeedsMockDefinitionException();	
630 	}
631 
632 	/* (non-Javadoc)
633 	 * @see java.sql.ResultSet#getMetaData()
634 	 */
635 	public ResultSetMetaData getMetaData() throws SQLException {
636 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
637 		return _getMetaData();
638 	}
639 
640 	public ResultSetMetaData _getMetaData() {
641 		throw new NeedsMockDefinitionException();	
642 	}
643 
644 	/* (non-Javadoc)
645 	 * @see java.sql.ResultSet#getObject(int)
646 	 */
647 	public Object getObject(int columnIndex) throws SQLException {
648 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
649 		return _getObject(columnIndex);
650 	}
651 
652 	public Object _getObject(int columnIndex) {
653 		throw new NeedsMockDefinitionException();	
654 	}
655 
656 	/* (non-Javadoc)
657 	 * @see java.sql.ResultSet#getObject(java.lang.String)
658 	 */
659 	public Object getObject(String columnName) throws SQLException {
660 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
661 		return _getObject(columnName);
662 	}
663 
664 	public Object _getObject(String columnName) {
665 		throw new NeedsMockDefinitionException();	
666 	}
667 
668 	/* (non-Javadoc)
669 	 * @see java.sql.ResultSet#getObject(int, java.util.Map)
670 	 */
671 	public Object getObject(int i, Map<String, Class<?>> map)
672 			throws SQLException {
673 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
674 		return _getObject(i, map);
675 	}
676 
677 	public Object _getObject(int i, Map<String, Class<?>> map) {
678 		throw new NeedsMockDefinitionException();	
679 	}
680 
681 	/* (non-Javadoc)
682 	 * @see java.sql.ResultSet#getObject(java.lang.String, java.util.Map)
683 	 */
684 	public Object getObject(String colName, Map<String, Class<?>> map)
685 			throws SQLException {
686 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
687 		return _getObject(colName, map);
688 	}
689 
690 	public Object _getObject(String colName, Map<String, Class<?>> map) {
691 		throw new NeedsMockDefinitionException();	
692 	}
693 
694 	/* (non-Javadoc)
695 	 * @see java.sql.ResultSet#getRef(int)
696 	 */
697 	public Ref getRef(int i) throws SQLException {
698 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
699 		return _getRef(i);
700 	}
701 
702 	public Ref _getRef(int i) {
703 		throw new NeedsMockDefinitionException();	
704 	}
705 
706 	/* (non-Javadoc)
707 	 * @see java.sql.ResultSet#getRef(java.lang.String)
708 	 */
709 	public Ref getRef(String colName) throws SQLException {
710 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
711 		return _getRef(colName);
712 	}
713 
714 	public Ref _getRef(String colName) {
715 		throw new NeedsMockDefinitionException();	
716 	}
717 
718 	/* (non-Javadoc)
719 	 * @see java.sql.ResultSet#getRow()
720 	 */
721 	public int getRow() throws SQLException {
722 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
723 		return _getRow();
724 	}
725 
726 	public int _getRow() {
727 		throw new NeedsMockDefinitionException();	
728 	}
729 
730 	/* (non-Javadoc)
731 	 * @see java.sql.ResultSet#getShort(int)
732 	 */
733 	public short getShort(int columnIndex) throws SQLException {
734 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
735 		return _getShort(columnIndex);
736 	}
737 
738 	public short _getShort(int columnIndex) {
739 		throw new NeedsMockDefinitionException();	
740 	}
741 
742 	/* (non-Javadoc)
743 	 * @see java.sql.ResultSet#getShort(java.lang.String)
744 	 */
745 	public short getShort(String columnName) throws SQLException {
746 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
747 		return _getShort(columnName);
748 	}
749 
750 	public short _getShort(String columnName) {
751 		throw new NeedsMockDefinitionException();	
752 	}
753 
754 	/* (non-Javadoc)
755 	 * @see java.sql.ResultSet#getStatement()
756 	 */
757 	public Statement getStatement() throws SQLException {
758 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
759 		return _getStatement();
760 	}
761 
762 	public Statement _getStatement() {
763 		throw new NeedsMockDefinitionException();	
764 	}
765 
766 	/* (non-Javadoc)
767 	 * @see java.sql.ResultSet#getString(int)
768 	 */
769 	public String getString(int columnIndex) throws SQLException {
770 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
771 		return _getString(columnIndex);
772 	}
773 
774 	/* (non-Javadoc)
775 	 * @see java.sql.ResultSet#getString(int)
776 	 */
777 	public String _getString(int columnIndex) throws SQLException {
778 		throw new NeedsMockDefinitionException();
779 	}
780 
781 	/* (non-Javadoc)
782 	 * @see java.sql.ResultSet#getString(java.lang.String)
783 	 */
784 	public String getString(String columnName) throws SQLException {
785 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
786 		return _getString(columnName);
787 	}
788 
789 	/* (non-Javadoc)
790 	 * @see java.sql.ResultSet#getString(int)
791 	 */
792 	public String _getString(String columnName) throws SQLException {
793 		throw new NeedsMockDefinitionException();	
794 	}
795 
796 	/* (non-Javadoc)
797 	 * @see java.sql.ResultSet#getTime(int)
798 	 */
799 	public Time getTime(int columnIndex) throws SQLException {
800 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
801 		return _getTime(columnIndex);
802 	}
803 
804 	public Time _getTime(int columnIndex) {
805 		throw new NeedsMockDefinitionException();	
806 	}
807 
808 	/* (non-Javadoc)
809 	 * @see java.sql.ResultSet#getTime(java.lang.String)
810 	 */
811 	public Time getTime(String columnName) throws SQLException {
812 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
813 		return _getTime(columnName);
814 	}
815 
816 	public Time _getTime(String columnName) {
817 		throw new NeedsMockDefinitionException();	
818 	}
819 
820 	/* (non-Javadoc)
821 	 * @see java.sql.ResultSet#getTime(int, java.util.Calendar)
822 	 */
823 	public Time getTime(int columnIndex, Calendar cal) throws SQLException {
824 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
825 		return _getTime(columnIndex, cal);
826 	}
827 
828 	public Time _getTime(int columnIndex, Calendar cal) {
829 		throw new NeedsMockDefinitionException();	
830 	}
831 
832 	/* (non-Javadoc)
833 	 * @see java.sql.ResultSet#getTime(java.lang.String, java.util.Calendar)
834 	 */
835 	public Time getTime(String columnName, Calendar cal) throws SQLException {
836 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
837 		return _getTime(columnName, cal);
838 	}
839 
840 	public Time _getTime(String columnName, Calendar cal) {
841 		throw new NeedsMockDefinitionException();	
842 	}
843 
844 	/* (non-Javadoc)
845 	 * @see java.sql.ResultSet#getTimestamp(int)
846 	 */
847 	public Timestamp getTimestamp(int columnIndex) throws SQLException {
848 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
849 		return _getTimestamp(columnIndex);
850 	}
851 
852 	public Timestamp _getTimestamp(int columnIndex) {
853 		throw new NeedsMockDefinitionException();	
854 	}
855 
856 	/* (non-Javadoc)
857 	 * @see java.sql.ResultSet#getTimestamp(java.lang.String)
858 	 */
859 	public Timestamp getTimestamp(String columnName) throws SQLException {
860 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
861 		return _getTimestamp(columnName);
862 	}
863 
864 	public Timestamp _getTimestamp(String columnName) {
865 		throw new NeedsMockDefinitionException();	
866 	}
867 
868 	/* (non-Javadoc)
869 	 * @see java.sql.ResultSet#getTimestamp(int, java.util.Calendar)
870 	 */
871 	public Timestamp getTimestamp(int columnIndex, Calendar cal)
872 			throws SQLException {
873 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
874 		return _getTimestamp(columnIndex, cal);
875 	}
876 
877 	public Timestamp _getTimestamp(int columnIndex, Calendar cal) {
878 		throw new NeedsMockDefinitionException();	
879 	}
880 
881 	/* (non-Javadoc)
882 	 * @see java.sql.ResultSet#getTimestamp(java.lang.String, java.util.Calendar)
883 	 */
884 	public Timestamp getTimestamp(String columnName, Calendar cal)
885 			throws SQLException {
886 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
887 		return _getTimestamp(columnName, cal);
888 	}
889 
890 	public Timestamp _getTimestamp(String columnName, Calendar cal) {
891 		throw new NeedsMockDefinitionException();	
892 	}
893 
894 	/* (non-Javadoc)
895 	 * @see java.sql.ResultSet#getType()
896 	 */
897 	public int getType() throws SQLException {
898 		// TODO Auto-generated method stub
899 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
900 		return _getType();
901 	}
902 
903 	public int _getType() {
904 		throw new NeedsMockDefinitionException();	
905 	}
906 
907 	/* (non-Javadoc)
908 	 * @see java.sql.ResultSet#getURL(int)
909 	 */
910 	public URL getURL(int columnIndex) throws SQLException {
911 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
912 		return _getURL(columnIndex);
913 	}
914 
915 	public URL _getURL(int columnIndex) {
916 		throw new NeedsMockDefinitionException();	
917 	}
918 
919 	/* (non-Javadoc)
920 	 * @see java.sql.ResultSet#getURL(java.lang.String)
921 	 */
922 	public URL getURL(String columnName) throws SQLException {
923 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
924 		return _getURL(columnName);
925 	}
926 
927 	public URL _getURL(String columnName) {
928 		throw new NeedsMockDefinitionException();	
929 	}
930 
931 	/* (non-Javadoc)
932 	 * @see java.sql.ResultSet#getUnicodeStream(int)
933 	 */
934 	public InputStream getUnicodeStream(int columnIndex) throws SQLException {
935 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
936 		return _getUnicodeStream(columnIndex);
937 	}
938 
939 	public InputStream _getUnicodeStream(int columnIndex) {
940 		throw new NeedsMockDefinitionException();	
941 	}
942 
943 	/* (non-Javadoc)
944 	 * @see java.sql.ResultSet#getUnicodeStream(java.lang.String)
945 	 */
946 	public InputStream getUnicodeStream(String columnName) throws SQLException {
947 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
948 		return _getUnicodeStream(columnName);
949 	}
950 
951 	public InputStream _getUnicodeStream(String columnName) {
952 		throw new NeedsMockDefinitionException();	
953 	}
954 
955 	/* (non-Javadoc)
956 	 * @see java.sql.ResultSet#getWarnings()
957 	 */
958 	public SQLWarning getWarnings() throws SQLException {
959 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
960 		return _getWarnings();
961 	}
962 
963 	public SQLWarning _getWarnings() {
964 		throw new NeedsMockDefinitionException();	
965 	}
966 
967 	/* (non-Javadoc)
968 	 * @see java.sql.ResultSet#insertRow()
969 	 */
970 	public void insertRow() throws SQLException {
971 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
972 		_insertRow();
973 	}
974 
975 	public void _insertRow() {
976 		throw new NeedsMockDefinitionException();	
977 	}
978 
979 	/* (non-Javadoc)
980 	 * @see java.sql.ResultSet#isAfterLast()
981 	 */
982 	public boolean isAfterLast() throws SQLException {
983 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
984 		return _isAfterLast();
985 	}
986 
987 	public boolean _isAfterLast() {
988 		throw new NeedsMockDefinitionException();	
989 	}
990 
991 	/* (non-Javadoc)
992 	 * @see java.sql.ResultSet#isBeforeFirst()
993 	 */
994 	public boolean isBeforeFirst() throws SQLException {
995 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
996 		return _isBeforeFirst();
997 	}
998 
999 	public boolean _isBeforeFirst() {
1000 		throw new NeedsMockDefinitionException();	
1001 	}
1002 
1003 	/* (non-Javadoc)
1004 	 * @see java.sql.ResultSet#isFirst()
1005 	 */
1006 	public boolean isFirst() throws SQLException {
1007 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1008 		return _isFirst();
1009 	}
1010 
1011 	public boolean _isFirst() {
1012 		throw new NeedsMockDefinitionException();	
1013 	}
1014 
1015 	/* (non-Javadoc)
1016 	 * @see java.sql.ResultSet#isLast()
1017 	 */
1018 	public boolean isLast() throws SQLException {
1019 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1020 		return _isLast();
1021 	}
1022 
1023 	public boolean _isLast() {
1024 		throw new NeedsMockDefinitionException();	
1025 	}
1026 
1027 	/* (non-Javadoc)
1028 	 * @see java.sql.ResultSet#last()
1029 	 */
1030 	public boolean last() throws SQLException {
1031 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1032 		return _last();
1033 	}
1034 
1035 	public boolean _last() {
1036 		throw new NeedsMockDefinitionException();	
1037 	}
1038 
1039 	/* (non-Javadoc)
1040 	 * @see java.sql.ResultSet#moveToCurrentRow()
1041 	 */
1042 	public void moveToCurrentRow() throws SQLException {
1043 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1044 		_moveToCurrentRow();
1045 	}
1046 
1047 	public void _moveToCurrentRow() {
1048 		throw new NeedsMockDefinitionException();	
1049 	}
1050 
1051 	/* (non-Javadoc)
1052 	 * @see java.sql.ResultSet#moveToInsertRow()
1053 	 */
1054 	public void moveToInsertRow() throws SQLException {
1055 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1056 		_moveToInsertRow();
1057 	}
1058 
1059 	public void _moveToInsertRow() {
1060 		throw new NeedsMockDefinitionException();	
1061 	}
1062 
1063 	/* (non-Javadoc)
1064 	 * @see java.sql.ResultSet#next()
1065 	 */
1066 	public boolean next() throws SQLException {
1067 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1068 		boolean b = _next();
1069 		if(!b){ //all rows have been retrived pg. 62 3.0 spec
1070 			parent.complete();
1071 		}
1072 		return b;
1073 	}
1074 
1075 	/* (non-Javadoc)
1076 	 * @see java.sql.ResultSet#next()
1077 	 */
1078 	public boolean _next() throws SQLException {
1079 		throw new NeedsMockDefinitionException();
1080 	}
1081 
1082 	/* (non-Javadoc)
1083 	 * @see java.sql.ResultSet#previous()
1084 	 */
1085 	public boolean previous() throws SQLException {
1086 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1087 		return _previous();
1088 	}
1089 
1090 	public boolean _previous() {
1091 		throw new NeedsMockDefinitionException();
1092 	}
1093 
1094 	/* (non-Javadoc)
1095 	 * @see java.sql.ResultSet#refreshRow()
1096 	 */
1097 	public void refreshRow() throws SQLException {
1098 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1099 		_refreshRow();
1100 	}
1101 
1102 	public void _refreshRow() {
1103 		throw new NeedsMockDefinitionException();
1104 	}
1105 
1106 	/* (non-Javadoc)
1107 	 * @see java.sql.ResultSet#relative(int)
1108 	 */
1109 	public boolean relative(int rows) throws SQLException {
1110 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1111 		return _relative(rows);
1112 	}
1113 
1114 	public boolean _relative(int rows) {
1115 		throw new NeedsMockDefinitionException();
1116 	}
1117 
1118 	/* (non-Javadoc)
1119 	 * @see java.sql.ResultSet#rowDeleted()
1120 	 */
1121 	public boolean rowDeleted() throws SQLException {
1122 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1123 		return _rowDeleted();
1124 	}
1125 
1126 	public boolean _rowDeleted() {
1127 		throw new NeedsMockDefinitionException();
1128 	}
1129 
1130 	/* (non-Javadoc)
1131 	 * @see java.sql.ResultSet#rowInserted()
1132 	 */
1133 	public boolean rowInserted() throws SQLException {
1134 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1135 		return _rowInserted();
1136 	}
1137 
1138 	/* (non-Javadoc)
1139 	 * @see java.sql.ResultSet#rowUpdated()
1140 	 */
1141 	public boolean _rowInserted() {
1142 		throw new NeedsMockDefinitionException();
1143 	}
1144 
1145 	public boolean rowUpdated() throws SQLException {
1146 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1147 		return _rowUpdated();
1148 	}
1149 
1150 	public boolean _rowUpdated() {
1151 		throw new NeedsMockDefinitionException();
1152 	}
1153 
1154 	/* (non-Javadoc)
1155 	 * @see java.sql.ResultSet#setFetchDirection(int)
1156 	 */
1157 	public void setFetchDirection(int direction) throws SQLException {
1158 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1159 		_setFetchDirection(direction);
1160 		this.fetchDirection = direction;
1161 	}
1162 
1163 	public void _setFetchDirection(int direction) {
1164 	}
1165 
1166 	/* (non-Javadoc)
1167 	 * @see java.sql.ResultSet#setFetchSize(int)
1168 	 */
1169 	public void setFetchSize(int rows) throws SQLException {
1170 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1171 		_setFetchSize(rows);
1172 		this.fetchSize = rows;
1173 	}
1174 
1175 	public void _setFetchSize(int rows) {
1176 	}
1177 
1178 	/* (non-Javadoc)
1179 	 * @see java.sql.ResultSet#updateArray(int, java.sql.Array)
1180 	 */
1181 	public void updateArray(int columnIndex, Array x) throws SQLException {
1182 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1183 		_updateArray(columnIndex, x);
1184 	}
1185 
1186 	/* (non-Javadoc)
1187 	 * @see java.sql.ResultSet#updateArray(java.lang.String, java.sql.Array)
1188 	 */
1189 	public void _updateArray(int columnIndex, Array x) {
1190 		throw new NeedsMockDefinitionException();
1191 	}
1192 
1193 	public void updateArray(String columnName, Array x) throws SQLException {
1194 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1195 		_updateArray(columnName, x);
1196 	}
1197 
1198 	public void _updateArray(String columnName, Array x) {
1199 		throw new NeedsMockDefinitionException();
1200 	}
1201 
1202 	/* (non-Javadoc)
1203 	 * @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream, int)
1204 	 */
1205 	public void updateAsciiStream(int columnIndex, InputStream x, int length)
1206 			throws SQLException {
1207 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1208 		_updateAsciiStream(columnIndex, x, length);
1209 	}
1210 
1211 	/* (non-Javadoc)
1212 	 * @see java.sql.ResultSet#updateAsciiStream(java.lang.String, java.io.InputStream, int)
1213 	 */
1214 	public void _updateAsciiStream(int columnIndex, InputStream x, int length) {
1215 		throw new NeedsMockDefinitionException();
1216 	}
1217 
1218 	public void updateAsciiStream(String columnName, InputStream x, int length)
1219 			throws SQLException {
1220 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1221 		_updateAsciiStream(columnName, x, length);
1222 	}
1223 
1224 	/* (non-Javadoc)
1225 	 * @see java.sql.ResultSet#updateBigDecimal(int, java.math.BigDecimal)
1226 	 */
1227 	public void _updateAsciiStream(String columnName, InputStream x, int length) {
1228 		throw new NeedsMockDefinitionException();
1229 	}
1230 
1231 	public void updateBigDecimal(int columnIndex, BigDecimal x)
1232 			throws SQLException {
1233 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1234 		_updateBigDecimal(columnIndex, x);
1235 	}
1236 
1237 	/* (non-Javadoc)
1238 	 * @see java.sql.ResultSet#updateBigDecimal(java.lang.String, java.math.BigDecimal)
1239 	 */
1240 	public void _updateBigDecimal(int columnIndex, BigDecimal x) {
1241 		throw new NeedsMockDefinitionException();
1242 	}
1243 
1244 	public void updateBigDecimal(String columnName, BigDecimal x)
1245 			throws SQLException {
1246 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1247 		_updateBigDecimal(columnName, x);
1248 	}
1249 
1250 	/* (non-Javadoc)
1251 	 * @see java.sql.ResultSet#updateBinaryStream(int, java.io.InputStream, int)
1252 	 */
1253 	public void _updateBigDecimal(String columnName, BigDecimal x) {
1254 		throw new NeedsMockDefinitionException();
1255 	}
1256 
1257 	public void updateBinaryStream(int columnIndex, InputStream x, int length)
1258 			throws SQLException {
1259 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1260 		_updateBinaryStream(columnIndex, x, length);
1261 	}
1262 
1263 	/* (non-Javadoc)
1264 	 * @see java.sql.ResultSet#updateBinaryStream(java.lang.String, java.io.InputStream, int)
1265 	 */
1266 	public void _updateBinaryStream(int columnIndex, InputStream x, int length) {
1267 		throw new NeedsMockDefinitionException();
1268 	}
1269 
1270 	public void updateBinaryStream(String columnName, InputStream x, int length)
1271 			throws SQLException {
1272 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1273 		_updateBinaryStream(columnName, x, length);
1274 	}
1275 
1276 	/* (non-Javadoc)
1277 	 * @see java.sql.ResultSet#updateBlob(int, java.sql.Blob)
1278 	 */
1279 	public void _updateBinaryStream(String columnName, InputStream x,
1280 			int length) {
1281 		throw new NeedsMockDefinitionException();
1282 	}
1283 
1284 	public void updateBlob(int columnIndex, Blob x) throws SQLException {
1285 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1286 		_updateBlob(columnIndex, x);
1287 	}
1288 
1289 	/* (non-Javadoc)
1290 	 * @see java.sql.ResultSet#updateBlob(java.lang.String, java.sql.Blob)
1291 	 */
1292 	public void _updateBlob(int columnIndex, Blob x) {
1293 		throw new NeedsMockDefinitionException();
1294 	}
1295 
1296 	public void updateBlob(String columnName, Blob x) throws SQLException {
1297 		// TODO Auto-generated method stub
1298 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1299 		_updateBlob(columnName, x);
1300 	}
1301 
1302 	public void _updateBlob(String columnName, Blob x) {
1303 		throw new NeedsMockDefinitionException();
1304 	}
1305 
1306 	/* (non-Javadoc)
1307 	 * @see java.sql.ResultSet#updateBoolean(int, boolean)
1308 	 */
1309 	public void updateBoolean(int columnIndex, boolean x) throws SQLException {
1310 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1311 		_updateBoolean(columnIndex, x);
1312 	}
1313 
1314 	public void _updateBoolean(int columnIndex, boolean x) {
1315 		throw new NeedsMockDefinitionException();
1316 	}
1317 
1318 	/* (non-Javadoc)
1319 	 * @see java.sql.ResultSet#updateBoolean(java.lang.String, boolean)
1320 	 */
1321 	public void updateBoolean(String columnName, boolean x) throws SQLException {
1322 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1323 		_updateBoolean(columnName, x);
1324 	}
1325 
1326 	public void _updateBoolean(String columnName, boolean x) {
1327 		throw new NeedsMockDefinitionException();
1328 	}
1329 
1330 	/* (non-Javadoc)
1331 	 * @see java.sql.ResultSet#updateByte(int, byte)
1332 	 */
1333 	public void updateByte(int columnIndex, byte x) throws SQLException {
1334 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1335 		_updateByte(columnIndex, x);
1336 	}
1337 
1338 	public void _updateByte(int columnIndex, byte x) {
1339 		throw new NeedsMockDefinitionException();
1340 	}
1341 
1342 	/* (non-Javadoc)
1343 	 * @see java.sql.ResultSet#updateByte(java.lang.String, byte)
1344 	 */
1345 	public void updateByte(String columnName, byte x) throws SQLException {
1346 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1347 		_updateByte(columnName, x);
1348 	}
1349 
1350 	public void _updateByte(String columnName, byte x) {
1351 		throw new NeedsMockDefinitionException();
1352 	}
1353 
1354 	/* (non-Javadoc)
1355 	 * @see java.sql.ResultSet#updateBytes(int, byte[])
1356 	 */
1357 	public void updateBytes(int columnIndex, byte[] x) throws SQLException {
1358 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1359 		_updateBytes(columnIndex, x);
1360 	}
1361 
1362 	public void _updateBytes(int columnIndex, byte[] x) {
1363 		throw new NeedsMockDefinitionException();
1364 	}
1365 
1366 	/* (non-Javadoc)
1367 	 * @see java.sql.ResultSet#updateBytes(java.lang.String, byte[])
1368 	 */
1369 	public void updateBytes(String columnName, byte[] x) throws SQLException {
1370 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1371 		_updateBytes(columnName, x);
1372 	}
1373 
1374 	public void _updateBytes(String columnName, byte[] x) {
1375 		throw new NeedsMockDefinitionException();
1376 	}
1377 
1378 	/* (non-Javadoc)
1379 	 * @see java.sql.ResultSet#updateCharacterStream(int, java.io.Reader, int)
1380 	 */
1381 	public void updateCharacterStream(int columnIndex, Reader x, int length)
1382 			throws SQLException {
1383 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1384 		_updateCharacterStream(columnIndex, x, length);		
1385 	}
1386 
1387 	public void _updateCharacterStream(int columnIndex, Reader x, int length) {
1388 		throw new NeedsMockDefinitionException();
1389 	}
1390 
1391 	/* (non-Javadoc)
1392 	 * @see java.sql.ResultSet#updateCharacterStream(java.lang.String, java.io.Reader, int)
1393 	 */
1394 	public void updateCharacterStream(String columnName, Reader reader,
1395 			int length) throws SQLException {
1396 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1397 		_updateCharacterStream(columnName, reader, length);
1398 	}
1399 
1400 	public void _updateCharacterStream(String columnName, Reader reader,
1401 			int length) {
1402 		throw new NeedsMockDefinitionException();
1403 	}
1404 
1405 	/* (non-Javadoc)
1406 	 * @see java.sql.ResultSet#updateClob(int, java.sql.Clob)
1407 	 */
1408 	public void updateClob(int columnIndex, Clob x) throws SQLException {
1409 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1410 		_updateClob(columnIndex, x);
1411 	}
1412 
1413 	public void _updateClob(int columnIndex, Clob x) {
1414 		throw new NeedsMockDefinitionException();
1415 	}
1416 
1417 	/* (non-Javadoc)
1418 	 * @see java.sql.ResultSet#updateClob(java.lang.String, java.sql.Clob)
1419 	 */
1420 	public void updateClob(String columnName, Clob x) throws SQLException {
1421 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1422 		_updateClob(columnName, x);
1423 	}
1424 
1425 	public void _updateClob(String columnName, Clob x) {
1426 		throw new NeedsMockDefinitionException();
1427 	}
1428 
1429 	/* (non-Javadoc)
1430 	 * @see java.sql.ResultSet#updateDate(int, java.sql.Date)
1431 	 */
1432 	public void updateDate(int columnIndex, Date x) throws SQLException {
1433 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1434 		_updateDate(columnIndex, x);
1435 	}
1436 
1437 	public void _updateDate(int columnIndex, Date x) {
1438 		throw new NeedsMockDefinitionException();
1439 	}
1440 
1441 	/* (non-Javadoc)
1442 	 * @see java.sql.ResultSet#updateDate(java.lang.String, java.sql.Date)
1443 	 */
1444 	public void updateDate(String columnName, Date x) throws SQLException {
1445 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1446 		_updateDate(columnName, x);
1447 	}
1448 
1449 	public void _updateDate(String columnName, Date x) {
1450 		throw new NeedsMockDefinitionException();
1451 	}
1452 
1453 	/* (non-Javadoc)
1454 	 * @see java.sql.ResultSet#updateDouble(int, double)
1455 	 */
1456 	public void updateDouble(int columnIndex, double x) throws SQLException {
1457 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1458 		_updateDouble(columnIndex, x);
1459 	}
1460 
1461 	public void _updateDouble(int columnIndex, double x) {
1462 		throw new NeedsMockDefinitionException();
1463 	}
1464 
1465 	/* (non-Javadoc)
1466 	 * @see java.sql.ResultSet#updateDouble(java.lang.String, double)
1467 	 */
1468 	public void updateDouble(String columnName, double x) throws SQLException {
1469 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1470 		_updateDouble(columnName, x);
1471 	}
1472 
1473 	public void _updateDouble(String columnName, double x) {
1474 		throw new NeedsMockDefinitionException();
1475 	}
1476 
1477 	/* (non-Javadoc)
1478 	 * @see java.sql.ResultSet#updateFloat(int, float)
1479 	 */
1480 	public void updateFloat(int columnIndex, float x) throws SQLException {
1481 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1482 		_updateFloat(columnIndex, x);
1483 	}
1484 
1485 	public void _updateFloat(int columnIndex, float x) {
1486 		throw new NeedsMockDefinitionException();
1487 	}
1488 
1489 	/* (non-Javadoc)
1490 	 * @see java.sql.ResultSet#updateFloat(java.lang.String, float)
1491 	 */
1492 	public void updateFloat(String columnName, float x) throws SQLException {
1493 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1494 		_updateFloat(columnName, x);
1495 	}
1496 
1497 	public void _updateFloat(String columnName, float x) {
1498 		throw new NeedsMockDefinitionException();
1499 	}
1500 
1501 	/* (non-Javadoc)
1502 	 * @see java.sql.ResultSet#updateInt(int, int)
1503 	 */
1504 	public void updateInt(int columnIndex, int x) throws SQLException {
1505 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1506 		_updateInt(columnIndex, x);
1507 	}
1508 
1509 	public void _updateInt(int columnIndex, int x) {
1510 		throw new NeedsMockDefinitionException();
1511 	}
1512 
1513 	/* (non-Javadoc)
1514 	 * @see java.sql.ResultSet#updateInt(java.lang.String, int)
1515 	 */
1516 	public void updateInt(String columnName, int x) throws SQLException {
1517 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1518 		_updateInt(columnName, x);
1519 	}
1520 
1521 	public void _updateInt(String columnName, int x) {
1522 		throw new NeedsMockDefinitionException();
1523 	}
1524 
1525 	/* (non-Javadoc)
1526 	 * @see java.sql.ResultSet#updateLong(int, long)
1527 	 */
1528 	public void updateLong(int columnIndex, long x) throws SQLException {
1529 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1530 		_updateLong(columnIndex, x);
1531 	}
1532 
1533 	public void _updateLong(int columnIndex, long x) {
1534 		throw new NeedsMockDefinitionException();
1535 	}
1536 
1537 	/* (non-Javadoc)
1538 	 * @see java.sql.ResultSet#updateLong(java.lang.String, long)
1539 	 */
1540 	public void updateLong(String columnName, long x) throws SQLException {
1541 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1542 		_updateLong(columnName, x);
1543 	}
1544 
1545 	public void _updateLong(String columnName, long x) {
1546 		throw new NeedsMockDefinitionException();
1547 	}
1548 
1549 	/* (non-Javadoc)
1550 	 * @see java.sql.ResultSet#updateNull(int)
1551 	 */
1552 	public void updateNull(int columnIndex) throws SQLException {
1553 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1554 		_updateNull(columnIndex); 
1555 	}
1556 
1557 	public void _updateNull(int columnIndex) {
1558 		throw new NeedsMockDefinitionException();
1559 	}
1560 
1561 	/* (non-Javadoc)
1562 	 * @see java.sql.ResultSet#updateNull(java.lang.String)
1563 	 */
1564 	public void updateNull(String columnName) throws SQLException {
1565 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1566 		_updateNull(columnName);
1567 	}
1568 
1569 	public void _updateNull(String columnName) {
1570 		throw new NeedsMockDefinitionException();
1571 	}
1572 
1573 	/* (non-Javadoc)
1574 	 * @see java.sql.ResultSet#updateObject(int, java.lang.Object)
1575 	 */
1576 	public void updateObject(int columnIndex, Object x) throws SQLException {
1577 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1578 		_updateObject(columnIndex, x);
1579 	}
1580 
1581 	public void _updateObject(int columnIndex, Object x) {
1582 		throw new NeedsMockDefinitionException();
1583 	}
1584 
1585 	/* (non-Javadoc)
1586 	 * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object)
1587 	 */
1588 	public void updateObject(String columnName, Object x) throws SQLException {
1589 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1590 		_updateObject(columnName, x);
1591 	}
1592 
1593 	public void _updateObject(String columnName, Object x) {
1594 		throw new NeedsMockDefinitionException();
1595 	}
1596 
1597 	/* (non-Javadoc)
1598 	 * @see java.sql.ResultSet#updateObject(int, java.lang.Object, int)
1599 	 */
1600 	public void updateObject(int columnIndex, Object x, int scale)
1601 			throws SQLException {
1602 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1603 		_updateObject(columnIndex, x, scale);
1604 	}
1605 
1606 	public void _updateObject(int columnIndex, Object x, int scale) {
1607 		throw new NeedsMockDefinitionException();
1608 	}
1609 
1610 	/* (non-Javadoc)
1611 	 * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object, int)
1612 	 */
1613 	public void updateObject(String columnName, Object x, int scale)
1614 			throws SQLException {
1615 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1616 		_updateObject(columnName, x, scale);
1617 	}
1618 
1619 	public void _updateObject(String columnName, Object x, int scale) {
1620 		throw new NeedsMockDefinitionException();
1621 	}
1622 
1623 	/* (non-Javadoc)
1624 	 * @see java.sql.ResultSet#updateRef(int, java.sql.Ref)
1625 	 */
1626 	public void updateRef(int columnIndex, Ref x) throws SQLException {
1627 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1628 		_updateRef(columnIndex, x);
1629 	}
1630 
1631 	public void _updateRef(int columnIndex, Ref x) {
1632 		throw new NeedsMockDefinitionException();
1633 	}
1634 
1635 	/* (non-Javadoc)
1636 	 * @see java.sql.ResultSet#updateRef(java.lang.String, java.sql.Ref)
1637 	 */
1638 	public void updateRef(String columnName, Ref x) throws SQLException {
1639 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1640 		_updateRef(columnName, x);
1641 	}
1642 
1643 	public void _updateRef(String columnName, Ref x) {
1644 		throw new NeedsMockDefinitionException();
1645 	}
1646 
1647 	/* (non-Javadoc)
1648 	 * @see java.sql.ResultSet#updateRow()
1649 	 */
1650 	public void updateRow() throws SQLException {
1651 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1652 		_updateRow();
1653 	}
1654 
1655 	public void _updateRow() {
1656 		throw new NeedsMockDefinitionException();
1657 	}
1658 
1659 	/* (non-Javadoc)
1660 	 * @see java.sql.ResultSet#updateShort(int, short)
1661 	 */
1662 	public void updateShort(int columnIndex, short x) throws SQLException {
1663 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1664 		_updateShort(columnIndex, x);
1665 	}
1666 
1667 	public void _updateShort(int columnIndex, short x) {
1668 		throw new NeedsMockDefinitionException();
1669 	}
1670 
1671 	/* (non-Javadoc)
1672 	 * @see java.sql.ResultSet#updateShort(java.lang.String, short)
1673 	 */
1674 	public void updateShort(String columnName, short x) throws SQLException {
1675 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1676 		_updateShort(columnName, x);
1677 	}
1678 
1679 	public void _updateShort(String columnName, short x) {
1680 		throw new NeedsMockDefinitionException();
1681 	}
1682 
1683 	/* (non-Javadoc)
1684 	 * @see java.sql.ResultSet#updateString(int, java.lang.String)
1685 	 */
1686 	public void updateString(int columnIndex, String x) throws SQLException {
1687 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1688 		_updateString(columnIndex, x);
1689 	}
1690 
1691 	public void _updateString(int columnIndex, String x) {
1692 		throw new NeedsMockDefinitionException();
1693 	}
1694 
1695 	/* (non-Javadoc)
1696 	 * @see java.sql.ResultSet#updateString(java.lang.String, java.lang.String)
1697 	 */
1698 	public void updateString(String columnName, String x) throws SQLException {
1699 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1700 		_updateString(columnName, x);
1701 	}
1702 
1703 	public void _updateString(String columnName, String x) {
1704 		throw new NeedsMockDefinitionException();
1705 	}
1706 
1707 	/* (non-Javadoc)
1708 	 * @see java.sql.ResultSet#updateTime(int, java.sql.Time)
1709 	 */
1710 	public void updateTime(int columnIndex, Time x) throws SQLException {
1711 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1712 		_updateTime(columnIndex, x);
1713 	}
1714 
1715 	public void _updateTime(int columnIndex, Time x) {
1716 		throw new NeedsMockDefinitionException();
1717 	}
1718 
1719 	/* (non-Javadoc)
1720 	 * @see java.sql.ResultSet#updateTime(java.lang.String, java.sql.Time)
1721 	 */
1722 	public void updateTime(String columnName, Time x) throws SQLException {
1723 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1724 		_updateTime(columnName, x);
1725 	}
1726 
1727 	public void _updateTime(String columnName, Time x) {
1728 		throw new NeedsMockDefinitionException();
1729 	}
1730 
1731 	/* (non-Javadoc)
1732 	 * @see java.sql.ResultSet#updateTimestamp(int, java.sql.Timestamp)
1733 	 */
1734 	public void updateTimestamp(int columnIndex, Timestamp x)
1735 			throws SQLException {
1736 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1737 		_updateTimestamp(columnIndex, x);
1738 	}
1739 
1740 	public void _updateTimestamp(int columnIndex, Timestamp x) {
1741 		throw new NeedsMockDefinitionException();
1742 	}
1743 
1744 	/* (non-Javadoc)
1745 	 * @see java.sql.ResultSet#updateTimestamp(java.lang.String, java.sql.Timestamp)
1746 	 */
1747 	public void updateTimestamp(String columnName, Timestamp x)
1748 			throws SQLException {
1749 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1750 		_updateTimestamp(columnName, x);
1751 	}
1752 
1753 	public void _updateTimestamp(String columnName, Timestamp x) {
1754 		throw new NeedsMockDefinitionException();
1755 	}
1756 
1757 	/* (non-Javadoc)
1758 	 * @see java.sql.ResultSet#wasNull()
1759 	 */
1760 	public boolean wasNull() throws SQLException {
1761 		assertThat(mockState, AnyOf.anyOf(IsNot.not(ResultSetState.CLOSE), IsNot.not(ResultSetState.AUTOCLOSE)));
1762 		return _wasNull(); 
1763 	}
1764 
1765 	public boolean _wasNull() {
1766 		throw new NeedsMockDefinitionException();
1767 	}
1768 
1769 	protected void autoClose() {
1770 		if(mockState != ResultSetState.CLOSE){
1771 			this.mockState=ResultSetState.AUTOCLOSE;
1772 		}
1773 	}
1774 
1775 	public void assertClosed() {
1776 		assertThat(mockState, AnyOf.anyOf(Is.is(ResultSetState.CLOSE), Is.is(ResultSetState.AUTOCLOSE)));
1777 	}
1778 
1779 	public void assertExplicitClose() {
1780 		assertThat(mockState, Is.is(ResultSetState.CLOSE));
1781 	}
1782 
1783 	public void setParent(MockStatement mockStatement) {
1784 		this.parent = mockStatement;
1785 		
1786 	}
1787 	
1788 	@Override
1789 	public String toString(){
1790 		return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
1791 	}
1792 }