Top Fields Constructors Methods
org.hibernate.internal

public Class EmptyScrollableResults

extends Object
implements ScrollableResultsImplementor
Class Inheritance
All Implemented Interfaces
org.hibernate.query.spi.ScrollableResultsImplementor, org.hibernate.ScrollableResults, java.io.Closeable, java.lang.AutoCloseable
Imports
java.math.BigDecimal, .BigInteger, java.sql.Blob, .Clob, java.util.Calendar, .Date, .Locale, .TimeZone, org.hibernate.query.spi.ScrollableResultsImplementor, org.hibernate.type.Type

Author
Andrea Boriero

Field Summary

Modifier and TypeField and Description
public static final ScrollableResultsImplementor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
afterLast()

Implements org.hibernate.ScrollableResults.afterLast.

Go to a location just after the last result.
public void
beforeFirst()

Implements org.hibernate.ScrollableResults.beforeFirst.

Go to a location just before first result, This is the location of the cursor on a newly returned scrollable result.
public void
close()

Implements org.hibernate.ScrollableResults.close.

Release resources immediately.
public boolean
first()

Implements org.hibernate.ScrollableResults.first.

Go to the first result.
public Object[]
get()

Implements org.hibernate.ScrollableResults.get.

Get the current row of results.
public Object
get(int
the column, numbered from zero
i
)

Implements org.hibernate.ScrollableResults.get.

Get the ith object in the current row of results, without initializing any other results in the row.
public BigDecimal
getBigDecimal(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getBigDecimal.

Convenience method to read a BigDecimal.
public BigInteger
getBigInteger(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getBigInteger.

Convenience method to read a BigInteger.
public byte[]
getBinary(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getBinary.

Convenience method to read a binary (byte[]).
public Blob
getBlob(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getBlob.

Convenience method to read a blob.
public Boolean
getBoolean(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getBoolean.

Convenience method to read a boolean.
public Byte
getByte(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getByte.

Convenience method to read a byte.
public Calendar
getCalendar(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getCalendar.

Convenience method to read a Calendar.
public Character
getCharacter(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getCharacter.

Convenience method to read a char.
public Clob
getClob(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getClob.

Convenience method to read a clob.
public Date
getDate(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getDate.

Convenience method to read a Date.
public Double
getDouble(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getDouble.

Convenience method to read a double.
public Float
getFloat(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getFloat.

Convenience method to read a float.
public Integer
getInteger(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getInteger.

Convenience method to read an integer.
public Locale
getLocale(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getLocale.

Convenience method to read a Locale.
public Long
getLong(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getLong.

Convenience method to read a long.
public int
public int
getRowNumber()

Implements org.hibernate.ScrollableResults.getRowNumber.

Get the current position in the results.
public Short
getShort(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getShort.

Convenience method to read a short.
public String
getString(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getString.

Convenience method to read a string.
public String
getText(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getText.

Convenience method to read a String using streaming.
public TimeZone
getTimeZone(int
The column, numbered from zero
col
)

Implements org.hibernate.ScrollableResults.getTimeZone.

Convenience method to read a TimeZone.
public Type
getType(int
the column, numbered from zero
i
)

Implements org.hibernate.ScrollableResults.getType.

Get the type of the ith column of results.
public boolean
public boolean
isFirst()

Implements org.hibernate.ScrollableResults.isFirst.

Is this the first result?
public boolean
isLast()

Implements org.hibernate.ScrollableResults.isLast.

Is this the last result?
public boolean
last()

Implements org.hibernate.ScrollableResults.last.

Go to the last result.
public boolean
next()

Implements org.hibernate.ScrollableResults.next.

Advance to the next result.
public boolean
previous()

Implements org.hibernate.ScrollableResults.previous.

Retreat to the previous result.
public boolean
scroll(int
a positive (forward) or negative (backward) number of rows
positions
)

Implements org.hibernate.ScrollableResults.scroll.

Scroll the specified number of positions from the current position.
public boolean
setRowNumber(int
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.
rowNumber
)

Implements org.hibernate.ScrollableResults.setRowNumber.

Set the current position in the result set.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final ScrollableResultsImplementor INSTANCE

Constructor Detail

EmptyScrollableResultsback to summary
public EmptyScrollableResults()

Method Detail

afterLastback to summary
public void afterLast()

Implements org.hibernate.ScrollableResults.afterLast.

Doc from org.hibernate.ScrollableResults.afterLast.

Go to a location just after the last result.

Annotations
@Override
beforeFirstback to summary
public void beforeFirst()

Implements org.hibernate.ScrollableResults.beforeFirst.

Doc from org.hibernate.ScrollableResults.beforeFirst.

Go to a location just before first result, This is the location of the cursor on a newly returned scrollable result.

Annotations
@Override
closeback to summary
public void close()

Implements org.hibernate.ScrollableResults.close.

Doc from org.hibernate.ScrollableResults.close.

Release resources immediately.

Annotations
@Override
firstback to summary
public boolean first()

Implements org.hibernate.ScrollableResults.first.

Doc from org.hibernate.ScrollableResults.first.

Go to the first result.

Returns:boolean

true if there are any results

Annotations
@Override
getback to summary
public Object[] get()

Implements org.hibernate.ScrollableResults.get.

Doc from org.hibernate.ScrollableResults.get.

Get the current row of results.

Returns:Object[]

The array of results

Annotations
@Override
getback to summary
public Object get(int i)

Implements org.hibernate.ScrollableResults.get.

Doc from org.hibernate.ScrollableResults.get.

Get 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).

Parameters
i:int

the column, numbered from zero

Returns:Object

The requested result object; may return null

Annotations
@Override
getBigDecimalback to summary
public BigDecimal getBigDecimal(int col)

Implements org.hibernate.ScrollableResults.getBigDecimal.

Doc from org.hibernate.ScrollableResults.getBigDecimal.

Convenience method to read a BigDecimal.

Parameters
col:int

The column, numbered from zero

Returns:BigDecimal

The column value as a BigDecimal

Annotations
@Override
getBigIntegerback to summary
public BigInteger getBigInteger(int col)

Implements org.hibernate.ScrollableResults.getBigInteger.

Doc from org.hibernate.ScrollableResults.getBigInteger.

Convenience method to read a BigInteger.

Parameters
col:int

The column, numbered from zero

Returns:BigInteger

The column value as a BigInteger

Annotations
@Override
getBinaryback to summary
public byte[] getBinary(int col)

Implements org.hibernate.ScrollableResults.getBinary.

Doc from org.hibernate.ScrollableResults.getBinary.

Convenience method to read a binary (byte[]).

Parameters
col:int

The column, numbered from zero

Returns:byte[]

The column value as a binary (byte[])

Annotations
@Override
getBlobback to summary
public Blob getBlob(int col)

Implements org.hibernate.ScrollableResults.getBlob.

Doc from org.hibernate.ScrollableResults.getBlob.

Convenience method to read a blob.

Parameters
col:int

The column, numbered from zero

Returns:Blob

The column value as a Blob

Annotations
@Override
getBooleanback to summary
public Boolean getBoolean(int col)

Implements org.hibernate.ScrollableResults.getBoolean.

Doc from org.hibernate.ScrollableResults.getBoolean.

Convenience method to read a boolean.

Parameters
col:int

The column, numbered from zero

Returns:Boolean

The column value as a boolean

Annotations
@Override
getByteback to summary
public Byte getByte(int col)

Implements org.hibernate.ScrollableResults.getByte.

Doc from org.hibernate.ScrollableResults.getByte.

Convenience method to read a byte.

Parameters
col:int

The column, numbered from zero

Returns:Byte

The column value as a byte

Annotations
@Override
getCalendarback to summary
public Calendar getCalendar(int col)

Implements org.hibernate.ScrollableResults.getCalendar.

Doc from org.hibernate.ScrollableResults.getCalendar.

Convenience method to read a Calendar.

Parameters
col:int

The column, numbered from zero

Returns:Calendar

The column value as a Calendar

Annotations
@Override
getCharacterback to summary
public Character getCharacter(int col)

Implements org.hibernate.ScrollableResults.getCharacter.

Doc from org.hibernate.ScrollableResults.getCharacter.

Convenience method to read a char.

Parameters
col:int

The column, numbered from zero

Returns:Character

The column value as a char

Annotations
@Override
getClobback to summary
public Clob getClob(int col)

Implements org.hibernate.ScrollableResults.getClob.

Doc from org.hibernate.ScrollableResults.getClob.

Convenience method to read a clob.

Parameters
col:int

The column, numbered from zero

Returns:Clob

The column value as a Clob

Annotations
@Override
getDateback to summary
public Date getDate(int col)

Implements org.hibernate.ScrollableResults.getDate.

Doc from org.hibernate.ScrollableResults.getDate.

Convenience method to read a Date.

Parameters
col:int

The column, numbered from zero

Returns:Date

The column value as a Date

Annotations
@Override
getDoubleback to summary
public Double getDouble(int col)

Implements org.hibernate.ScrollableResults.getDouble.

Doc from org.hibernate.ScrollableResults.getDouble.

Convenience method to read a double.

Parameters
col:int

The column, numbered from zero

Returns:Double

The column value as a double

Annotations
@Override
getFloatback to summary
public Float getFloat(int col)

Implements org.hibernate.ScrollableResults.getFloat.

Doc from org.hibernate.ScrollableResults.getFloat.

Convenience method to read a float.

Parameters
col:int

The column, numbered from zero

Returns:Float

The column value as a float

Annotations
@Override
getIntegerback to summary
public Integer getInteger(int col)

Implements org.hibernate.ScrollableResults.getInteger.

Doc from org.hibernate.ScrollableResults.getInteger.

Convenience method to read an integer.

Parameters
col:int

The column, numbered from zero

Returns:Integer

The column value as an integer

Annotations
@Override
getLocaleback to summary
public Locale getLocale(int col)

Implements org.hibernate.ScrollableResults.getLocale.

Doc from org.hibernate.ScrollableResults.getLocale.

Convenience method to read a Locale.

Parameters
col:int

The column, numbered from zero

Returns:Locale

The column value as a Locale

Annotations
@Override
getLongback to summary
public Long getLong(int col)

Implements org.hibernate.ScrollableResults.getLong.

Doc from org.hibernate.ScrollableResults.getLong.

Convenience method to read a long.

Parameters
col:int

The column, numbered from zero

Returns:Long

The column value as a long

Annotations
@Override
getNumberOfTypesback to summary
public int getNumberOfTypes()

Implements org.hibernate.query.spi.ScrollableResultsImplementor.getNumberOfTypes.

Annotations
@Override
getRowNumberback to summary
public int getRowNumber()

Implements org.hibernate.ScrollableResults.getRowNumber.

Doc from org.hibernate.ScrollableResults.getRowNumber.

Get the current position in the results. The first position is number 0 (unlike JDBC).

Returns:int

The current position number, numbered from 0; -1 indicates that there is no current row

Annotations
@Override
getShortback to summary
public Short getShort(int col)

Implements org.hibernate.ScrollableResults.getShort.

Doc from org.hibernate.ScrollableResults.getShort.

Convenience method to read a short.

Parameters
col:int

The column, numbered from zero

Returns:Short

The column value as a short

Annotations
@Override
getStringback to summary
public String getString(int col)

Implements org.hibernate.ScrollableResults.getString.

Doc from org.hibernate.ScrollableResults.getString.

Convenience method to read a string.

Parameters
col:int

The column, numbered from zero

Returns:String

The column value as a String

Annotations
@Override
getTextback to summary
public String getText(int col)

Implements org.hibernate.ScrollableResults.getText.

Doc from org.hibernate.ScrollableResults.getText.

Convenience method to read a String using streaming.

Parameters
col:int

The column, numbered from zero

Returns:String

The column value as a String

Annotations
@Override
getTimeZoneback to summary
public TimeZone getTimeZone(int col)

Implements org.hibernate.ScrollableResults.getTimeZone.

Doc from org.hibernate.ScrollableResults.getTimeZone.

Convenience method to read a TimeZone.

Parameters
col:int

The column, numbered from zero

Returns:TimeZone

The column value as a TimeZone

Annotations
@Override
getTypeback to summary
public Type getType(int i)

Implements org.hibernate.ScrollableResults.getType.

Doc from org.hibernate.ScrollableResults.getType.

Get the type of the ith column of results.

Parameters
i:int

the column, numbered from zero

Returns:Type

the Hibernate type

Annotations
@Override
isClosedback to summary
public boolean isClosed()

Implements org.hibernate.query.spi.ScrollableResultsImplementor.isClosed.

Annotations
@Override
isFirstback to summary
public boolean isFirst()

Implements org.hibernate.ScrollableResults.isFirst.

Doc from org.hibernate.ScrollableResults.isFirst.

Is this the first result?

Returns:boolean

true if this is the first row of results, otherwise false

Annotations
@Override
isLastback to summary
public boolean isLast()

Implements org.hibernate.ScrollableResults.isLast.

Doc from org.hibernate.ScrollableResults.isLast.

Is this the last result?

Returns:boolean

true if this is the last row of results.

Annotations
@Override
lastback to summary
public boolean last()

Implements org.hibernate.ScrollableResults.last.

Doc from org.hibernate.ScrollableResults.last.

Go to the last result.

Returns:boolean

true if there are any results

Annotations
@Override
nextback to summary
public boolean next()

Implements org.hibernate.ScrollableResults.next.

Doc from org.hibernate.ScrollableResults.next.

Advance to the next result.

Returns:boolean

true if there is another result

Annotations
@Override
previousback to summary
public boolean previous()

Implements org.hibernate.ScrollableResults.previous.

Doc from org.hibernate.ScrollableResults.previous.

Retreat to the previous result.

Returns:boolean

true if there is a previous result

Annotations
@Override
scrollback to summary
public boolean scroll(int positions)

Implements org.hibernate.ScrollableResults.scroll.

Doc from org.hibernate.ScrollableResults.scroll.

Scroll the specified number of positions from the current position.

Parameters
positions:int

a positive (forward) or negative (backward) number of rows

Returns:boolean

true if there is a result at the new location

Annotations
@Override
setRowNumberback to summary
public boolean setRowNumber(int rowNumber)

Implements org.hibernate.ScrollableResults.setRowNumber.

Doc from org.hibernate.ScrollableResults.setRowNumber.

Set the current position in the result set. Can be numbered from the first position (positive number) or the last row (negative number).

Parameters
rowNumber:int

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.

Returns:boolean

true if there is a row at that row number

Annotations
@Override