Class JdbcValuesCacheHit

java.lang.Object
org.hibernate.sql.results.jdbc.internal.AbstractJdbcValues
org.hibernate.sql.results.jdbc.internal.JdbcValuesCacheHit
All Implemented Interfaces:
JdbcValues

public class JdbcValuesCacheHit extends AbstractJdbcValues
An AbstractJdbcValues implementation for cases where we had a cache hit.
  • Constructor Details

    • JdbcValuesCacheHit

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

    • processNext

      protected boolean processNext(RowProcessingState rowProcessingState)
      Specified by:
      processNext in class AbstractJdbcValues
    • processPrevious

      protected boolean processPrevious(RowProcessingState rowProcessingState)
      Specified by:
      processPrevious in class AbstractJdbcValues
    • processScroll

      protected boolean processScroll(int numberOfRows, RowProcessingState rowProcessingState)
      Specified by:
      processScroll in class AbstractJdbcValues
    • getPosition

      public int getPosition()
    • processPosition

      protected boolean processPosition(int position, RowProcessingState rowProcessingState)
      Specified by:
      processPosition in class AbstractJdbcValues
    • isBeforeFirst

      public boolean isBeforeFirst(RowProcessingState rowProcessingState)
    • beforeFirst

      public void beforeFirst(RowProcessingState rowProcessingState)
    • isFirst

      public boolean isFirst(RowProcessingState rowProcessingState)
    • first

      public boolean first(RowProcessingState rowProcessingState)
    • isAfterLast

      public boolean isAfterLast(RowProcessingState rowProcessingState)
    • afterLast

      public void afterLast(RowProcessingState rowProcessingState)
    • isLast

      public boolean isLast(RowProcessingState rowProcessingState)
    • last

      public boolean last(RowProcessingState rowProcessingState)
    • getValuesMapping

      public JdbcValuesMapping getValuesMapping()
    • usesFollowOnLocking

      public boolean usesFollowOnLocking()
    • getCurrentRowValue

      public Object getCurrentRowValue(int valueIndex)
      Description copied from interface: JdbcValues
      Get the JDBC value at the given index for the row currently positioned at within this source.
      Returns:
      The current row's JDBC values, or null if the position is beyond the end of the available results.
    • finishUp

      public void finishUp(SharedSessionContractImplementor session)
      Description copied from interface: JdbcValues
      Give implementations a chance to finish processing
    • finishRowProcessing

      public void finishRowProcessing(RowProcessingState rowProcessingState, boolean wasAdded)
    • setFetchSize

      public void setFetchSize(int fetchSize)
    • getResultCountEstimate

      public int getResultCountEstimate()
      Description copied from interface: JdbcValues
      The estimate for the amount of results that can be expected for pre-sizing collections. May return zero or negative values if the count can not be reasonably estimated.