1 16 17 package org.springframework.jdbc.support.rowset; 18 19 import java.io.Serializable ; 20 import java.math.BigDecimal ; 21 import java.sql.Date ; 22 import java.sql.Time ; 23 import java.sql.Timestamp ; 24 import java.util.Calendar ; 25 import java.util.Map ; 26 27 import org.springframework.jdbc.InvalidResultSetAccessException; 28 29 51 public interface SqlRowSet extends Serializable { 52 53 59 SqlRowSetMetaData getMetaData(); 60 61 67 int findColumn(String columnName) throws InvalidResultSetAccessException; 68 69 70 72 79 BigDecimal getBigDecimal(int columnIndex) throws InvalidResultSetAccessException; 80 81 88 BigDecimal getBigDecimal(String columnName) throws InvalidResultSetAccessException; 89 90 97 boolean getBoolean(int columnIndex) throws InvalidResultSetAccessException; 98 99 106 boolean getBoolean(String columnName) throws InvalidResultSetAccessException; 107 108 115 byte getByte(int columnIndex) throws InvalidResultSetAccessException; 116 117 124 byte getByte(String columnName) throws InvalidResultSetAccessException; 125 126 134 Date getDate(int columnIndex, Calendar cal) throws InvalidResultSetAccessException; 135 136 143 Date getDate(int columnIndex) throws InvalidResultSetAccessException; 144 145 153 Date getDate(String columnName, Calendar cal) throws InvalidResultSetAccessException; 154 155 162 Date getDate(String columnName) throws InvalidResultSetAccessException; 163 164 171 double getDouble(int columnIndex) throws InvalidResultSetAccessException; 172 173 180 double getDouble(String columnName) throws InvalidResultSetAccessException; 181 182 189 float getFloat(int columnIndex) throws InvalidResultSetAccessException; 190 191 198 float getFloat(String columnName) throws InvalidResultSetAccessException; 199 200 207 int getInt(int columnIndex) throws InvalidResultSetAccessException; 208 209 216 int getInt(String columnName) throws InvalidResultSetAccessException; 217 218 225 long getLong(int columnIndex) throws InvalidResultSetAccessException; 226 227 234 long getLong(String columnName) throws InvalidResultSetAccessException; 235 236 244 Object getObject(int columnIndex, Map map) throws InvalidResultSetAccessException; 245 246 253 Object getObject(int columnIndex) throws InvalidResultSetAccessException; 254 255 263 Object getObject(String columnName, Map map) throws InvalidResultSetAccessException; 264 265 272 Object getObject(String columnName) throws InvalidResultSetAccessException; 273 274 281 short getShort(int columnIndex) throws InvalidResultSetAccessException; 282 283 290 short getShort(String columnName) throws InvalidResultSetAccessException; 291 292 299 String getString(int columnIndex) throws InvalidResultSetAccessException; 300 301 308 String getString(String columnName) throws InvalidResultSetAccessException; 309 310 318 Time getTime(int columnIndex, Calendar cal) throws InvalidResultSetAccessException; 319 320 327 Time getTime(int columnIndex) throws InvalidResultSetAccessException; 328 329 337 Time getTime(String columnName, Calendar cal) throws InvalidResultSetAccessException; 338 339 346 Time getTime(String columnName) throws InvalidResultSetAccessException; 347 348 356 Timestamp getTimestamp(int columnIndex, Calendar cal) throws InvalidResultSetAccessException; 357 358 365 Timestamp getTimestamp(int columnIndex) throws InvalidResultSetAccessException; 366 367 375 Timestamp getTimestamp(String columnName, Calendar cal) throws InvalidResultSetAccessException; 376 377 384 Timestamp getTimestamp(String columnName) throws InvalidResultSetAccessException; 385 386 387 389 395 boolean absolute(int row) throws InvalidResultSetAccessException; 396 397 401 void afterLast() throws InvalidResultSetAccessException; 402 403 407 void beforeFirst() throws InvalidResultSetAccessException; 408 409 414 boolean first() throws InvalidResultSetAccessException; 415 416 421 int getRow() throws InvalidResultSetAccessException; 422 423 428 boolean isAfterLast() throws InvalidResultSetAccessException; 429 430 435 boolean isBeforeFirst() throws InvalidResultSetAccessException; 436 437 442 boolean isFirst() throws InvalidResultSetAccessException; 443 444 449 boolean isLast() throws InvalidResultSetAccessException; 450 451 456 boolean last() throws InvalidResultSetAccessException; 457 458 463 boolean next() throws InvalidResultSetAccessException; 464 465 470 boolean previous() throws InvalidResultSetAccessException; 471 472 477 boolean relative(int rows) throws InvalidResultSetAccessException; 478 479 487 boolean wasNull() throws InvalidResultSetAccessException; 488 489 } 490 | Popular Tags |