public abstract class AbstractCompositeEntityIdentifierDescription extends AbstractCompositeFetch implements ExpandingEntityIdentifierDescription
FETCH_STRATEGY
Modifier | Constructor and Description |
---|---|
protected |
AbstractCompositeEntityIdentifierDescription(EntityReference entityReference,
ExpandingCompositeQuerySpace compositeQuerySpace,
CompositeType identifierType,
PropertyPath propertyPath) |
Modifier and Type | Method and Description |
---|---|
Type |
getFetchedType()
Get the Hibernate Type that describes the fetched attribute
|
FetchSource |
getSource()
Obtain the owner of this fetch.
|
boolean |
hasBidirectionalEntityReferences()
Can this EntityIdentifierDescription be treated as a FetchSource and if so does it have any
bidirectional entity references?
|
boolean |
hasFetches()
Can this EntityIdentifierDescription be treated as a FetchSource and if so does it have any
fetches?
|
boolean |
isNullable()
Is this fetch nullable?
|
EntityReference |
resolveEntityReference()
Resolve the "current"
EntityReference , or null if none. |
getAdditionalJoinConditions, getFetchStrategy, toSqlSelectFragments
buildCollectionAttributeFetch, createCompositeAttributeFetch, validateFetchPlan
buildAnyAttributeFetch, buildBidirectionalEntityReference, buildCompositeAttributeFetch, buildEntityAttributeFetch, expandingQuerySpace, getBidirectionalEntityReferences, getFetches, getPropertyPath, getQuerySpaces, getQuerySpaceUid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildAnyAttributeFetch, buildBidirectionalEntityReference, buildCollectionAttributeFetch, buildCompositeAttributeFetch, buildEntityAttributeFetch, validateFetchPlan
getBidirectionalEntityReferences, getFetches, getPropertyPath, getQuerySpaceUid
getPropertyPath
protected AbstractCompositeEntityIdentifierDescription(EntityReference entityReference, ExpandingCompositeQuerySpace compositeQuerySpace, CompositeType identifierType, PropertyPath propertyPath)
public boolean hasFetches()
EntityIdentifierDescription
hasFetches
in interface EntityIdentifierDescription
true
iff this
can be cast to FetchSource
and (after casting) it returns
non-empty results for FetchSource.getFetches()
public boolean hasBidirectionalEntityReferences()
EntityIdentifierDescription
hasBidirectionalEntityReferences
in interface EntityIdentifierDescription
true
iff this
can be cast to FetchSource
and (after casting) it returns
non-empty results for FetchSource.getBidirectionalEntityReferences()
public FetchSource getSource()
Fetch
public Type getFetchedType()
Fetch
getFetchedType
in interface Fetch
public boolean isNullable()
Fetch
isNullable
in interface Fetch
public EntityReference resolveEntityReference()
FetchSource
EntityReference
, or null if none.
If this object is an EntityReference
, then this object is returned;
otherwise, if this object is a Fetch
, then the nearest
EntityReference
will be resolved from its source, if possible.
If no EntityReference can be resolved, null is return.resolveEntityReference
in interface FetchSource
Fetch.getSource().
Copyright © 2019 JBoss by Red Hat. All rights reserved.