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 |
|---|---|
AnyFetch |
buildAnyFetch(AttributeDefinition attribute,
AnyMappingDefinition anyDefinition,
FetchStrategy fetchStrategy,
LoadPlanBuildingContext loadPlanBuildingContext) |
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.
|
SqlSelectFragmentResolver |
toSqlSelectFragmentResolver() |
String[] |
toSqlSelectFragments(Fetch fetch,
String alias)
Generates the SQL select fragments for the specified fetch.
|
void |
validateFetchPlan(FetchStrategy fetchStrategy,
AttributeDefinition attributeDefinition)
Is the asserted plan valid from this owner to a fetch?
|
addFetch, buildCompositeFetch, getFetchessessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFetch, buildCompositeFetch, getFetches, getPropertyPathprotected final EntityReference entityReference
protected final Map<Fetch,HydratedCompoundValueHandler> fetchToHydratedStateExtractorMap
public AbstractLoadPlanBuilderStrategy.AbstractIdentifierAttributeCollector(SessionFactoryImplementor sessionFactory, EntityReference entityReference)
public LockMode getLockMode()
EntityReferencegetLockMode in interface ResultSetProcessingContext.EntityKeyResolutionContextgetLockMode in interface EntityReferencepublic EntityReference getEntityReference()
getEntityReference in interface ResultSetProcessingContext.EntityKeyResolutionContextpublic EntityPersister getEntityPersister()
EntityReferencegetEntityPersister in interface ResultSetProcessingContext.EntityKeyResolutionContextgetEntityPersister in interface EntityReferencepublic IdentifierDescription getIdentifierDescription()
getIdentifierDescription in interface EntityReferencepublic CollectionFetch buildCollectionFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, LoadPlanBuildingContext loadPlanBuildingContext)
buildCollectionFetch in interface FetchOwnerbuildCollectionFetch in class AbstractFetchOwnerpublic AnyFetch buildAnyFetch(AttributeDefinition attribute, AnyMappingDefinition anyDefinition, FetchStrategy fetchStrategy, LoadPlanBuildingContext loadPlanBuildingContext)
buildAnyFetch in interface FetchOwnerbuildAnyFetch in class AbstractFetchOwnerpublic EntityFetch buildEntityFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, LoadPlanBuildingContext loadPlanBuildingContext)
buildEntityFetch in interface FetchOwnerbuildEntityFetch in class AbstractFetchOwnerpublic Type getType(Fetch fetch)
FetchOwnergetType in interface FetchOwnergetType in class AbstractFetchOwnerfetch - - the owned fetch.public boolean isNullable(Fetch fetch)
FetchOwnerisNullable in interface FetchOwnerisNullable in class AbstractFetchOwnerfetch - - the owned fetch.public String[] toSqlSelectFragments(Fetch fetch, String alias)
FetchOwnertoSqlSelectFragments in interface FetchOwnertoSqlSelectFragments in class AbstractFetchOwnerfetch - - the owned fetch.alias - The table alias to apply to the fragments (used to qualify column references)public SqlSelectFragmentResolver toSqlSelectFragmentResolver()
toSqlSelectFragmentResolver in interface FetchOwnerpublic void poppedFromStack()
poppedFromStack in interface AbstractLoadPlanBuilderStrategy.FetchStackAwareprotected abstract IdentifierDescription buildIdentifierDescription()
public void validateFetchPlan(FetchStrategy fetchStrategy, AttributeDefinition attributeDefinition)
FetchOwnervalidateFetchPlan in interface FetchOwnerfetchStrategy - The type of fetch to validateattributeDefinition - The attribute to be fetchedpublic EntityPersister retrieveFetchSourcePersister()
FetchOwnerretrieveFetchSourcePersister in interface FetchOwnerpublic void injectIdentifierDescription(IdentifierDescription identifierDescription)
injectIdentifierDescription in interface IdentifierDescriptionInjectableCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.