Class RowProcessingStateStandardImpl
- java.lang.Object
-
- org.hibernate.sql.exec.internal.BaseExecutionContext
-
- org.hibernate.sql.results.internal.RowProcessingStateStandardImpl
-
- All Implemented Interfaces:
ExecutionContext,RowProcessingState
public class RowProcessingStateStandardImpl extends BaseExecutionContext implements RowProcessingState
Standard RowProcessingState implementation
-
-
Field Summary
Fields Modifier and Type Field Description booleanhasCollectionInitializers
-
Constructor Summary
Constructors Constructor Description RowProcessingStateStandardImpl(JdbcValuesSourceProcessingStateStandardImpl resultSetProcessingState, ExecutionContext executionContext, RowReader<?> rowReader, JdbcValues jdbcValues)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterLast()voidbeforeFirst()voidfinishRowProcessing()Callback at the end of processing the current "row"booleanfirst()CallbackgetCallback()CollectionKeygetCollectionKey()Get the collection key for the collection which is to be loaded immediately.ObjectgetJdbcValue(int position)Retrieve the value corresponding to the given index as part of the "current JDBC row".JdbcValuesSourceProcessingStategetJdbcValuesSourceProcessingState()Access to the state related to the overall processing of the results.intgetPosition()QueryOptionsgetQueryOptions()QueryParameterBindingsgetQueryParameterBindings()RowReader<?>getRowReader()todo (6.0) : do we want this here? Depends how we handle caching assembler / result mementobooleanhasCollectionInitializers()booleanisAfterLast()booleanisBeforeFirst()booleanisFirst()booleanisLast()booleanisQueryCacheHit()booleanlast()booleannext()booleanposition(int i)booleanprevious()voidregisterNonExists(EntityFetch fetch)InitializerresolveInitializer(NavigablePath path)Locate the Initializer registered for the given pathbooleanscroll(int i)-
Methods inherited from class org.hibernate.sql.exec.internal.BaseExecutionContext
getLoadQueryInfluencers, getQueryIdentifier, getSession
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.exec.spi.ExecutionContext
afterStatement, getEntityId, getEntityInstance, getLoadQueryInfluencers, getQueryIdentifier, getSession, hasQueryExecutionToBeAddedToStatistics, isScrollResult, registerLoadingEntityEntry
-
Methods inherited from interface org.hibernate.sql.results.jdbc.spi.RowProcessingState
getJdbcValue
-
-
-
-
Constructor Detail
-
RowProcessingStateStandardImpl
public RowProcessingStateStandardImpl(JdbcValuesSourceProcessingStateStandardImpl resultSetProcessingState, ExecutionContext executionContext, RowReader<?> rowReader, JdbcValues jdbcValues)
-
-
Method Detail
-
hasCollectionInitializers
public boolean hasCollectionInitializers()
-
getJdbcValuesSourceProcessingState
public JdbcValuesSourceProcessingState getJdbcValuesSourceProcessingState()
Description copied from interface:RowProcessingStateAccess to the state related to the overall processing of the results.- Specified by:
getJdbcValuesSourceProcessingStatein interfaceRowProcessingState
-
getRowReader
public RowReader<?> getRowReader()
Description copied from interface:RowProcessingStatetodo (6.0) : do we want this here? Depends how we handle caching assembler / result memento- Specified by:
getRowReaderin interfaceRowProcessingState
-
next
public boolean next()
-
previous
public boolean previous()
-
scroll
public boolean scroll(int i)
-
position
public boolean position(int i)
-
getPosition
public int getPosition()
-
isBeforeFirst
public boolean isBeforeFirst()
-
beforeFirst
public void beforeFirst()
-
isFirst
public boolean isFirst()
-
first
public boolean first()
-
last
public boolean last()
-
isLast
public boolean isLast()
-
afterLast
public void afterLast()
-
isAfterLast
public boolean isAfterLast()
-
getJdbcValue
public Object getJdbcValue(int position)
Description copied from interface:RowProcessingStateRetrieve the value corresponding to the given index as part of the "current JDBC row". We read all the ResultSet values for the given row one time and store them into an array internally based on the principle that multiple accesses to this array will be significantly faster than accessing them from the ResultSet potentially multiple times.- Specified by:
getJdbcValuein interfaceRowProcessingState
-
registerNonExists
public void registerNonExists(EntityFetch fetch)
- Specified by:
registerNonExistsin interfaceRowProcessingState
-
isQueryCacheHit
public boolean isQueryCacheHit()
- Specified by:
isQueryCacheHitin interfaceRowProcessingState
-
finishRowProcessing
public void finishRowProcessing()
Description copied from interface:RowProcessingStateCallback at the end of processing the current "row"- Specified by:
finishRowProcessingin interfaceRowProcessingState
-
getQueryOptions
public QueryOptions getQueryOptions()
- Specified by:
getQueryOptionsin interfaceExecutionContext- Overrides:
getQueryOptionsin classBaseExecutionContext
-
getQueryParameterBindings
public QueryParameterBindings getQueryParameterBindings()
- Specified by:
getQueryParameterBindingsin interfaceExecutionContext- Overrides:
getQueryParameterBindingsin classBaseExecutionContext
-
getCallback
public Callback getCallback()
- Specified by:
getCallbackin interfaceExecutionContext- Overrides:
getCallbackin classBaseExecutionContext
-
getCollectionKey
public CollectionKey getCollectionKey()
Description copied from interface:ExecutionContextGet the collection key for the collection which is to be loaded immediately.- Specified by:
getCollectionKeyin interfaceExecutionContext
-
resolveInitializer
public Initializer resolveInitializer(NavigablePath path)
Description copied from interface:RowProcessingStateLocate the Initializer registered for the given path- Specified by:
resolveInitializerin interfaceRowProcessingState
-
-