public abstract class AbstractExpandingFetchSource extends Object implements ExpandingFetchSource
Constructor and Description |
---|
AbstractExpandingFetchSource(ExpandingQuerySpace querySpace,
PropertyPath propertyPath) |
Modifier and Type | Method and Description |
---|---|
AnyAttributeFetch |
buildAnyAttributeFetch(AssociationAttributeDefinition attributeDefinition,
FetchStrategy fetchStrategy)
Builds a fetch for an "any" attribute.
|
BidirectionalEntityReference |
buildBidirectionalEntityReference(AssociationAttributeDefinition attributeDefinition,
FetchStrategy fetchStrategy,
EntityReference targetEntityReference)
Builds a bidirectional entity reference for an entity attribute.
|
CollectionAttributeFetch |
buildCollectionAttributeFetch(AssociationAttributeDefinition attributeDefinition,
FetchStrategy fetchStrategy)
Builds a fetch for a collection attribute.
|
CompositeAttributeFetch |
buildCompositeAttributeFetch(AttributeDefinition attributeDefinition)
Builds a fetch for a composite attribute.
|
EntityFetch |
buildEntityAttributeFetch(AssociationAttributeDefinition attributeDefinition,
FetchStrategy fetchStrategy)
Builds a fetch for an entity attribute.
|
protected abstract CompositeAttributeFetch |
createCompositeAttributeFetch(AttributeDefinition compositeType,
ExpandingCompositeQuerySpace compositeQuerySpace) |
protected ExpandingQuerySpace |
expandingQuerySpace() |
BidirectionalEntityReference[] |
getBidirectionalEntityReferences()
Retrieve the bidirectional entity references owned by this fetch source.
|
Fetch[] |
getFetches()
Retrieve the fetches owned by this fetch source.
|
PropertyPath |
getPropertyPath()
Get the property path to this fetch source
|
protected ExpandingQuerySpaces |
getQuerySpaces() |
String |
getQuerySpaceUid()
Get the UID for this fetch source's query space.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateFetchPlan
resolveEntityReference
public AbstractExpandingFetchSource(ExpandingQuerySpace querySpace, PropertyPath propertyPath)
public final String getQuerySpaceUid()
FetchSource
getQuerySpaceUid
in interface FetchSource
protected final ExpandingQuerySpace expandingQuerySpace()
public final PropertyPath getPropertyPath()
FetchSource
getPropertyPath
in interface FetchSource
public Fetch[] getFetches()
FetchSource
getFetches
in interface FetchSource
public BidirectionalEntityReference[] getBidirectionalEntityReferences()
FetchSource
getBidirectionalEntityReferences
in interface FetchSource
public EntityFetch buildEntityAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)
ExpandingFetchSource
buildEntityAttributeFetch
in interface ExpandingFetchSource
attributeDefinition
- The entity attribute.fetchStrategy
- The fetch strategy for the attribute.public BidirectionalEntityReference buildBidirectionalEntityReference(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy, EntityReference targetEntityReference)
ExpandingFetchSource
buildBidirectionalEntityReference
in interface ExpandingFetchSource
attributeDefinition
- The attribute definition.fetchStrategy
- The fetch strategy for the attribute.targetEntityReference
- The associated (target) entity reference.protected abstract CompositeAttributeFetch createCompositeAttributeFetch(AttributeDefinition compositeType, ExpandingCompositeQuerySpace compositeQuerySpace)
protected ExpandingQuerySpaces getQuerySpaces()
public CompositeAttributeFetch buildCompositeAttributeFetch(AttributeDefinition attributeDefinition)
ExpandingFetchSource
buildCompositeAttributeFetch
in interface ExpandingFetchSource
attributeDefinition
- The attribute definition.public CollectionAttributeFetch buildCollectionAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)
ExpandingFetchSource
buildCollectionAttributeFetch
in interface ExpandingFetchSource
attributeDefinition
- The attribute definition.fetchStrategy
- The fetch strategy for the attribute.public AnyAttributeFetch buildAnyAttributeFetch(AssociationAttributeDefinition attributeDefinition, FetchStrategy fetchStrategy)
ExpandingFetchSource
buildAnyAttributeFetch
in interface ExpandingFetchSource
attributeDefinition
- The attribute definition.fetchStrategy
- The fetch strategy for the attibute.Copyright © 2019 JBoss by Red Hat. All rights reserved.