Class HibernateOrmSearchScrollableResultsAdapter<H>
- java.lang.Object
-
- org.hibernate.search.mapper.orm.search.query.spi.HibernateOrmSearchScrollableResultsAdapter<H>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ScrollableResultsImplementor
,ScrollableResults
public class HibernateOrmSearchScrollableResultsAdapter<H> extends Object implements ScrollableResults, ScrollableResultsImplementor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HibernateOrmSearchScrollableResultsAdapter.ScrollHitExtractor<H>
-
Constructor Summary
Constructors Constructor Description HibernateOrmSearchScrollableResultsAdapter(SearchScroll<H> scroll, int maxResults, HibernateOrmSearchScrollableResultsAdapter.ScrollHitExtractor<? super H> hitExtractor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterLast()
void
beforeFirst()
void
close()
boolean
first()
Object[]
get()
Object
get(int i)
BigDecimal
getBigDecimal(int col)
BigInteger
getBigInteger(int col)
byte[]
getBinary(int col)
Blob
getBlob(int col)
Boolean
getBoolean(int col)
Byte
getByte(int col)
Calendar
getCalendar(int col)
Character
getCharacter(int col)
Clob
getClob(int col)
Date
getDate(int col)
Double
getDouble(int col)
Float
getFloat(int col)
Integer
getInteger(int col)
Locale
getLocale(int col)
Long
getLong(int col)
int
getNumberOfTypes()
int
getRowNumber()
Short
getShort(int col)
String
getString(int col)
String
getText(int col)
TimeZone
getTimeZone(int col)
Type
getType(int i)
boolean
isClosed()
boolean
isFirst()
boolean
isLast()
boolean
last()
boolean
next()
boolean
previous()
boolean
scroll(int positions)
boolean
setRowNumber(int rowNumber)
-
-
-
Constructor Detail
-
HibernateOrmSearchScrollableResultsAdapter
public HibernateOrmSearchScrollableResultsAdapter(SearchScroll<H> scroll, int maxResults, HibernateOrmSearchScrollableResultsAdapter.ScrollHitExtractor<? super H> hitExtractor)
-
-
Method Detail
-
next
public boolean next()
- Specified by:
next
in interfaceScrollableResults
-
previous
public boolean previous()
- Specified by:
previous
in interfaceScrollableResults
-
scroll
public boolean scroll(int positions)
- Specified by:
scroll
in interfaceScrollableResults
-
last
public boolean last()
- Specified by:
last
in interfaceScrollableResults
-
first
public boolean first()
- Specified by:
first
in interfaceScrollableResults
-
beforeFirst
public void beforeFirst()
- Specified by:
beforeFirst
in interfaceScrollableResults
-
afterLast
public void afterLast()
- Specified by:
afterLast
in interfaceScrollableResults
-
isFirst
public boolean isFirst()
- Specified by:
isFirst
in interfaceScrollableResults
-
isLast
public boolean isLast()
- Specified by:
isLast
in interfaceScrollableResults
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceScrollableResults
-
getRowNumber
public int getRowNumber()
- Specified by:
getRowNumber
in interfaceScrollableResults
-
setRowNumber
public boolean setRowNumber(int rowNumber)
- Specified by:
setRowNumber
in interfaceScrollableResults
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceScrollableResultsImplementor
-
get
public Object[] get()
- Specified by:
get
in interfaceScrollableResults
-
get
public Object get(int i)
- Specified by:
get
in interfaceScrollableResults
-
getType
public Type getType(int i)
- Specified by:
getType
in interfaceScrollableResults
-
getInteger
public Integer getInteger(int col)
- Specified by:
getInteger
in interfaceScrollableResults
-
getLong
public Long getLong(int col)
- Specified by:
getLong
in interfaceScrollableResults
-
getFloat
public Float getFloat(int col)
- Specified by:
getFloat
in interfaceScrollableResults
-
getBoolean
public Boolean getBoolean(int col)
- Specified by:
getBoolean
in interfaceScrollableResults
-
getDouble
public Double getDouble(int col)
- Specified by:
getDouble
in interfaceScrollableResults
-
getShort
public Short getShort(int col)
- Specified by:
getShort
in interfaceScrollableResults
-
getByte
public Byte getByte(int col)
- Specified by:
getByte
in interfaceScrollableResults
-
getCharacter
public Character getCharacter(int col)
- Specified by:
getCharacter
in interfaceScrollableResults
-
getBinary
public byte[] getBinary(int col)
- Specified by:
getBinary
in interfaceScrollableResults
-
getText
public String getText(int col)
- Specified by:
getText
in interfaceScrollableResults
-
getBlob
public Blob getBlob(int col)
- Specified by:
getBlob
in interfaceScrollableResults
-
getClob
public Clob getClob(int col)
- Specified by:
getClob
in interfaceScrollableResults
-
getString
public String getString(int col)
- Specified by:
getString
in interfaceScrollableResults
-
getBigDecimal
public BigDecimal getBigDecimal(int col)
- Specified by:
getBigDecimal
in interfaceScrollableResults
-
getBigInteger
public BigInteger getBigInteger(int col)
- Specified by:
getBigInteger
in interfaceScrollableResults
-
getDate
public Date getDate(int col)
- Specified by:
getDate
in interfaceScrollableResults
-
getLocale
public Locale getLocale(int col)
- Specified by:
getLocale
in interfaceScrollableResults
-
getCalendar
public Calendar getCalendar(int col)
- Specified by:
getCalendar
in interfaceScrollableResults
-
getTimeZone
public TimeZone getTimeZone(int col)
- Specified by:
getTimeZone
in interfaceScrollableResults
-
getNumberOfTypes
public int getNumberOfTypes()
- Specified by:
getNumberOfTypes
in interfaceScrollableResultsImplementor
-
-