类 EmptyScrollableResults
- java.lang.Object
-
- org.hibernate.internal.EmptyScrollableResults
-
public class EmptyScrollableResults extends Object implements ScrollableResultsImplementor
- 作者:
- Andrea Boriero
-
-
字段概要
字段 修饰符和类型 字段 说明 static ScrollableResultsImplementorINSTANCE
-
构造器概要
构造器 构造器 说明 EmptyScrollableResults()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.voidclose()Release resources immediately.booleanfirst()Go to the first result.Object[]get()Get the current row of results.Objectget(int i)Get the ith object in the current row of results, without initializing any other results in the row.BigDecimalgetBigDecimal(int col)Convenience method to read a BigDecimal.BigIntegergetBigInteger(int col)Convenience method to read a BigInteger.byte[]getBinary(int col)Convenience method to read a binary (byte[]).BlobgetBlob(int col)Convenience method to read a blob.BooleangetBoolean(int col)Convenience method to read a boolean.BytegetByte(int col)Convenience method to read a byte.CalendargetCalendar(int col)Convenience method to read a Calendar.CharactergetCharacter(int col)Convenience method to read a char.ClobgetClob(int col)Convenience method to read a clob.DategetDate(int col)Convenience method to read a Date.DoublegetDouble(int col)Convenience method to read a double.FloatgetFloat(int col)Convenience method to read a float.IntegergetInteger(int col)Convenience method to read an integer.LocalegetLocale(int col)Convenience method to read a Locale.LonggetLong(int col)Convenience method to read a long.intgetNumberOfTypes()intgetRowNumber()Get the current position in the results.ShortgetShort(int col)Convenience method to read a short.StringgetString(int col)Convenience method to read a string.StringgetText(int col)Convenience method to read a String using streaming.TimeZonegetTimeZone(int col)Convenience method to read a TimeZone.TypegetType(int i)Get the type of the ith column of results.booleanisClosed()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.
-
-
-
字段详细资料
-
INSTANCE
public static final ScrollableResultsImplementor INSTANCE
-
-
方法详细资料
-
isClosed
public boolean isClosed()
- 指定者:
isClosed在接口中ScrollableResultsImplementor
-
getNumberOfTypes
public int getNumberOfTypes()
- 指定者:
getNumberOfTypes在接口中ScrollableResultsImplementor
-
close
public void close()
从接口复制的说明:ScrollableResultsRelease resources immediately.- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Closeable- 指定者:
close在接口中ScrollableResults
-
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
-
scroll
public boolean scroll(int positions)
从接口复制的说明:ScrollableResultsScroll the specified number of positions from the current position.- 指定者:
scroll在接口中ScrollableResults- 参数:
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.- 指定者:
last在接口中ScrollableResults- 返回:
trueif there are any results
-
first
public boolean first()
从接口复制的说明:ScrollableResultsGo to the first result.- 指定者:
first在接口中ScrollableResults- 返回:
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.- 指定者:
beforeFirst在接口中ScrollableResults
-
afterLast
public void afterLast()
从接口复制的说明:ScrollableResultsGo to a location just after the last result.- 指定者:
afterLast在接口中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()
从接口复制的说明: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
-
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).- 指定者:
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
-
get
public Object[] get()
从接口复制的说明:ScrollableResultsGet the current row of results.- 指定者:
get在接口中ScrollableResults- 返回:
- The array of results
-
get
public Object get(int i)
从接口复制的说明:ScrollableResultsGet the ith object in the current row of results, without initializing any other results in the row. This method may be used safely, regardless of the type of the column (ie. even for scalar results).- 指定者:
get在接口中ScrollableResults- 参数:
i- the column, numbered from zero- 返回:
- The requested result object; may return
null
-
getType
public Type getType(int i)
从接口复制的说明:ScrollableResultsGet the type of the ith column of results.- 指定者:
getType在接口中ScrollableResults- 参数:
i- the column, numbered from zero- 返回:
- the Hibernate type
-
getInteger
public Integer getInteger(int col)
从接口复制的说明:ScrollableResultsConvenience method to read an integer.- 指定者:
getInteger在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as an integer
-
getLong
public Long getLong(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a long.- 指定者:
getLong在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a long
-
getFloat
public Float getFloat(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a float.- 指定者:
getFloat在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a float
-
getBoolean
public Boolean getBoolean(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a boolean.- 指定者:
getBoolean在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a boolean
-
getDouble
public Double getDouble(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a double.- 指定者:
getDouble在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a double
-
getShort
public Short getShort(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a short.- 指定者:
getShort在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a short
-
getByte
public Byte getByte(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a byte.- 指定者:
getByte在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a byte
-
getCharacter
public Character getCharacter(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a char.- 指定者:
getCharacter在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a char
-
getBinary
public byte[] getBinary(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a binary (byte[]).- 指定者:
getBinary在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a binary (byte[])
-
getText
public String getText(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a String using streaming.- 指定者:
getText在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a String
-
getBlob
public Blob getBlob(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a blob.- 指定者:
getBlob在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a Blob
-
getClob
public Clob getClob(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a clob.- 指定者:
getClob在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a Clob
-
getString
public String getString(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a string.- 指定者:
getString在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a String
-
getBigDecimal
public BigDecimal getBigDecimal(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a BigDecimal.- 指定者:
getBigDecimal在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a BigDecimal
-
getBigInteger
public BigInteger getBigInteger(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a BigInteger.- 指定者:
getBigInteger在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a BigInteger
-
getDate
public Date getDate(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a Date.- 指定者:
getDate在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a Date
-
getLocale
public Locale getLocale(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a Locale.- 指定者:
getLocale在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a Locale
-
getCalendar
public Calendar getCalendar(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a Calendar.- 指定者:
getCalendar在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a Calendar
-
getTimeZone
public TimeZone getTimeZone(int col)
从接口复制的说明:ScrollableResultsConvenience method to read a TimeZone.- 指定者:
getTimeZone在接口中ScrollableResults- 参数:
col- The column, numbered from zero- 返回:
- The column value as a TimeZone
-
-