public interface FetchOwner
| Modifier and Type | Field and Description |
|---|---|
static Fetch[] |
NO_FETCHES
Convenient constant for returning no fetches from
getFetches() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFetch(Fetch fetch)
Contract to add fetches to this owner.
|
AnyFetch |
buildAnyFetch(AttributeDefinition attribute,
AnyMappingDefinition anyDefinition,
FetchStrategy fetchStrategy,
LoadPlanBuildingContext loadPlanBuildingContext) |
CollectionFetch |
buildCollectionFetch(AssociationAttributeDefinition attributeDefinition,
FetchStrategy fetchStrategy,
LoadPlanBuildingContext loadPlanBuildingContext) |
CompositeFetch |
buildCompositeFetch(CompositionDefinition attributeDefinition,
LoadPlanBuildingContext loadPlanBuildingContext) |
EntityFetch |
buildEntityFetch(AssociationAttributeDefinition attributeDefinition,
FetchStrategy fetchStrategy,
LoadPlanBuildingContext loadPlanBuildingContext) |
Fetch[] |
getFetches()
Retrieve the fetches owned by this return.
|
PropertyPath |
getPropertyPath()
Get the property path to this fetch owner
|
Type |
getType(Fetch fetch)
Returns the type of the specified fetch.
|
boolean |
isNullable(Fetch fetch)
Is the specified fetch nullable?
|
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?
|
static final Fetch[] NO_FETCHES
getFetches()void addFetch(Fetch fetch)
fetch - The fetch to addFetch[] getFetches()
Type getType(Fetch fetch)
fetch - - the owned fetch.boolean isNullable(Fetch fetch)
fetch - - the owned fetch.String[] toSqlSelectFragments(Fetch fetch, String alias)
fetch - - the owned fetch.alias - The table alias to apply to the fragments (used to qualify column references)void validateFetchPlan(FetchStrategy fetchStrategy, AttributeDefinition attributeDefinition)
fetchStrategy - The type of fetch to validateattributeDefinition - The attribute to be fetchedEntityPersister retrieveFetchSourcePersister()
PropertyPath getPropertyPath()
CollectionFetch buildCollectionFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, LoadPlanBuildingContext loadPlanBuildingContext)
EntityFetch buildEntityFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, LoadPlanBuildingContext loadPlanBuildingContext)
CompositeFetch buildCompositeFetch(CompositionDefinition attributeDefinition, LoadPlanBuildingContext loadPlanBuildingContext)
AnyFetch buildAnyFetch(AttributeDefinition attribute, AnyMappingDefinition anyDefinition, FetchStrategy fetchStrategy, LoadPlanBuildingContext loadPlanBuildingContext)
SqlSelectFragmentResolver toSqlSelectFragmentResolver()
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.