net.hasor.jdbc.core.rowset
类 ResultSetWrappingSqlRowSet

java.lang.Object
  继承者 net.hasor.jdbc.core.rowset.ResultSetWrappingSqlRowSet
所有已实现的接口:
Serializable, SqlRowSet

public class ResultSetWrappingSqlRowSet
extends Object
implements SqlRowSet

Default implementation of Spring's SqlRowSet interface.

This implementation wraps a javax.sql.ResultSet, catching any SQLExceptions and translating them to the appropriate Spring InvalidDataAccessException.

The passed-in ResultSets should already be disconnected if the SqlRowSet is supposed to be usable in a disconnected fashion. This means that you will usually pass in a javax.sql.rowset.CachedRowSet, which implements the ResultSet interface.

Note: This class implements the java.io.Serializable marker interface through the SqlRowSet interface, but is only actually serializable if the disconnected ResultSet/RowSet contained in it is serializable. Most CachedRowSet implementations are actually serializable.

从以下版本开始:
1.2
作者:
Thomas Risberg, Juergen Hoeller
另请参见:
ResultSet, CachedRowSet, 序列化表格

构造方法摘要
ResultSetWrappingSqlRowSet(ResultSet resultSet)
          Create a new ResultSetWrappingSqlRowSet for the given ResultSet.
 
方法摘要
 boolean absolute(int row)
          Moves the cursor to the given row number in the RowSet, just after the last row.
 void afterLast()
          Moves the cursor to the end of this RowSet.
 void beforeFirst()
          Moves the cursor to the front of this RowSet, just before the first row.
 int findColumn(String columnName)
          Maps the given column name to its column index.
 boolean first()
          Moves the cursor to the first row of this RowSet.
 BigDecimal getBigDecimal(int columnIndex)
          Retrieves the value of the indicated column in the current row as an BigDecimal object.
 BigDecimal getBigDecimal(String columnName)
          Retrieves the value of the indicated column in the current row as an BigDecimal object.
 boolean getBoolean(int columnIndex)
          Retrieves the value of the indicated column in the current row as a boolean.
 boolean getBoolean(String columnName)
          Retrieves the value of the indicated column in the current row as a boolean.
 byte getByte(int columnIndex)
          Retrieves the value of the indicated column in the current row as a byte.
 byte getByte(String columnName)
          Retrieves the value of the indicated column in the current row as a byte.
 Date getDate(int columnIndex)
          Retrieves the value of the indicated column in the current row as a Date object.
 Date getDate(int columnIndex, Calendar cal)
          Retrieves the value of the indicated column in the current row as a Date object.
 Date getDate(String columnName)
          Retrieves the value of the indicated column in the current row as a Date object.
 Date getDate(String columnName, Calendar cal)
          Retrieves the value of the indicated column in the current row as a Date object.
 double getDouble(int columnIndex)
          Retrieves the value of the indicated column in the current row as a Double object.
 double getDouble(String columnName)
          Retrieves the value of the indicated column in the current row as a Double object.
 float getFloat(int columnIndex)
          Retrieves the value of the indicated column in the current row as a float.
 float getFloat(String columnName)
          Retrieves the value of the indicated column in the current row as a float.
 int getInt(int columnIndex)
          Retrieves the value of the indicated column in the current row as an int.
 int getInt(String columnName)
          Retrieves the value of the indicated column in the current row as an int.
 long getLong(int columnIndex)
          Retrieves the value of the indicated column in the current row as a long.
 long getLong(String columnName)
          Retrieves the value of the indicated column in the current row as a long.
 SqlRowSetMetaData getMetaData()
          Retrieves the meta data (number, types and properties for the columns) of this row set.
 Object getObject(int columnIndex)
          Retrieves the value of the indicated column in the current row as an Object.
 Object getObject(int i, Map map)
          Retrieves the value of the indicated column in the current row as an Object.
 Object getObject(String columnName)
          Retrieves the value of the indicated column in the current row as an Object.
 Object getObject(String columnName, Map map)
          Retrieves the value of the indicated column in the current row as an Object.
 ResultSet getResultSet()
          Return the underlying ResultSet (usually a javax.sql.rowset.CachedRowSet).
 int getRow()
          Retrieves the current row number.
 short getShort(int columnIndex)
          Retrieves the value of the indicated column in the current row as a short.
 short getShort(String columnName)
          Retrieves the value of the indicated column in the current row as a short.
 String getString(int columnIndex)
          Retrieves the value of the indicated column in the current row as a String.
 String getString(String columnName)
          Retrieves the value of the indicated column in the current row as a String.
 Time getTime(int columnIndex)
          Retrieves the value of the indicated column in the current row as a Time object.
 Time getTime(int columnIndex, Calendar cal)
          Retrieves the value of the indicated column in the current row as a Time object.
 Time getTime(String columnName)
          Retrieves the value of the indicated column in the current row as a Time object.
 Time getTime(String columnName, Calendar cal)
          Retrieves the value of the indicated column in the current row as a Time object.
 Timestamp getTimestamp(int columnIndex)
          Retrieves the value of the indicated column in the current row as a Timestamp object.
 Timestamp getTimestamp(int columnIndex, Calendar cal)
          Retrieves the value of the indicated column in the current row as a Timestamp object.
 Timestamp getTimestamp(String columnName)
          Retrieves the value of the indicated column in the current row as a Timestamp object.
 Timestamp getTimestamp(String columnName, Calendar cal)
          Retrieves the value of the indicated column in the current row as a Timestamp object.
 boolean isAfterLast()
          Retrieves whether the cursor is after the last row of this RowSet.
 boolean isBeforeFirst()
          Retrieves whether the cursor is after the first row of this RowSet.
 boolean isFirst()
          Retrieves whether the cursor is on the first row of this RowSet.
 boolean isLast()
          Retrieves whether the cursor is on the last row of this RowSet.
 boolean last()
          Moves the cursor to the last row of this RowSet.
 boolean next()
          Moves the cursor to the next row.
 boolean previous()
          Moves the cursor to the previous row.
 boolean relative(int rows)
          Moves the cursor a relative number f rows, either positive or negative.
 boolean wasNull()
          Reports whether the last column read had a value of SQL NULL.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ResultSetWrappingSqlRowSet

public ResultSetWrappingSqlRowSet(ResultSet resultSet)
                           throws InvalidDataAccessException
Create a new ResultSetWrappingSqlRowSet for the given ResultSet.

参数:
resultSet - a disconnected ResultSet to wrap (usually a javax.sql.rowset.CachedRowSet)
抛出:
InvalidDataAccessException - if extracting the ResultSetMetaData failed
另请参见:
CachedRowSet, ResultSet.getMetaData(), ResultSetWrappingSqlRowSetMetaData
方法详细信息

getResultSet

public final ResultSet getResultSet()
Return the underlying ResultSet (usually a javax.sql.rowset.CachedRowSet).

另请参见:
CachedRowSet

getMetaData

public final SqlRowSetMetaData getMetaData()
从接口 SqlRowSet 复制的描述
Retrieves the meta data (number, types and properties for the columns) of this row set.

指定者:
接口 SqlRowSet 中的 getMetaData
返回:
a corresponding SqlRowSetMetaData instance
另请参见:
ResultSetMetaData.getCatalogName(int)

findColumn

public int findColumn(String columnName)
               throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Maps the given column name to its column index.

指定者:
接口 SqlRowSet 中的 findColumn
参数:
columnName - the name of the column
返回:
the column index for the given column name
抛出:
InvalidDataAccessException
另请参见:
ResultSet.findColumn(String)

getBigDecimal

public BigDecimal getBigDecimal(int columnIndex)
                         throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as an BigDecimal object.

指定者:
接口 SqlRowSet 中的 getBigDecimal
参数:
columnIndex - the column index
返回:
an BigDecimal object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getBigDecimal(int)

getBigDecimal

public BigDecimal getBigDecimal(String columnName)
                         throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as an BigDecimal object.

指定者:
接口 SqlRowSet 中的 getBigDecimal
参数:
columnName - the column name
返回:
an BigDecimal object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getBigDecimal(String)

getBoolean

public boolean getBoolean(int columnIndex)
                   throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a boolean.

指定者:
接口 SqlRowSet 中的 getBoolean
参数:
columnIndex - the column index
返回:
a boolean representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getBoolean(int)

getBoolean

public boolean getBoolean(String columnName)
                   throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a boolean.

指定者:
接口 SqlRowSet 中的 getBoolean
参数:
columnName - the column name
返回:
a boolean representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getBoolean(String)

getByte

public byte getByte(int columnIndex)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a byte.

指定者:
接口 SqlRowSet 中的 getByte
参数:
columnIndex - the column index
返回:
a byte representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getByte(int)

getByte

public byte getByte(String columnName)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a byte.

指定者:
接口 SqlRowSet 中的 getByte
参数:
columnName - the column name
返回:
a byte representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getByte(String)

getDate

public Date getDate(int columnIndex,
                    Calendar cal)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Date object.

指定者:
接口 SqlRowSet 中的 getDate
参数:
columnIndex - the column index
cal - the Calendar to use in constructing the Date
返回:
a Date object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getDate(int, java.util.Calendar)

getDate

public Date getDate(int columnIndex)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Date object.

指定者:
接口 SqlRowSet 中的 getDate
参数:
columnIndex - the column index
返回:
a Date object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getDate(int)

getDate

public Date getDate(String columnName,
                    Calendar cal)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Date object.

指定者:
接口 SqlRowSet 中的 getDate
参数:
columnName - the column name
cal - the Calendar to use in constructing the Date
返回:
a Date object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getDate(String, java.util.Calendar)

getDate

public Date getDate(String columnName)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Date object.

指定者:
接口 SqlRowSet 中的 getDate
参数:
columnName - the column name
返回:
a Date object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getDate(String)

getDouble

public double getDouble(int columnIndex)
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Double object.

指定者:
接口 SqlRowSet 中的 getDouble
参数:
columnIndex - the column index
返回:
a Double object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getDouble(int)

getDouble

public double getDouble(String columnName)
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Double object.

指定者:
接口 SqlRowSet 中的 getDouble
参数:
columnName - the column name
返回:
a Double object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getDouble(String)

getFloat

public float getFloat(int columnIndex)
               throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a float.

指定者:
接口 SqlRowSet 中的 getFloat
参数:
columnIndex - the column index
返回:
a float representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getFloat(int)

getFloat

public float getFloat(String columnName)
               throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a float.

指定者:
接口 SqlRowSet 中的 getFloat
参数:
columnName - the column name
返回:
a float representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getFloat(String)

getInt

public int getInt(int columnIndex)
           throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as an int.

指定者:
接口 SqlRowSet 中的 getInt
参数:
columnIndex - the column index
返回:
an int representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getInt(int)

getInt

public int getInt(String columnName)
           throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as an int.

指定者:
接口 SqlRowSet 中的 getInt
参数:
columnName - the column name
返回:
an int representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getInt(String)

getLong

public long getLong(int columnIndex)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a long.

指定者:
接口 SqlRowSet 中的 getLong
参数:
columnIndex - the column index
返回:
a long representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getLong(int)

getLong

public long getLong(String columnName)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a long.

指定者:
接口 SqlRowSet 中的 getLong
参数:
columnName - the column name
返回:
a long representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getLong(String)

getObject

public Object getObject(int i,
                        Map map)
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as an Object.

指定者:
接口 SqlRowSet 中的 getObject
参数:
i - the column index
map - a Map object containing the mapping from SQL types to Java types
返回:
a Object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getObject(int, java.util.Map)

getObject

public Object getObject(int columnIndex)
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as an Object.

指定者:
接口 SqlRowSet 中的 getObject
参数:
columnIndex - the column index
返回:
a Object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getObject(int)

getObject

public Object getObject(String columnName,
                        Map map)
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as an Object.

指定者:
接口 SqlRowSet 中的 getObject
参数:
columnName - the column name
map - a Map object containing the mapping from SQL types to Java types
返回:
a Object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getObject(String, java.util.Map)

getObject

public Object getObject(String columnName)
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as an Object.

指定者:
接口 SqlRowSet 中的 getObject
参数:
columnName - the column name
返回:
a Object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getObject(String)

getShort

public short getShort(int columnIndex)
               throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a short.

指定者:
接口 SqlRowSet 中的 getShort
参数:
columnIndex - the column index
返回:
a short representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getShort(int)

getShort

public short getShort(String columnName)
               throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a short.

指定者:
接口 SqlRowSet 中的 getShort
参数:
columnName - the column name
返回:
a short representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getShort(String)

getString

public String getString(int columnIndex)
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a String.

指定者:
接口 SqlRowSet 中的 getString
参数:
columnIndex - the column index
返回:
a String representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getString(int)

getString

public String getString(String columnName)
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a String.

指定者:
接口 SqlRowSet 中的 getString
参数:
columnName - the column name
返回:
a String representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getString(String)

getTime

public Time getTime(int columnIndex,
                    Calendar cal)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Time object.

指定者:
接口 SqlRowSet 中的 getTime
参数:
columnIndex - the column index
cal - the Calendar to use in constructing the Date
返回:
a Time object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getTime(int, java.util.Calendar)

getTime

public Time getTime(int columnIndex)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Time object.

指定者:
接口 SqlRowSet 中的 getTime
参数:
columnIndex - the column index
返回:
a Time object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getTime(int)

getTime

public Time getTime(String columnName,
                    Calendar cal)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Time object.

指定者:
接口 SqlRowSet 中的 getTime
参数:
columnName - the column name
cal - the Calendar to use in constructing the Date
返回:
a Time object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getTime(String, java.util.Calendar)

getTime

public Time getTime(String columnName)
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Time object.

指定者:
接口 SqlRowSet 中的 getTime
参数:
columnName - the column name
返回:
a Time object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getTime(String)

getTimestamp

public Timestamp getTimestamp(int columnIndex,
                              Calendar cal)
                       throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Timestamp object.

指定者:
接口 SqlRowSet 中的 getTimestamp
参数:
columnIndex - the column index
cal - the Calendar to use in constructing the Date
返回:
a Timestamp object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getTimestamp(int, java.util.Calendar)

getTimestamp

public Timestamp getTimestamp(int columnIndex)
                       throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Timestamp object.

指定者:
接口 SqlRowSet 中的 getTimestamp
参数:
columnIndex - the column index
返回:
a Timestamp object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getTimestamp(int)

getTimestamp

public Timestamp getTimestamp(String columnName,
                              Calendar cal)
                       throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Timestamp object.

指定者:
接口 SqlRowSet 中的 getTimestamp
参数:
columnName - the column name
cal - the Calendar to use in constructing the Date
返回:
a Timestamp object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getTimestamp(String, java.util.Calendar)

getTimestamp

public Timestamp getTimestamp(String columnName)
                       throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the value of the indicated column in the current row as a Timestamp object.

指定者:
接口 SqlRowSet 中的 getTimestamp
参数:
columnName - the column name
返回:
a Timestamp object representing the column value
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getTimestamp(String)

absolute

public boolean absolute(int row)
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Moves the cursor to the given row number in the RowSet, just after the last row.

指定者:
接口 SqlRowSet 中的 absolute
参数:
row - the number of the row where the cursor should move
返回:
true if the cursor is on the RowSet, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSet.absolute(int)

afterLast

public void afterLast()
               throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Moves the cursor to the end of this RowSet.

指定者:
接口 SqlRowSet 中的 afterLast
抛出:
InvalidDataAccessException
另请参见:
ResultSet.afterLast()

beforeFirst

public void beforeFirst()
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Moves the cursor to the front of this RowSet, just before the first row.

指定者:
接口 SqlRowSet 中的 beforeFirst
抛出:
InvalidDataAccessException
另请参见:
ResultSet.beforeFirst()

first

public boolean first()
              throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Moves the cursor to the first row of this RowSet.

指定者:
接口 SqlRowSet 中的 first
返回:
true if the cursor is on a valid row, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSet.first()

getRow

public int getRow()
           throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves the current row number.

指定者:
接口 SqlRowSet 中的 getRow
返回:
the current row number
抛出:
InvalidDataAccessException
另请参见:
ResultSet.getRow()

isAfterLast

public boolean isAfterLast()
                    throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves whether the cursor is after the last row of this RowSet.

指定者:
接口 SqlRowSet 中的 isAfterLast
返回:
true if the cursor is after the last row, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSet.isAfterLast()

isBeforeFirst

public boolean isBeforeFirst()
                      throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves whether the cursor is after the first row of this RowSet.

指定者:
接口 SqlRowSet 中的 isBeforeFirst
返回:
true if the cursor is after the first row, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSet.isBeforeFirst()

isFirst

public boolean isFirst()
                throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves whether the cursor is on the first row of this RowSet.

指定者:
接口 SqlRowSet 中的 isFirst
返回:
true if the cursor is after the first row, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSet.isFirst()

isLast

public boolean isLast()
               throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Retrieves whether the cursor is on the last row of this RowSet.

指定者:
接口 SqlRowSet 中的 isLast
返回:
true if the cursor is after the last row, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSet.isLast()

last

public boolean last()
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Moves the cursor to the last row of this RowSet.

指定者:
接口 SqlRowSet 中的 last
返回:
true if the cursor is on a valid row, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSet.last()

next

public boolean next()
             throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Moves the cursor to the next row.

指定者:
接口 SqlRowSet 中的 next
返回:
true if the new row is valid, false if there are no more rows
抛出:
InvalidDataAccessException
另请参见:
ResultSet.next()

previous

public boolean previous()
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Moves the cursor to the previous row.

指定者:
接口 SqlRowSet 中的 previous
返回:
true if the new row is valid, false if it is off the RowSet
抛出:
InvalidDataAccessException
另请参见:
ResultSet.previous()

relative

public boolean relative(int rows)
                 throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Moves the cursor a relative number f rows, either positive or negative.

指定者:
接口 SqlRowSet 中的 relative
返回:
true if the cursor is on a row, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSet.relative(int)

wasNull

public boolean wasNull()
                throws InvalidDataAccessException
从接口 SqlRowSet 复制的描述
Reports whether the last column read had a value of SQL NULL. Note that you must first call one of the getter methods and then call the wasNull method.

指定者:
接口 SqlRowSet 中的 wasNull
返回:
true if the most recent coumn retrieved was SQL NULL, false otherwise
抛出:
InvalidDataAccessException
另请参见:
ResultSet.wasNull()


Copyright © 2013-2014. All Rights Reserved.