|
||||||||||
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,
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 |
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, SessionImplementor sessionImplementor)
Method Detail |
---|
public boolean next()
next
in interface ScrollableResults
public boolean previous()
previous
in interface ScrollableResults
public boolean scroll(int i)
scroll
in interface ScrollableResults
public boolean last()
last
in interface ScrollableResults
public boolean first()
first
in interface ScrollableResults
public void beforeFirst()
beforeFirst
in interface ScrollableResults
public void afterLast()
afterLast
in interface ScrollableResults
public boolean isFirst()
isFirst
in interface ScrollableResults
public boolean isLast()
isLast
in interface ScrollableResults
public void close()
close
in interface ScrollableResults
public Object[] get() throws HibernateException
get
in interface ScrollableResults
HibernateException
public Object get(int i)
get
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Type getType(int i)
getType
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Integer getInteger(int col)
getInteger
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Long getLong(int col)
getLong
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Float getFloat(int col)
getFloat
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Boolean getBoolean(int col)
getBoolean
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Double getDouble(int col)
getDouble
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Short getShort(int col)
getShort
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Byte getByte(int col)
getByte
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Character getCharacter(int col)
getCharacter
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic byte[] getBinary(int col)
getBinary
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic String getText(int col)
getText
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Blob getBlob(int col)
getBlob
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Clob getClob(int col)
getClob
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic String getString(int col)
getString
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic BigDecimal getBigDecimal(int col)
getBigDecimal
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic BigInteger getBigInteger(int col)
getBigInteger
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Date getDate(int col)
getDate
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Locale getLocale(int col)
getLocale
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic Calendar getCalendar(int col)
getCalendar
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic TimeZone getTimeZone(int col)
getTimeZone
in interface ScrollableResults
UnsupportedOperationException
- always thrownpublic int getRowNumber()
getRowNumber
in interface ScrollableResults
public boolean setRowNumber(int rowNumber)
setRowNumber
in interface ScrollableResults
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |