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, waitgetAssociationType, getJoinable, isCollection, isManyToManyWithpublic AbstractJoinableAssociationImpl(Fetch currentFetch, EntityReference currentEntityReference, CollectionReference currentCollectionReference, String withClause, boolean hasRestriction, Map<String,Filter> enabledFilters) throws MappingException
MappingExceptionpublic PropertyPath getPropertyPath()
JoinableAssociationgetPropertyPath in interface JoinableAssociationpublic JoinType getJoinType()
JoinableAssociationgetJoinType in interface JoinableAssociationJoinTypepublic Fetch getCurrentFetch()
JoinableAssociationgetCurrentFetch in interface JoinableAssociationFetchpublic EntityReference getCurrentEntityReference()
JoinableAssociationEntityReference, 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 JoinableAssociationEntityReference, or null if none.JoinableAssociation.getCurrentFetch(),
Fetch,
CollectionFetch,
EntityFetch,
EntityReferencepublic CollectionReference getCurrentCollectionReference()
JoinableAssociationCollectionReference, 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 JoinableAssociationCollectionReference, or null if none.JoinableAssociation.getCurrentFetch(),
Fetch,
EntityFetch,
CollectionFetch,
CollectionReferencepublic boolean hasRestriction()
JoinableAssociationhasRestriction in interface JoinableAssociationpublic String getWithClause()
JoinableAssociationgetWithClause in interface JoinableAssociationpublic Map<String,Filter> getEnabledFilters()
JoinableAssociationgetEnabledFilters in interface JoinableAssociationFilterCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.