public class ResultSetProcessingContextImpl extends java.lang.Object implements ResultSetProcessingContext
ResultSetProcessingContext.EntityKeyResolutionContext, ResultSetProcessingContext.EntityReferenceProcessingState
Constructor and Description |
---|
ResultSetProcessingContextImpl(java.sql.ResultSet resultSet,
SharedSessionContractImplementor 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 |
---|---|
java.util.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() |
java.sql.ResultSet |
getResultSet() |
SharedSessionContractImplementor |
getSession() |
boolean |
isReadOnly() |
void |
registerHydratedEntity(EntityReference entityReference,
EntityKey entityKey,
java.lang.Object entityInstance) |
LockMode |
resolveLockMode(EntityReference entityReference) |
boolean |
shouldReturnProxies() |
boolean |
shouldUseOptionalEntityInformation() |
public ResultSetProcessingContextImpl(java.sql.ResultSet resultSet, SharedSessionContractImplementor 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 SharedSessionContractImplementor 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 java.sql.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, java.lang.Object entityInstance)
registerHydratedEntity
in interface ResultSetProcessingContext
public java.util.List<HydratedEntityRegistration> getHydratedEntityRegistrationList()
public boolean isReadOnly()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.