public class FromImpl<Z,X> extends PathImpl<X>
Purpose: Contains the implementation of the From interface of the JPA criteria API.
Description: This class represents a from clause element which could be the root of the query of the end node of a join statement.
From,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected FromImpl |
correlatedParent |
protected java.util.Set<<any>> |
fetches |
protected boolean |
isFetch |
protected boolean |
isJoin |
protected java.util.Set<<any>> |
joins |
protected ManagedType |
managedType |
modelArtifact, pathParentisLiteral, literal, metamodelalias, currentNode, javaType| Constructor and Description |
|---|
FromImpl(<any> parentPath,
ManagedType managedType,
Metamodel metamodel,
java.lang.Class<X> javaClass,
org.eclipse.persistence.expressions.Expression expressionNode,
<any> modelArtifact) |
FromImpl(<any> parentPath,
ManagedType managedType,
Metamodel metamodel,
java.lang.Class<X> javaClass,
org.eclipse.persistence.expressions.Expression expressionNode,
<any> modelArtifact,
FromImpl correlatedParent) |
| Modifier and Type | Method and Description |
|---|---|
<Y> <any> |
fetch(<any> assoc)
Fetch join to the specified attribute using an inner join.
|
<Y> <any> |
fetch(<any> assoc)
Fetch join to the specified collection using an inner join.
|
<Y> <any> |
fetch(<any> assoc,
JoinType jt)
Fetch join to the specified attribute using the given join type.
|
<Y> <any> |
fetch(<any> assoc,
JoinType jt)
Fetch join to the specified collection using the given join type.
|
<T,Y> <any> |
fetch(java.lang.String assocName)
Fetch join to the specified attribute or association using an inner join.
|
<T,Y> <any> |
fetch(java.lang.String assocName,
JoinType jt)
Fetch join to the specified attribute or association using the given join
type.
|
java.util.List<org.eclipse.persistence.expressions.Expression> |
findJoinFetches() |
void |
findJoins(AbstractQueryImpl query) |
<E,C extends java.util.Collection<E>> |
get(<any> collection)
Return the path corresponding to the referenced collection-valued
attribute.
|
<K,V,M extends java.util.Map<K,V>> |
get(<any> map)
Return the path corresponding to the referenced map-valued attribute.
|
<Y> <any> |
get(<any> att)
Return the path corresponding to the referenced non-collection valued
attribute.
|
<Y> <any> |
get(java.lang.String attName) |
<any> |
getCorrelationParent()
Returns the parent
From object from which the correlated
From object has been obtained through correlation (use
of a Subquery correlate method). |
java.util.Set<<any>> |
getFetches()
Return the fetch joins that have been made from this type.
|
java.util.Set<<any>> |
getJoins() |
boolean |
isCorrelated()
Whether the
From object has been obtained as a result of
correlation (use of a Subquery correlate
method). |
boolean |
isFrom() |
<K,V> <any> |
join(<any> map) |
<Y> <any> |
join(<any> attribute) |
<Y> <any> |
join(<any> collection) |
<Y> <any> |
join(<any> set) |
<Y> <any> |
join(<any> list) |
<K,V> <any> |
join(<any> map,
JoinType jt) |
<Y> <any> |
join(<any> attribute,
JoinType jt) |
<Y> <any> |
join(<any> collection,
JoinType jt) |
<Y> <any> |
join(<any> set,
JoinType jt) |
<Y> <any> |
join(<any> list,
JoinType jt) |
<T,Y> <any> |
join(java.lang.String attributeName) |
<T,Y> <any> |
join(java.lang.String attributeName,
JoinType jt) |
<T,Y> <any> |
joinCollection(java.lang.String attributeName) |
<T,Y> <any> |
joinCollection(java.lang.String attributeName,
JoinType jt) |
<T,Y> <any> |
joinList(java.lang.String attributeName) |
<T,Y> <any> |
joinList(java.lang.String attributeName,
JoinType jt) |
<T,K,Y> <any> |
joinMap(java.lang.String attributeName) |
<T,K,Y> <any> |
joinMap(java.lang.String attributeName,
JoinType jt) |
<T,Y> <any> |
joinSet(java.lang.String attributeName) |
<T,Y> <any> |
joinSet(java.lang.String attributeName,
JoinType jt) |
<any> |
type()
Return an expression corresponding to the type of the path.
|
clone, findRootAndParameters, getModel, getParentPathas, buildExpressionForAs, in, in, in, in, isCompoundExpression, isExpression, isJunction, isLiteral, isNotNull, isNull, isParameter, isPredicate, isSubqueryalias, getAlias, getCompoundSelectionItems, getCurrentNode, getJavaType, isCompoundSelection, isConstructor, isRootprotected ManagedType managedType
protected java.util.Set<<any>> joins
protected java.util.Set<<any>> fetches
protected boolean isJoin
protected boolean isFetch
protected FromImpl correlatedParent
public FromImpl(<any> parentPath,
ManagedType managedType,
Metamodel metamodel,
java.lang.Class<X> javaClass,
org.eclipse.persistence.expressions.Expression expressionNode,
<any> modelArtifact)
public java.util.Set<<any>> getFetches()
public boolean isCorrelated()
From object has been obtained as a result of
correlation (use of a Subquery correlate
method).public <any> getCorrelationParent()
From object from which the correlated
From object has been obtained through correlation (use
of a Subquery correlate method).java.lang.IllegalStateException - if the From object has
not been obtained through correlationpublic <Y> <any> fetch(<any> assoc)
assoc - target of the joinpublic <Y> <any> fetch(<any> assoc,
JoinType jt)
assoc - target of the joinjt - join typepublic <Y> <any> fetch(<any> assoc)
assoc - target of the joinpublic <Y> <any> fetch(<any> assoc,
JoinType jt)
assoc - target of the joinjt - join typepublic <T,Y> <any> fetch(java.lang.String assocName)
assocName - name of the attribute or association for the target of the
joinpublic <T,Y> <any> fetch(java.lang.String assocName,
JoinType jt)
assocName - assocName of the attribute or association for the target of
the joinjt - join typepublic java.util.Set<<any>> getJoins()
public <Y> <any> get(<any> att)
public <E,C extends java.util.Collection<E>> <any> get(<any> collection)
public <K,V,M extends java.util.Map<K,V>> <any> get(<any> map)
public <any> type()
public <Y> <any> join(<any> attribute)
public <Y> <any> join(<any> attribute,
JoinType jt)
public <Y> <any> join(<any> collection)
public <Y> <any> join(<any> set)
public <Y> <any> join(<any> list)
public <K,V> <any> join(<any> map)
public <Y> <any> join(<any> collection,
JoinType jt)
public <Y> <any> join(<any> set,
JoinType jt)
public <Y> <any> join(<any> list,
JoinType jt)
public <K,V> <any> join(<any> map,
JoinType jt)
public <T,Y> <any> join(java.lang.String attributeName)
public <T,Y> <any> join(java.lang.String attributeName,
JoinType jt)
public <T,Y> <any> joinCollection(java.lang.String attributeName)
public <T,Y> <any> joinCollection(java.lang.String attributeName,
JoinType jt)
public <T,Y> <any> joinList(java.lang.String attributeName)
public <T,Y> <any> joinList(java.lang.String attributeName,
JoinType jt)
public <T,K,Y> <any> joinMap(java.lang.String attributeName)
public <T,K,Y> <any> joinMap(java.lang.String attributeName,
JoinType jt)
public <T,Y> <any> joinSet(java.lang.String attributeName)
public <T,Y> <any> joinSet(java.lang.String attributeName,
JoinType jt)
public void findJoins(AbstractQueryImpl query)
public java.util.List<org.eclipse.persistence.expressions.Expression> findJoinFetches()
public boolean isFrom()
isFrom in interface InternalSelectionisFrom in class SelectionImpl<X>