|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.jpa.jpql.model.query.AbstractStateObject
org.eclipse.persistence.jpa.jpql.model.query.AbstractListHolderStateObject<JoinStateObject>
org.eclipse.persistence.jpa.jpql.model.query.AbstractIdentificationVariableDeclarationStateObject
org.eclipse.persistence.jpa.jpql.model.query.DerivedPathIdentificationVariableDeclarationStateObject
public class DerivedPathIdentificationVariableDeclarationStateObject
| Field Summary |
|---|
| Fields inherited from class org.eclipse.persistence.jpa.jpql.model.query.AbstractIdentificationVariableDeclarationStateObject |
|---|
JOINS_LIST |
| Constructor Summary | |
|---|---|
DerivedPathIdentificationVariableDeclarationStateObject(SimpleFromClauseStateObject parent)
Creates a new IdentificationVariableDeclarationStateObject. |
|
DerivedPathIdentificationVariableDeclarationStateObject(SimpleFromClauseStateObject parent,
java.lang.String path,
java.lang.String identificationVariable)
Creates a new IdentificationVariableDeclarationStateObject. |
|
| Method Summary | |
|---|---|
void |
accept(StateObjectVisitor visitor)
Visits this StateObject by the given visitor. |
protected AbstractRangeVariableDeclarationStateObject |
buildRangeVariableDeclarationStateObject()
Creates |
IManagedType |
getManagedType(StateObject stateObject)
Returns the IManagedType for the given identification variable. |
SimpleFromClauseStateObject |
getParent()
Returns the parent of this StateObject. |
java.lang.String |
getPath()
Returns the string representation of the path expression, which is either a singled-valued object field or a collection-valued path expression. |
DerivedPathVariableDeclarationStateObject |
getRangeVariableDeclaration()
Returns the StateObject representing the range variable declaration portion. |
CollectionValuedPathExpressionStateObject |
getRootStateObject()
Returns the StateObject representing the "root" for objects which may not be
reachable by navigation. |
IterableListIterator<JoinStateObject> |
items()
Returns an IterableListIterator over the children. |
| Methods inherited from class org.eclipse.persistence.jpa.jpql.model.query.AbstractIdentificationVariableDeclarationStateObject |
|---|
addChildren, addInnerJoin, addJoin, addJoin, addJoin, addJoin, addLeftJoin, addLeftOuterJoin, getExpression, getIdentificationVariable, getIdentificationVariableStateObject, getRootPath, identificationVariables, initialize, isEquivalent, listName, parseJoin, setExpression, setIdentificationVariable, setRootPath, toTextInternal |
| Methods inherited from class org.eclipse.persistence.jpa.jpql.model.query.AbstractListHolderStateObject |
|---|
addItem, addItems, addListChangeListener, areChildrenEquivalent, canMoveDown, canMoveUp, getItem, hasItems, itemsSize, moveDown, moveUp, removeItem, removeItems, removeListChangeListener, toStringItems |
| Methods inherited from class org.eclipse.persistence.jpa.jpql.model.query.AbstractStateObject |
|---|
acceptUnknownVisitor, acceptUnknownVisitor, addProblems, addPropertyChangeListener, areEquivalent, buildProblem, buildProblem, buildStateObject, buildStateObjects, checkParent, children, decorate, equals, findIdentificationVariable, firePropertyChanged, getChangeSupport, getDeclaration, getDecorator, getGrammar, getManagedTypeProvider, getQueryBuilder, getRoot, getType, getType, getTypeHelper, getTypeRepository, hashCode, isDecorated, parent, parent, parent, removePropertyChangeListener, setExpression, setParent, toString, toString, toStringInternal, toStringItems, toText |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.persistence.jpa.jpql.model.query.StateObject |
|---|
addPropertyChangeListener, children, decorate, findIdentificationVariable, getDeclaration, getDecorator, getGrammar, getManagedTypeProvider, getQueryBuilder, getRoot, isDecorated, removePropertyChangeListener, setParent, toString, toText |
| Constructor Detail |
|---|
public DerivedPathIdentificationVariableDeclarationStateObject(SimpleFromClauseStateObject parent)
IdentificationVariableDeclarationStateObject.
parent - The parent of this state object, which cannot be null
java.lang.NullPointerException - The given parent cannot be null
public DerivedPathIdentificationVariableDeclarationStateObject(SimpleFromClauseStateObject parent,
java.lang.String path,
java.lang.String identificationVariable)
IdentificationVariableDeclarationStateObject.
parent - The parent of this state object, which cannot be nullpath - Either the derived singled-valued object field or the collection-valued path expressionidentificationVariable - The identification variable defining the given path
java.lang.NullPointerException - The given parent cannot be null| Method Detail |
|---|
public void accept(StateObjectVisitor visitor)
StateObject by the given visitor.
visitor - The visitor to visit this objectprotected AbstractRangeVariableDeclarationStateObject buildRangeVariableDeclarationStateObject()
buildRangeVariableDeclarationStateObject in class AbstractIdentificationVariableDeclarationStateObjectpublic IManagedType getManagedType(StateObject stateObject)
IManagedType for the given identification variable. The search does not
traverse up the query hierarchy if this declaration is for a subquery.
SELECT e FROM Department d JOIN KEY(d.employees).addresses a
In the above query, the managed type associated with the identification variable:
stateObject - The StateObject that should be an simple identification variable or
an encapsulated identification variable with the identifier KEY or
VALUE
IManagedType representing the domain object declared by the given
identification variablepublic SimpleFromClauseStateObject getParent()
StateObject.
getParent in interface StateObjectgetParent in class AbstractIdentificationVariableDeclarationStateObjectStateObject, which is null only when
this is the root of the hierarchypublic java.lang.String getPath()
nullpublic DerivedPathVariableDeclarationStateObject getRangeVariableDeclaration()
StateObject representing the range variable declaration portion.
getRangeVariableDeclaration in class AbstractIdentificationVariableDeclarationStateObjectpublic CollectionValuedPathExpressionStateObject getRootStateObject()
StateObject representing the "root" for objects which may not be
reachable by navigation.
getRootStateObject in class AbstractIdentificationVariableDeclarationStateObjectStateObject representing one of the possible valid "root"public IterableListIterator<JoinStateObject> items()
IterableListIterator over the children.
items in interface ListHolderStateObject<JoinStateObject>items in class AbstractListHolderStateObject<JoinStateObject>IterableListIterator that is iterating over the children
|
EclipseLink 2.4.1, build 'v20121003-ad44345' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||