Top Description Methods
org.hibernate.sql.results.jdbc.spi

public Interface JdbcValues

Known Direct Implementers
org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
Imports
org.hibernate.engine.spi.SharedSessionContractImplementor

Provides unified access to query results (JDBC values - see RowProcessingState#getJdbcValue whether they come from query cache or ResultSet. Implementations also manage any cache puts if required.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public void
afterLast(RowProcessingState rowProcessingState)

public void
beforeFirst(RowProcessingState rowProcessingState)

public void
public void
finishUp(SharedSessionContractImplementor session)

Give implementations a chance to finish processing

public boolean
first(RowProcessingState rowProcessingState)

public Object

Returns:

The current row's JDBC values, or null if the position is beyond the end of the available results.
getCurrentRowValue
(int valueIndex)

Get the JDBC value at the given index for the row currently positioned at within this source.

public Object[]

Returns:

The current row's JDBC values, or null if the position is beyond the end of the available results.
getCurrentRowValuesArray
()

Get the JDBC values for the row currently positioned at within this source.

public int
public JdbcValuesMapping
public boolean
isAfterLast(RowProcessingState rowProcessingState)

public boolean
isBeforeFirst(RowProcessingState rowProcessingState)

public boolean
isFirst(RowProcessingState rowProcessingState)

public boolean
isLast(RowProcessingState rowProcessingState)

public boolean
last(RowProcessingState rowProcessingState)

public boolean

Returns:

true if there are results
next
(RowProcessingState rowProcessingState)

Advances the "cursor position" and returns a boolean indicating whether there is a row available to read via getCurrentRowValue(int).

public boolean
position(int position, RowProcessingState rowProcessingState)

Moves the "cursor position" to the specified position

public boolean

Returns:

true if there are results available
previous
(RowProcessingState rowProcessingState)

Advances the "cursor position" in reverse and returns a boolean indicating whether there is a row available to read via getCurrentRowValue(int).

public boolean

Returns:

true if there are results available
scroll
(int
The number of rows to advance. This can also be negative meaning to move in reverse
numberOfRows
,
RowProcessingState rowProcessingState)

Advances the "cursor position" the indicated number of rows and returns a boolean indicating whether there is a row available to read via getCurrentRowValue(int).

public void
setFetchSize(int fetchSize)

Method Detail

afterLastback to summary
public void afterLast(RowProcessingState rowProcessingState)
beforeFirstback to summary
public void beforeFirst(RowProcessingState rowProcessingState)
finishRowProcessingback to summary
public void finishRowProcessing(RowProcessingState rowProcessingState)
finishUpback to summary
public void finishUp(SharedSessionContractImplementor session)

Give implementations a chance to finish processing

firstback to summary
public boolean first(RowProcessingState rowProcessingState)
getCurrentRowValueback to summary
public Object getCurrentRowValue(int valueIndex)

Get the JDBC value at the given index for the row currently positioned at within this source.

Returns:Object

The current row's JDBC values, or null if the position is beyond the end of the available results.

getCurrentRowValuesArrayback to summary
public Object[] getCurrentRowValuesArray()

Get the JDBC values for the row currently positioned at within this source.

Returns:Object[]

The current row's JDBC values, or null if the position is beyond the end of the available results.

getPositionback to summary
public int getPosition()
getValuesMappingback to summary
public JdbcValuesMapping getValuesMapping()
isAfterLastback to summary
public boolean isAfterLast(RowProcessingState rowProcessingState)
isBeforeFirstback to summary
public boolean isBeforeFirst(RowProcessingState rowProcessingState)
isFirstback to summary
public boolean isFirst(RowProcessingState rowProcessingState)
isLastback to summary
public boolean isLast(RowProcessingState rowProcessingState)
lastback to summary
public boolean last(RowProcessingState rowProcessingState)
nextback to summary
public boolean next(RowProcessingState rowProcessingState)

Advances the "cursor position" and returns a boolean indicating whether there is a row available to read via getCurrentRowValue(int).

Returns:boolean

true if there are results

positionback to summary
public boolean position(int position, RowProcessingState rowProcessingState)

Moves the "cursor position" to the specified position

previousback to summary
public boolean previous(RowProcessingState rowProcessingState)

Advances the "cursor position" in reverse and returns a boolean indicating whether there is a row available to read via getCurrentRowValue(int).

Returns:boolean

true if there are results available

scrollback to summary
public boolean scroll(int numberOfRows, RowProcessingState rowProcessingState)

Advances the "cursor position" the indicated number of rows and returns a boolean indicating whether there is a row available to read via getCurrentRowValue(int).

Parameters
numberOfRows:int

The number of rows to advance. This can also be negative meaning to move in reverse

Returns:boolean

true if there are results available

setFetchSizeback to summary
public void setFetchSize(int fetchSize)