public class ResultSetProcessingContextImpl extends Object implements ResultSetProcessingContext
ResultSetProcessingContext.EntityKeyResolutionContext, ResultSetProcessingContext.EntityReferenceProcessingState| Constructor and Description | 
|---|
ResultSetProcessingContextImpl(ResultSet resultSet,
                              SessionImplementor session,
                              LoadPlan loadPlan,
                              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, boolean readOnly, boolean shouldUseOptionalEntityInformation, boolean forceFetchLazyAttributes, boolean shouldReturnProxies, QueryParameters queryParameters, NamedParameterContext namedParameterContext, boolean hadSubselectFetches)
resultSet - session - loadPlan - readOnly - 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.forceFetchLazyAttributes - shouldReturnProxies - queryParameters - namedParameterContext - hadSubselectFetches - public SessionImplementor getSession()
getSession in interface ResultSetProcessingContextpublic boolean shouldUseOptionalEntityInformation()
shouldUseOptionalEntityInformation in interface ResultSetProcessingContextpublic QueryParameters getQueryParameters()
getQueryParameters in interface ResultSetProcessingContextpublic boolean shouldReturnProxies()
shouldReturnProxies in interface ResultSetProcessingContextpublic LoadPlan getLoadPlan()
getLoadPlan in interface ResultSetProcessingContextpublic ResultSet getResultSet()
public LockMode resolveLockMode(EntityReference entityReference)
resolveLockMode in interface LockModeResolverpublic ResultSetProcessingContext.EntityReferenceProcessingState getProcessingState(EntityReference entityReference)
getProcessingState in interface ResultSetProcessingContextpublic ResultSetProcessingContext.EntityReferenceProcessingState getOwnerProcessingState(Fetch fetch)
ResultSetProcessingContextgetOwnerProcessingState in interface ResultSetProcessingContextfetch - The Fetch for which to find the EntityReferenceProcessingState of its FetchOwner.public void registerHydratedEntity(EntityReference entityReference, EntityKey entityKey, Object entityInstance)
registerHydratedEntity in interface ResultSetProcessingContextpublic List<HydratedEntityRegistration> getHydratedEntityRegistrationList()
public boolean isReadOnly()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.