protected abstract static class AbstractLoadPlanBuilderStrategy.AbstractIdentifierAttributeCollector extends AbstractFetchOwner implements FetchOwner, EntityReference, AbstractLoadPlanBuilderStrategy.FetchStackAware
Modifier and Type | Field and Description |
---|---|
protected EntityReference |
entityReference |
protected Map<Fetch,HydratedCompoundValueHandler> |
fetchToHydratedStateExtractorMap |
NO_FETCHES
Constructor and Description |
---|
AbstractLoadPlanBuilderStrategy.AbstractIdentifierAttributeCollector(SessionFactoryImplementor sessionFactory,
EntityReference entityReference) |
Modifier and Type | Method and Description |
---|---|
CollectionFetch |
buildCollectionFetch(AssociationAttributeDefinition attributeDefinition,
FetchStrategy fetchStrategy,
LoadPlanBuildingContext loadPlanBuildingContext) |
EntityFetch |
buildEntityFetch(AssociationAttributeDefinition attributeDefinition,
FetchStrategy fetchStrategy,
LoadPlanBuildingContext loadPlanBuildingContext) |
protected abstract IdentifierDescription |
buildIdentifierDescription() |
EntityPersister |
getEntityPersister()
Retrieves the EntityPersister describing the entity associated with this Return.
|
EntityReference |
getEntityReference() |
IdentifierDescription |
getIdentifierDescription() |
LockMode |
getLockMode()
Retrieve the lock mode associated with this return.
|
Type |
getType(Fetch fetch)
Returns the type of the specified fetch.
|
void |
injectIdentifierDescription(IdentifierDescription identifierDescription) |
boolean |
isNullable(Fetch fetch)
Is the specified fetch nullable?
|
void |
poppedFromStack() |
EntityPersister |
retrieveFetchSourcePersister()
Retrieve the EntityPersister that is the base for any property references in the fetches it owns.
|
String[] |
toSqlSelectFragments(Fetch fetch,
String alias)
Generates the SQL select fragments for the specified fetch.
|
void |
validateFetchPlan(FetchStrategy fetchStrategy)
Is the asserted plan valid from this owner to a fetch?
|
addFetch, buildCompositeFetch, getFetches, getFetchOwnerDelegate
sessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addFetch, buildCompositeFetch, getFetches, getPropertyPath
protected final EntityReference entityReference
protected final Map<Fetch,HydratedCompoundValueHandler> fetchToHydratedStateExtractorMap
public AbstractLoadPlanBuilderStrategy.AbstractIdentifierAttributeCollector(SessionFactoryImplementor sessionFactory, EntityReference entityReference)
public LockMode getLockMode()
EntityReference
getLockMode
in interface EntityReference
getLockMode
in interface ResultSetProcessingContext.EntityKeyResolutionContext
public EntityReference getEntityReference()
getEntityReference
in interface ResultSetProcessingContext.EntityKeyResolutionContext
public EntityPersister getEntityPersister()
EntityReference
getEntityPersister
in interface EntityReference
getEntityPersister
in interface ResultSetProcessingContext.EntityKeyResolutionContext
public IdentifierDescription getIdentifierDescription()
getIdentifierDescription
in interface EntityReference
public CollectionFetch buildCollectionFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, LoadPlanBuildingContext loadPlanBuildingContext)
buildCollectionFetch
in interface FetchOwner
buildCollectionFetch
in class AbstractFetchOwner
public EntityFetch buildEntityFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, LoadPlanBuildingContext loadPlanBuildingContext)
buildEntityFetch
in interface FetchOwner
buildEntityFetch
in class AbstractFetchOwner
public Type getType(Fetch fetch)
FetchOwner
getType
in interface FetchOwner
getType
in class AbstractFetchOwner
fetch
- - the owned fetch.public boolean isNullable(Fetch fetch)
FetchOwner
isNullable
in interface FetchOwner
isNullable
in class AbstractFetchOwner
fetch
- - the owned fetch.public String[] toSqlSelectFragments(Fetch fetch, String alias)
FetchOwner
toSqlSelectFragments
in interface FetchOwner
toSqlSelectFragments
in class AbstractFetchOwner
fetch
- - the owned fetch.alias
- The table alias to apply to the fragments (used to qualify column references)public void poppedFromStack()
poppedFromStack
in interface AbstractLoadPlanBuilderStrategy.FetchStackAware
protected abstract IdentifierDescription buildIdentifierDescription()
public void validateFetchPlan(FetchStrategy fetchStrategy)
FetchOwner
validateFetchPlan
in interface FetchOwner
fetchStrategy
- The pla to validatepublic EntityPersister retrieveFetchSourcePersister()
FetchOwner
retrieveFetchSourcePersister
in interface FetchOwner
public void injectIdentifierDescription(IdentifierDescription identifierDescription)
injectIdentifierDescription
in interface IdentifierDescriptionInjectable
Copyright © 2013. All rights reserved.