Top Inners Methods
org.hibernate.loader.plan.exec.process.spi

public Interface ResultSetProcessingContext

extends LockModeResolver
Known Direct Implementers
org.hibernate.loader.plan.exec.process.internal.ResultSetProcessingContextImpl
Imports
org.hibernate.LockMode, org.hibernate.engine.spi.EntityKey, .QueryParameters, .SharedSessionContractImplementor, org.hibernate.loader.plan.exec.spi.LockModeResolver, org.hibernate.loader.plan.spi.EntityReference, .Fetch, .LoadPlan, org.hibernate.persister.entity.EntityPersister

Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
public static interface
ResultSetProcessingContext.EntityReferenceProcessingState

Holds all pieces of information known about an entity reference in relation to each row as we process the result set.

Method Summary

Modifier and TypeMethod and Description
public LoadPlan
public ResultSetProcessingContext.EntityReferenceProcessingState

Returns:

The FetchOwner's EntityReferenceProcessingState
getOwnerProcessingState
(Fetch
The Fetch for which to find the EntityReferenceProcessingState of its FetchOwner.
fetch
)

Find the EntityReferenceProcessingState for the FetchOwner of the given Fetch.

public ResultSetProcessingContext.EntityReferenceProcessingState
public QueryParameters
public SharedSessionContractImplementor
public void
registerHydratedEntity(EntityReference entityReference, EntityKey entityKey, Object entityInstance)

public boolean
public boolean
Inherited from org.hibernate.loader.plan.exec.spi.LockModeResolver:
resolveLockMode

Method Detail

getLoadPlanback to summary
public LoadPlan getLoadPlan()
getOwnerProcessingStateback to summary
public ResultSetProcessingContext.EntityReferenceProcessingState getOwnerProcessingState(Fetch fetch)

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

getProcessingStateback to summary
public ResultSetProcessingContext.EntityReferenceProcessingState getProcessingState(EntityReference entityReference)
getQueryParametersback to summary
public QueryParameters getQueryParameters()
getSessionback to summary
public SharedSessionContractImplementor getSession()
registerHydratedEntityback to summary
public void registerHydratedEntity(EntityReference entityReference, EntityKey entityKey, Object entityInstance)
shouldReturnProxiesback to summary
public boolean shouldReturnProxies()
shouldUseOptionalEntityInformationback to summary
public boolean shouldUseOptionalEntityInformation()
org.hibernate.loader.plan.exec.process.spi back to summary

public Interface ResultSetProcessingContext.EntityKeyResolutionContext


Method Summary

Modifier and TypeMethod and Description
public EntityPersister
public EntityReference
public LockMode

Method Detail

getEntityPersisterback to summary
public EntityPersister getEntityPersister()
getEntityReferenceback to summary
public EntityReference getEntityReference()
getLockModeback to summary
public LockMode getLockMode()
org.hibernate.loader.plan.exec.process.spi back to summary

public Interface ResultSetProcessingContext.EntityReferenceProcessingState


Holds all pieces of information known about an entity reference in relation to each row as we process the result set. Caches these values and makes it easy for access while processing Fetches.

Method Summary

Modifier and TypeMethod and Description
public Object
public EntityKey

Returns:

The registered EntityKey for this EntityReference
getEntityKey
()

Obtain the registered EntityKey for this EntityReference for the row currently being processed.

public EntityReference

Returns:

The EntityReference
getEntityReference
()

The EntityReference for which this is collecting process state

public Object[]
public Object

Returns:

The entity identifier hydrated state
getIdentifierHydratedForm
()

Obtain the hydrated form (the raw Type-read ResultSet values) of the entity's identifier

public boolean

Returns:

Whether there is no identifier for this entity reference
isMissingIdentifier
()

public void
public void
registerEntityKey(EntityKey
The processed EntityKey for this EntityReference
entityKey
)

Register the processed EntityKey for this Entity for the row currently being processed.

public void
registerHydratedState(Object[] hydratedState)

public void
registerIdentifierHydratedForm(Object
The entity identifier hydrated state
hydratedForm
)

Register the hydrated form (raw Type-read ResultSet values) of the entity's identifier for the row currently being processed.

public void
registerMissingIdentifier()

Register the fact that no identifier was found on attempt to hydrate it from ResultSet

Method Detail

getEntityInstanceback to summary
public Object getEntityInstance()
getEntityKeyback to summary
public EntityKey getEntityKey()

Obtain the registered EntityKey for this EntityReference for the row currently being processed.

Returns:EntityKey

The registered EntityKey for this EntityReference

getEntityReferenceback to summary
public EntityReference getEntityReference()

The EntityReference for which this is collecting process state

Returns:EntityReference

The EntityReference

getHydratedStateback to summary
public Object[] getHydratedState()
getIdentifierHydratedFormback to summary
public Object getIdentifierHydratedForm()

Obtain the hydrated form (the raw Type-read ResultSet values) of the entity's identifier

Returns:Object

The entity identifier hydrated state

isMissingIdentifierback to summary
public boolean isMissingIdentifier()
Returns:boolean

Whether there is no identifier for this entity reference

registerEntityInstanceback to summary
public void registerEntityInstance(Object instance)
registerEntityKeyback to summary
public void registerEntityKey(EntityKey entityKey)

Register the processed EntityKey for this Entity for the row currently being processed.

Parameters
entityKey:EntityKey

The processed EntityKey for this EntityReference

registerHydratedStateback to summary
public void registerHydratedState(Object[] hydratedState)
registerIdentifierHydratedFormback to summary
public void registerIdentifierHydratedForm(Object hydratedForm)

Register the hydrated form (raw Type-read ResultSet values) of the entity's identifier for the row currently being processed.

Parameters
hydratedForm:Object

The entity identifier hydrated state

registerMissingIdentifierback to summary
public void registerMissingIdentifier()

Register the fact that no identifier was found on attempt to hydrate it from ResultSet