类 FetchingScrollableResultsImpl
- java.lang.Object
-
- org.hibernate.internal.AbstractScrollableResults
-
- org.hibernate.internal.FetchingScrollableResultsImpl
-
public class FetchingScrollableResultsImpl extends AbstractScrollableResults
Implementation of ScrollableResults which can handle collection fetches.- 作者:
- Steve Ebersole
-
-
构造器概要
构造器 构造器 说明 FetchingScrollableResultsImpl(ResultSet rs, PreparedStatement ps, SharedSessionContractImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator)Constructs a FetchingScrollableResultsImpl.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.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 positions)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
-
-
-
-
构造器详细资料
-
FetchingScrollableResultsImpl
public FetchingScrollableResultsImpl(ResultSet rs, PreparedStatement ps, SharedSessionContractImplementor sess, Loader loader, QueryParameters queryParameters, Type[] types, HolderInstantiator holderInstantiator)
Constructs a FetchingScrollableResultsImpl.- 参数:
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
-
next
public boolean next()
从接口复制的说明:ScrollableResultsAdvance to the next result.- 返回:
trueif there is another result
-
previous
public boolean previous()
从接口复制的说明:ScrollableResultsRetreat to the previous result.- 返回:
trueif there is a previous result
-
scroll
public boolean scroll(int positions)
从接口复制的说明:ScrollableResultsScroll the specified number of positions from the current position.- 参数:
positions- a positive (forward) or negative (backward) number of rows- 返回:
trueif there is a result at the new location
-
last
public boolean last()
从接口复制的说明:ScrollableResultsGo to the last result.- 返回:
trueif there are any results
-
first
public boolean first()
从接口复制的说明:ScrollableResultsGo to the first result.- 返回:
trueif there are any results
-
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.
-
afterLast
public void afterLast()
从接口复制的说明:ScrollableResultsGo to a location just after the last result.
-
isFirst
public boolean isFirst()
从接口复制的说明:ScrollableResultsIs this the first result?- 返回:
trueif this is the first row of results, otherwisefalse
-
isLast
public boolean isLast()
从接口复制的说明:ScrollableResultsIs this the last result?- 返回:
trueif this is the last row of results.
-
getRowNumber
public int getRowNumber()
从接口复制的说明:ScrollableResultsGet the current position in the results. The first position is number 0 (unlike JDBC).- 返回:
- The current position number, numbered from 0; -1 indicates that there is no current row
-
setRowNumber
public boolean setRowNumber(int rowNumber)
从接口复制的说明:ScrollableResultsSet the current position in the result set. Can be numbered from the first position (positive number) or the last row (negative number).- 参数:
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
-
-