Top Fields Constructors Methods
org.hibernate.loader.plan.exec.process.internal

public Class ResultSetProcessingContextImpl

extends Object
implements ResultSetProcessingContext
Class Inheritance
All Implemented Interfaces
org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext, org.hibernate.loader.plan.exec.spi.LockModeResolver
Imports
java.sql.ResultSet, java.util.ArrayList, .HashMap, .HashSet, .IdentityHashMap, .List, .Map, .Set, org.hibernate.LockMode, org.hibernate.engine.spi.EntityKey, .PersistenceContext, .QueryParameters, .SharedSessionContractImplementor, .SubselectFetch, org.hibernate.internal.CoreLogging, org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext, org.hibernate.loader.plan.exec.query.spi.NamedParameterContext, org.hibernate.loader.plan.exec.spi.AliasResolutionContext, org.hibernate.loader.plan.spi.EntityFetch, .EntityReference, .Fetch, .LoadPlan, org.hibernate.persister.entity.Loadable, org.hibernate.type.EntityType, org.jboss.logging.Logger

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final AliasResolutionContext
private List<HydratedEntityRegistration>
private final boolean
private List<HydratedEntityRegistration>
private Map<EntityReference, ResultSetProcessingContext.EntityReferenceProcessingState>
private final LoadPlan
private static final Logger
private final NamedParameterContext
private int
private final QueryParameters
private final boolean
private final ResultSet
private final SharedSessionContractImplementor
private final boolean
private final boolean
private Map<EntityReference, Set<EntityKey>>

Constructor Summary

AccessConstructor and Description
public
ResultSetProcessingContextImpl(final ResultSet resultSet, final SharedSessionContractImplementor session, final LoadPlan loadPlan, final AliasResolutionContext aliasResolutionContext, final boolean readOnly, final boolean
There are times when the "optional entity information" on QueryParameters should be used and times when they should not. Collection initializers, batch loaders, etc are times when it should NOT be used.
shouldUseOptionalEntityInformation
,
final boolean shouldReturnProxies, final QueryParameters queryParameters, final NamedParameterContext namedParameterContext, final boolean hadSubselectFetches)

Builds a ResultSetProcessingContextImpl

Method Summary

Modifier and TypeMethod and Description
private void
pack-priv void
finishUpRow()

Package-protected

public List<HydratedEntityRegistration>
public LoadPlan
public ResultSetProcessingContext.EntityReferenceProcessingState
getOwnerProcessingState(Fetch
The Fetch for which to find the EntityReferenceProcessingState of its FetchOwner.
fetch
)

Implements org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext.getOwnerProcessingState.

Find the EntityReferenceProcessingState for the FetchOwner of the given Fetch.
public ResultSetProcessingContext.EntityReferenceProcessingState
public QueryParameters
public ResultSet
public SharedSessionContractImplementor
public boolean
public void
private void
public LockMode
public boolean
public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aliasResolutionContextback to summary
private final AliasResolutionContext aliasResolutionContext
currentRowHydratedEntityRegistrationListback to summary
private List<HydratedEntityRegistration> currentRowHydratedEntityRegistrationList
hadSubselectFetchesback to summary
private final boolean hadSubselectFetches
hydratedEntityRegistrationListback to summary
private List<HydratedEntityRegistration> hydratedEntityRegistrationList
identifierResolutionContextMapback to summary
private Map<EntityReference, ResultSetProcessingContext.EntityReferenceProcessingState> identifierResolutionContextMap
loadPlanback to summary
private final LoadPlan loadPlan
LOGback to summary
private static final Logger LOG
namedParameterContextback to summary
private final NamedParameterContext namedParameterContext
nRowsReadback to summary
private int nRowsRead
queryParametersback to summary
private final QueryParameters queryParameters
readOnlyback to summary
private final boolean readOnly
resultSetback to summary
private final ResultSet resultSet
sessionback to summary
private final SharedSessionContractImplementor session
shouldReturnProxiesback to summary
private final boolean shouldReturnProxies
shouldUseOptionalEntityInformationback to summary
private final boolean shouldUseOptionalEntityInformation
subselectLoadableEntityKeyMapback to summary
private Map<EntityReference, Set<EntityKey>> subselectLoadableEntityKeyMap

Constructor Detail

ResultSetProcessingContextImplback to summary
public ResultSetProcessingContextImpl(final ResultSet resultSet, final SharedSessionContractImplementor session, final LoadPlan loadPlan, final AliasResolutionContext aliasResolutionContext, final boolean readOnly, final boolean shouldUseOptionalEntityInformation, final boolean shouldReturnProxies, final QueryParameters queryParameters, final NamedParameterContext namedParameterContext, final boolean hadSubselectFetches)

Builds a ResultSetProcessingContextImpl

Parameters
shouldUseOptionalEntityInformation:boolean

There are times when the "optional entity information" on QueryParameters should be used and times when they should not. Collection initializers, batch loaders, etc are times when it should NOT be used.

Method Detail

createSubselectsback to summary
private void createSubselects()
finishUpRowback to summary
pack-priv void finishUpRow()

Package-protected

getHydratedEntityRegistrationListback to summary
public List<HydratedEntityRegistration> getHydratedEntityRegistrationList()
getLoadPlanback to summary
public LoadPlan getLoadPlan()

Implements org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext.getLoadPlan.

Annotations
@Override
getOwnerProcessingStateback to summary
public ResultSetProcessingContext.EntityReferenceProcessingState getOwnerProcessingState(Fetch fetch)

Implements org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext.getOwnerProcessingState.

Doc from org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext.getOwnerProcessingState.

Find the EntityReferenceProcessingState for the FetchOwner of the given Fetch.

Parameters
fetch:Fetch

The Fetch for which to find the EntityReferenceProcessingState of its FetchOwner.

Returns:ResultSetProcessingContext.EntityReferenceProcessingState

The FetchOwner's EntityReferenceProcessingState

Annotations
@Override
getProcessingStateback to summary
public ResultSetProcessingContext.EntityReferenceProcessingState getProcessingState(final EntityReference entityReference)

Implements org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext.getProcessingState.

Annotations
@Override
getQueryParametersback to summary
public QueryParameters getQueryParameters()

Implements org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext.getQueryParameters.

Annotations
@Override
getResultSetback to summary
public ResultSet getResultSet()
getSessionback to summary
public SharedSessionContractImplementor getSession()

Implements org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext.getSession.

Annotations
@Override
isReadOnlyback to summary
public boolean isReadOnly()
registerHydratedEntityback to summary
public void registerHydratedEntity(EntityReference entityReference, EntityKey entityKey, Object entityInstance)

Implements org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext.registerHydratedEntity.

Annotations
@Override
registerNonExistsback to summary
private void registerNonExists(EntityFetch fetch)
resolveLockModeback to summary
public LockMode resolveLockMode(EntityReference entityReference)

Implements org.hibernate.loader.plan.exec.spi.LockModeResolver.resolveLockMode.

Annotations
@Override
shouldReturnProxiesback to summary
public boolean shouldReturnProxies()

Implements org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext.shouldReturnProxies.

Annotations
@Override
shouldUseOptionalEntityInformationback to summary
public boolean shouldUseOptionalEntityInformation()

Implements org.hibernate.loader.plan.exec.process.spi.ResultSetProcessingContext.shouldUseOptionalEntityInformation.

Annotations
@Override
wrapUpback to summary
public void wrapUp()