类 ScrollableResultsImpl
- java.lang.Object
-
- org.hibernate.internal.AbstractScrollableResults
-
- org.hibernate.internal.ScrollableResultsImpl
-
public class ScrollableResultsImpl extends AbstractScrollableResults implements ScrollableResults
Standard ScrollableResults implementation.- 作者:
- Gavin King
-
-
构造器概要
构造器 构造器 说明 ScrollableResultsImpl(ResultSet rs, PreparedStatement ps, SharedSessionContractImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator)Constructs a ScrollableResultsImpl using the specified information.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterLast()Go to a location just after the last result.voidbeforeFirst()Go to a location just before first result, This is the location of the cursor on a newly returned scrollable result.protected JDBCExceptionconvert(SQLException sqle, String message)booleanfirst()Go to the first result.protected Object[]getCurrentRow()intgetRowNumber()Get the current position in the results.booleanisFirst()Is this the first result?booleanisLast()Is this the last result?booleanlast()Go to the last result.booleannext()Advance to the next result.booleanprevious()Retreat to the previous result.booleanscroll(int i)Scroll the specified number of positions from the current position.booleansetRowNumber(int rowNumber)Set the current position in the result set.-
从类继承的方法 org.hibernate.internal.AbstractScrollableResults
afterScrollOperation, close, get, get, getBigDecimal, getBigInteger, getBinary, getBlob, getBoolean, getByte, getCalendar, getCharacter, getClob, getDate, getDouble, getFinal, getFloat, getHolderInstantiator, getInteger, getLoader, getLocale, getLong, getNonFinal, getNumberOfTypes, getPs, getQueryParameters, getResultSet, getSession, getShort, getString, getText, getTimeZone, getType, getTypes, isClosed
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 org.hibernate.ScrollableResults
close, get, get, getBigDecimal, getBigInteger, getBinary, getBlob, getBoolean, getByte, getCalendar, getCharacter, getClob, getDate, getDouble, getFloat, getInteger, getLocale, getLong, getShort, getString, getText, getTimeZone, getType
-
-
-
-
构造器详细资料
-
ScrollableResultsImpl
public ScrollableResultsImpl(ResultSet rs, PreparedStatement ps, SharedSessionContractImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator)
Constructs a ScrollableResultsImpl using the specified information.- 参数:
rs- The scrollable result setps- The prepared statement used to obtain the result setsess- The originating sessionloader- The loaderqueryParameters- query parameterstypes- The result typesholderInstantiator- Ugh
-
-
方法详细资料
-
getCurrentRow
protected Object[] getCurrentRow()
- 指定者:
getCurrentRow在类中AbstractScrollableResults
-
scroll
public boolean scroll(int i)
从接口复制的说明:ScrollableResultsScroll the specified number of positions from the current position.- 指定者:
scroll在接口中ScrollableResults- 参数:
i- a positive (forward) or negative (backward) number of rows- 返回:
trueif there is a result at the new location
-
convert
protected JDBCException convert(SQLException sqle, String message)
-
first
public boolean first()
从接口复制的说明:ScrollableResultsGo to the first result.- 指定者:
first在接口中ScrollableResults- 返回:
trueif there are any results
-
last
public boolean last()
从接口复制的说明:ScrollableResultsGo to the last result.- 指定者:
last在接口中ScrollableResults- 返回:
trueif there are any results
-
next
public boolean next()
从接口复制的说明:ScrollableResultsAdvance to the next result.- 指定者:
next在接口中ScrollableResults- 返回:
trueif there is another result
-
previous
public boolean previous()
从接口复制的说明:ScrollableResultsRetreat to the previous result.- 指定者:
previous在接口中ScrollableResults- 返回:
trueif there is a previous result
-
afterLast
public void afterLast()
从接口复制的说明:ScrollableResultsGo to a location just after the last result.- 指定者:
afterLast在接口中ScrollableResults
-
beforeFirst
public void beforeFirst()
从接口复制的说明:ScrollableResultsGo to a location just before first result, This is the location of the cursor on a newly returned scrollable result.- 指定者:
beforeFirst在接口中ScrollableResults
-
isFirst
public boolean isFirst()
从接口复制的说明:ScrollableResultsIs this the first result?- 指定者:
isFirst在接口中ScrollableResults- 返回:
trueif this is the first row of results, otherwisefalse
-
isLast
public boolean isLast()
从接口复制的说明:ScrollableResultsIs this the last result?- 指定者:
isLast在接口中ScrollableResults- 返回:
trueif this is the last row of results.
-
getRowNumber
public int getRowNumber() throws HibernateException从接口复制的说明:ScrollableResultsGet the current position in the results. The first position is number 0 (unlike JDBC).- 指定者:
getRowNumber在接口中ScrollableResults- 返回:
- The current position number, numbered from 0; -1 indicates that there is no current row
- 抛出:
HibernateException
-
setRowNumber
public boolean setRowNumber(int rowNumber) throws HibernateException从接口复制的说明:ScrollableResultsSet the current position in the result set. Can be numbered from the first position (positive number) or the last row (negative number).- 指定者:
setRowNumber在接口中ScrollableResults- 参数:
rowNumber- the row number. A positive number indicates a value numbered from the first row; a negative number indicates a value numbered from the last row.- 返回:
- true if there is a row at that row number
- 抛出:
HibernateException
-
-