public class ResultSetProcessingContextImpl extends Object implements ResultSetProcessingContext
ResultSetProcessingContext.EntityKeyResolutionContext, ResultSetProcessingContext.EntityReferenceProcessingState
Constructor and Description |
---|
ResultSetProcessingContextImpl(ResultSet resultSet,
SessionImplementor session,
LoadPlan loadPlan,
AliasResolutionContext aliasResolutionContext,
boolean readOnly,
boolean shouldUseOptionalEntityInformation,
boolean forceFetchLazyAttributes,
boolean shouldReturnProxies,
QueryParameters queryParameters,
NamedParameterContext namedParameterContext,
boolean hadSubselectFetches)
Builds a ResultSetProcessingContextImpl
|
Modifier and Type | Method and Description |
---|---|
List<HydratedEntityRegistration> |
getHydratedEntityRegistrationList() |
LoadPlan |
getLoadPlan() |
ResultSetProcessingContext.EntityReferenceProcessingState |
getOwnerProcessingState(Fetch fetch)
Find the EntityReferenceProcessingState for the FetchOwner of the given Fetch.
|
ResultSetProcessingContext.EntityReferenceProcessingState |
getProcessingState(EntityReference entityReference) |
QueryParameters |
getQueryParameters() |
ResultSet |
getResultSet() |
SessionImplementor |
getSession() |
boolean |
isReadOnly() |
void |
registerHydratedEntity(EntityReference entityReference,
EntityKey entityKey,
Object entityInstance) |
LockMode |
resolveLockMode(EntityReference entityReference) |
boolean |
shouldReturnProxies() |
boolean |
shouldUseOptionalEntityInformation() |
public ResultSetProcessingContextImpl(ResultSet resultSet, SessionImplementor session, LoadPlan loadPlan, AliasResolutionContext aliasResolutionContext, boolean readOnly, boolean shouldUseOptionalEntityInformation, boolean forceFetchLazyAttributes, boolean shouldReturnProxies, QueryParameters queryParameters, NamedParameterContext namedParameterContext, boolean hadSubselectFetches)
shouldUseOptionalEntityInformation
- 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.public SessionImplementor getSession()
getSession
in interface ResultSetProcessingContext
public boolean shouldUseOptionalEntityInformation()
shouldUseOptionalEntityInformation
in interface ResultSetProcessingContext
public QueryParameters getQueryParameters()
getQueryParameters
in interface ResultSetProcessingContext
public boolean shouldReturnProxies()
shouldReturnProxies
in interface ResultSetProcessingContext
public LoadPlan getLoadPlan()
getLoadPlan
in interface ResultSetProcessingContext
public ResultSet getResultSet()
public LockMode resolveLockMode(EntityReference entityReference)
resolveLockMode
in interface LockModeResolver
public ResultSetProcessingContext.EntityReferenceProcessingState getProcessingState(EntityReference entityReference)
getProcessingState
in interface ResultSetProcessingContext
public ResultSetProcessingContext.EntityReferenceProcessingState getOwnerProcessingState(Fetch fetch)
ResultSetProcessingContext
getOwnerProcessingState
in interface ResultSetProcessingContext
fetch
- The Fetch for which to find the EntityReferenceProcessingState of its FetchOwner.public void registerHydratedEntity(EntityReference entityReference, EntityKey entityKey, Object entityInstance)
registerHydratedEntity
in interface ResultSetProcessingContext
public List<HydratedEntityRegistration> getHydratedEntityRegistrationList()
public boolean isReadOnly()
Copyright © 2017 JBoss by Red Hat. All rights reserved.