Class HibernateOrmSearchScrollableResultsAdapter<H>
- java.lang.Object
-
- org.hibernate.search.mapper.orm.search.query.spi.HibernateOrmSearchScrollableResultsAdapter<H>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.hibernate.query.spi.ScrollableResultsImplementor
,org.hibernate.ScrollableResults
public class HibernateOrmSearchScrollableResultsAdapter<H> extends Object implements org.hibernate.ScrollableResults, org.hibernate.query.spi.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)
org.hibernate.type.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 interfaceorg.hibernate.ScrollableResults
-
previous
public boolean previous()
- Specified by:
previous
in interfaceorg.hibernate.ScrollableResults
-
scroll
public boolean scroll(int positions)
- Specified by:
scroll
in interfaceorg.hibernate.ScrollableResults
-
last
public boolean last()
- Specified by:
last
in interfaceorg.hibernate.ScrollableResults
-
first
public boolean first()
- Specified by:
first
in interfaceorg.hibernate.ScrollableResults
-
beforeFirst
public void beforeFirst()
- Specified by:
beforeFirst
in interfaceorg.hibernate.ScrollableResults
-
afterLast
public void afterLast()
- Specified by:
afterLast
in interfaceorg.hibernate.ScrollableResults
-
isFirst
public boolean isFirst()
- Specified by:
isFirst
in interfaceorg.hibernate.ScrollableResults
-
isLast
public boolean isLast()
- Specified by:
isLast
in interfaceorg.hibernate.ScrollableResults
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.hibernate.ScrollableResults
-
getRowNumber
public int getRowNumber()
- Specified by:
getRowNumber
in interfaceorg.hibernate.ScrollableResults
-
setRowNumber
public boolean setRowNumber(int rowNumber)
- Specified by:
setRowNumber
in interfaceorg.hibernate.ScrollableResults
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceorg.hibernate.query.spi.ScrollableResultsImplementor
-
get
public Object[] get()
- Specified by:
get
in interfaceorg.hibernate.ScrollableResults
-
get
public Object get(int i)
- Specified by:
get
in interfaceorg.hibernate.ScrollableResults
-
getType
public org.hibernate.type.Type getType(int i)
- Specified by:
getType
in interfaceorg.hibernate.ScrollableResults
-
getInteger
public Integer getInteger(int col)
- Specified by:
getInteger
in interfaceorg.hibernate.ScrollableResults
-
getLong
public Long getLong(int col)
- Specified by:
getLong
in interfaceorg.hibernate.ScrollableResults
-
getFloat
public Float getFloat(int col)
- Specified by:
getFloat
in interfaceorg.hibernate.ScrollableResults
-
getBoolean
public Boolean getBoolean(int col)
- Specified by:
getBoolean
in interfaceorg.hibernate.ScrollableResults
-
getDouble
public Double getDouble(int col)
- Specified by:
getDouble
in interfaceorg.hibernate.ScrollableResults
-
getShort
public Short getShort(int col)
- Specified by:
getShort
in interfaceorg.hibernate.ScrollableResults
-
getByte
public Byte getByte(int col)
- Specified by:
getByte
in interfaceorg.hibernate.ScrollableResults
-
getCharacter
public Character getCharacter(int col)
- Specified by:
getCharacter
in interfaceorg.hibernate.ScrollableResults
-
getBinary
public byte[] getBinary(int col)
- Specified by:
getBinary
in interfaceorg.hibernate.ScrollableResults
-
getText
public String getText(int col)
- Specified by:
getText
in interfaceorg.hibernate.ScrollableResults
-
getBlob
public Blob getBlob(int col)
- Specified by:
getBlob
in interfaceorg.hibernate.ScrollableResults
-
getClob
public Clob getClob(int col)
- Specified by:
getClob
in interfaceorg.hibernate.ScrollableResults
-
getString
public String getString(int col)
- Specified by:
getString
in interfaceorg.hibernate.ScrollableResults
-
getBigDecimal
public BigDecimal getBigDecimal(int col)
- Specified by:
getBigDecimal
in interfaceorg.hibernate.ScrollableResults
-
getBigInteger
public BigInteger getBigInteger(int col)
- Specified by:
getBigInteger
in interfaceorg.hibernate.ScrollableResults
-
getDate
public Date getDate(int col)
- Specified by:
getDate
in interfaceorg.hibernate.ScrollableResults
-
getLocale
public Locale getLocale(int col)
- Specified by:
getLocale
in interfaceorg.hibernate.ScrollableResults
-
getCalendar
public Calendar getCalendar(int col)
- Specified by:
getCalendar
in interfaceorg.hibernate.ScrollableResults
-
getTimeZone
public TimeZone getTimeZone(int col)
- Specified by:
getTimeZone
in interfaceorg.hibernate.ScrollableResults
-
getNumberOfTypes
public int getNumberOfTypes()
- Specified by:
getNumberOfTypes
in interfaceorg.hibernate.query.spi.ScrollableResultsImplementor
-
-