Top Description Fields Constructors Methods
org.hibernate.sql.results.jdbc.internal

public Class JdbcValuesCacheHit

extends AbstractJdbcValues
Class Inheritance
Imports
java.util.List, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.internal.util.collections.CollectionHelper, org.hibernate.sql.results.ResultsLogger, org.hibernate.sql.results.jdbc.spi.JdbcValuesMapping, .JdbcValuesMetadata, .RowProcessingState

An AbstractJdbcValues implementation for cases where we had a cache hit.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Object[][]
private static final Object[][]
private final int
private int
private final JdbcValuesMapping

Constructor Summary

AccessConstructor and Description
public
JdbcValuesCacheHit(Object[][] cachedData, JdbcValuesMapping resolvedMapping)

public
JdbcValuesCacheHit(List<?> cachedResults, JdbcValuesMapping resolvedMapping)

Method Summary

Modifier and TypeMethod and Description
public void
public void
private static Object[][]
extractData(List<?> cachedResults)

public void
public void
finishUp(SharedSessionContractImplementor session)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.finishUp.

Give implementations a chance to finish processing
public boolean
public Object
getCurrentRowValue(int valueIndex)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.getCurrentRowValue.

Get the JDBC value at the given index for the row currently positioned at within this source.
public Object[]
getCurrentRowValuesArray()

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.getCurrentRowValuesArray.

Get the JDBC values for the row currently positioned at within this source.
public int
public JdbcValuesMapping
public boolean
public boolean
public boolean
public boolean
public boolean
protected boolean
protected boolean
protected boolean
protected boolean
public void
Inherited from org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues:
nextpositionpreviousscroll

Field Detail

cachedDataback to summary
private Object[][] cachedData
NO_DATAback to summary
private static final Object[][] NO_DATA
numberOfRowsback to summary
private final int numberOfRows
positionback to summary
private int position
resolvedMappingback to summary
private final JdbcValuesMapping resolvedMapping

Constructor Detail

JdbcValuesCacheHitback to summary
public JdbcValuesCacheHit(Object[][] cachedData, JdbcValuesMapping resolvedMapping)
JdbcValuesCacheHitback to summary
public JdbcValuesCacheHit(List<?> cachedResults, JdbcValuesMapping resolvedMapping)

Method Detail

afterLastback to summary
public void afterLast(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.afterLast.

Annotations
@Override
beforeFirstback to summary
public void beforeFirst(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.beforeFirst.

Annotations
@Override
extractDataback to summary
private static Object[][] extractData(List<?> cachedResults)
finishRowProcessingback to summary
public void finishRowProcessing(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.finishRowProcessing.

Annotations
@Override
finishUpback to summary
public void finishUp(SharedSessionContractImplementor session)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.finishUp.

Doc from org.hibernate.sql.results.jdbc.spi.JdbcValues.finishUp.

Give implementations a chance to finish processing

Annotations
@Override
firstback to summary
public boolean first(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.first.

Annotations
@Override
getCurrentRowValueback to summary
public Object getCurrentRowValue(int valueIndex)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.getCurrentRowValue.

Doc from org.hibernate.sql.results.jdbc.spi.JdbcValues.getCurrentRowValue.

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.

Annotations
@Override
getCurrentRowValuesArrayback to summary
public Object[] getCurrentRowValuesArray()

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.getCurrentRowValuesArray.

Doc from org.hibernate.sql.results.jdbc.spi.JdbcValues.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.

Annotations
@Override
getPositionback to summary
public int getPosition()

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.getPosition.

Annotations
@Override
getValuesMappingback to summary
public JdbcValuesMapping getValuesMapping()

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.getValuesMapping.

Annotations
@Override
isAfterLastback to summary
public boolean isAfterLast(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.isAfterLast.

Annotations
@Override
isBeforeFirstback to summary
public boolean isBeforeFirst(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.isBeforeFirst.

Annotations
@Override
isFirstback to summary
public boolean isFirst(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.isFirst.

Annotations
@Override
isLastback to summary
public boolean isLast(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.isLast.

Annotations
@Override
lastback to summary
public boolean last(RowProcessingState rowProcessingState)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.last.

Annotations
@Override
processNextback to summary
protected boolean processNext(RowProcessingState rowProcessingState)

Implements abstract org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues.processNext.

Annotations
@Override
processPositionback to summary
protected boolean processPosition(int position, RowProcessingState rowProcessingState)

Implements abstract org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues.processPosition.

Annotations
@Override
processPreviousback to summary
protected boolean processPrevious(RowProcessingState rowProcessingState)

Implements abstract org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues.processPrevious.

Annotations
@Override
processScrollback to summary
protected boolean processScroll(int numberOfRows, RowProcessingState rowProcessingState)

Implements abstract org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues.processScroll.

Annotations
@Override
setFetchSizeback to summary
public void setFetchSize(int fetchSize)

Implements org.hibernate.sql.results.jdbc.spi.JdbcValues.setFetchSize.

Annotations
@Override