|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.query.hibernate.impl.ScrollableResultsImpl
public class ScrollableResultsImpl
Implements scrollable and paginated resultsets. Contrary to Query#iterate() or Query#list(), this implementation is exposed to returned null objects (if the index is out of date).
The following methods that change the value of 'current' will check and set its value to either 'afterLast' or 'beforeFirst' depending on direction. This is to prevent rogue values from setting it outside the boundaries of the results.
Query| Constructor Summary | |
|---|---|
ScrollableResultsImpl(int fetchSize,
DocumentExtractor extractor,
Loader loader,
org.hibernate.engine.spi.SessionImplementor sessionImplementor)
|
|
| Method Summary | |
|---|---|
void |
afterLast()
|
void |
beforeFirst()
|
void |
close()
|
boolean |
first()
|
Object[] |
get()
|
Object |
get(int i)
This method is not supported on Lucene based queries |
BigDecimal |
getBigDecimal(int col)
This method is not supported on Lucene based queries |
BigInteger |
getBigInteger(int col)
This method is not supported on Lucene based queries |
byte[] |
getBinary(int col)
This method is not supported on Lucene based queries |
Blob |
getBlob(int col)
This method is not supported on Lucene based queries |
Boolean |
getBoolean(int col)
This method is not supported on Lucene based queries |
Byte |
getByte(int col)
This method is not supported on Lucene based queries |
Calendar |
getCalendar(int col)
This method is not supported on Lucene based queries |
Character |
getCharacter(int col)
This method is not supported on Lucene based queries |
Clob |
getClob(int col)
This method is not supported on Lucene based queries |
Date |
getDate(int col)
This method is not supported on Lucene based queries |
Double |
getDouble(int col)
This method is not supported on Lucene based queries |
Float |
getFloat(int col)
This method is not supported on Lucene based queries |
Integer |
getInteger(int col)
This method is not supported on Lucene based queries |
Locale |
getLocale(int col)
This method is not supported on Lucene based queries |
Long |
getLong(int col)
This method is not supported on Lucene based queries |
int |
getRowNumber()
|
Short |
getShort(int col)
This method is not supported on Lucene based queries |
String |
getString(int col)
This method is not supported on Lucene based queries |
String |
getText(int col)
This method is not supported on Lucene based queries |
TimeZone |
getTimeZone(int col)
This method is not supported on Lucene based queries |
org.hibernate.type.Type |
getType(int i)
This method is not supported on Lucene based queries |
boolean |
isFirst()
|
boolean |
isLast()
|
boolean |
last()
|
boolean |
next()
|
boolean |
previous()
|
boolean |
scroll(int i)
|
boolean |
setRowNumber(int rowNumber)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScrollableResultsImpl(int fetchSize,
DocumentExtractor extractor,
Loader loader,
org.hibernate.engine.spi.SessionImplementor sessionImplementor)
| Method Detail |
|---|
public boolean next()
next in interface org.hibernate.ScrollableResultspublic boolean previous()
previous in interface org.hibernate.ScrollableResultspublic boolean scroll(int i)
scroll in interface org.hibernate.ScrollableResultspublic boolean last()
last in interface org.hibernate.ScrollableResultspublic boolean first()
first in interface org.hibernate.ScrollableResultspublic void beforeFirst()
beforeFirst in interface org.hibernate.ScrollableResultspublic void afterLast()
afterLast in interface org.hibernate.ScrollableResultspublic boolean isFirst()
isFirst in interface org.hibernate.ScrollableResultspublic boolean isLast()
isLast in interface org.hibernate.ScrollableResultspublic void close()
close in interface org.hibernate.ScrollableResults
public Object[] get()
throws org.hibernate.HibernateException
get in interface org.hibernate.ScrollableResultsorg.hibernate.HibernateExceptionpublic Object get(int i)
get in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic org.hibernate.type.Type getType(int i)
getType in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Integer getInteger(int col)
getInteger in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Long getLong(int col)
getLong in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Float getFloat(int col)
getFloat in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Boolean getBoolean(int col)
getBoolean in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Double getDouble(int col)
getDouble in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Short getShort(int col)
getShort in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Byte getByte(int col)
getByte in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Character getCharacter(int col)
getCharacter in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic byte[] getBinary(int col)
getBinary in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic String getText(int col)
getText in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Blob getBlob(int col)
getBlob in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Clob getClob(int col)
getClob in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic String getString(int col)
getString in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic BigDecimal getBigDecimal(int col)
getBigDecimal in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic BigInteger getBigInteger(int col)
getBigInteger in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Date getDate(int col)
getDate in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Locale getLocale(int col)
getLocale in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic Calendar getCalendar(int col)
getCalendar in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic TimeZone getTimeZone(int col)
getTimeZone in interface org.hibernate.ScrollableResultsUnsupportedOperationException - always thrownpublic int getRowNumber()
getRowNumber in interface org.hibernate.ScrollableResultspublic boolean setRowNumber(int rowNumber)
setRowNumber in interface org.hibernate.ScrollableResults
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||