public abstract class AbstractJoinableAssociationImpl extends Object implements JoinableAssociation
Constructor and Description |
---|
AbstractJoinableAssociationImpl(Fetch currentFetch,
EntityReference currentEntityReference,
CollectionReference currentCollectionReference,
String withClause,
boolean hasRestriction,
Map<String,Filter> enabledFilters) |
Modifier and Type | Method and Description |
---|---|
CollectionReference |
getCurrentCollectionReference()
Return the current
CollectionReference , or null if none. |
EntityReference |
getCurrentEntityReference()
Return the current
EntityReference , or null if none. |
Fetch |
getCurrentFetch()
Returns the current association fetch object.
|
Map<String,Filter> |
getEnabledFilters()
Returns the filters that are enabled for this association.
|
JoinType |
getJoinType()
Returns the type of join used for the association.
|
PropertyPath |
getPropertyPath()
Returns the property path of the association.
|
String |
getWithClause()
Returns the with clause for this association.
|
boolean |
hasRestriction()
Does this association have a restriction?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssociationType, getJoinable, isCollection, isManyToManyWith
public AbstractJoinableAssociationImpl(Fetch currentFetch, EntityReference currentEntityReference, CollectionReference currentCollectionReference, String withClause, boolean hasRestriction, Map<String,Filter> enabledFilters) throws MappingException
MappingException
public PropertyPath getPropertyPath()
JoinableAssociation
getPropertyPath
in interface JoinableAssociation
public JoinType getJoinType()
JoinableAssociation
getJoinType
in interface JoinableAssociation
JoinType
public Fetch getCurrentFetch()
JoinableAssociation
getCurrentFetch
in interface JoinableAssociation
Fetch
public EntityReference getCurrentEntityReference()
JoinableAssociation
EntityReference
, or null if none.
If JoinableAssociation.getCurrentFetch()
returns an
EntityFetch
, this method will
return the same object as JoinableAssociation.getCurrentFetch()
.
If JoinableAssociation.getCurrentFetch()
returns a
CollectionFetch
and
the collection's owner is returned or fetched, this
method will return the EntityReference
that owns the
Fetch
returned by JoinableAssociation.getCurrentFetch()
;
otherwise this method returns null.getCurrentEntityReference
in interface JoinableAssociation
EntityReference
, or null if none.JoinableAssociation.getCurrentFetch()
,
Fetch
,
CollectionFetch
,
EntityFetch
,
EntityReference
public CollectionReference getCurrentCollectionReference()
JoinableAssociation
CollectionReference
, or null if none.
If JoinableAssociation.getCurrentFetch()
returns a
CollectionFetch
, this method
will return the same object as JoinableAssociation.getCurrentFetch()
.
If JoinableAssociation.getCurrentFetch()
returns an
EntityFetch
that is
a collection element (or part of a composite collection element),
and that collection is being returned or fetched, this
method will return the CollectionReference
;
otherwise this method returns null.getCurrentCollectionReference
in interface JoinableAssociation
CollectionReference
, or null if none.JoinableAssociation.getCurrentFetch()
,
Fetch
,
EntityFetch
,
CollectionFetch
,
CollectionReference
public boolean hasRestriction()
JoinableAssociation
hasRestriction
in interface JoinableAssociation
public String getWithClause()
JoinableAssociation
getWithClause
in interface JoinableAssociation
public Map<String,Filter> getEnabledFilters()
JoinableAssociation
getEnabledFilters
in interface JoinableAssociation
Filter
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.