public class DerivedPathIdentificationVariableDeclarationStateObject extends AbstractIdentificationVariableDeclarationStateObject
JOINS_LIST| Constructor and Description |
|---|
DerivedPathIdentificationVariableDeclarationStateObject(SimpleFromClauseStateObject parent)
Creates a new
IdentificationVariableDeclarationStateObject. |
DerivedPathIdentificationVariableDeclarationStateObject(SimpleFromClauseStateObject parent,
java.lang.String path,
java.lang.String identificationVariable)
Creates a new
IdentificationVariableDeclarationStateObject. |
| Modifier and Type | Method and Description |
|---|---|
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. |
ListIterable<JoinStateObject> |
items()
Returns an
IterableListIterator over the children. |
addChildren, addInnerJoin, addJoin, addJoin, addJoin, addJoin, addLeftJoin, addLeftOuterJoin, getExpression, getIdentificationVariable, getIdentificationVariableStateObject, getRootPath, identificationVariables, initialize, isEquivalent, listName, parseJoin, setExpression, setIdentificationVariable, setRootPath, toTextInternaladdItem, addItems, addListChangeListener, areChildrenEquivalent, canMoveDown, canMoveUp, getItem, hasItems, itemsSize, moveDown, moveUp, removeItem, removeItems, removeListChangeListener, toStringItemsacceptUnknownVisitor, 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, toTextclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, children, decorate, findIdentificationVariable, getDeclaration, getDecorator, getGrammar, getManagedTypeProvider, getQueryBuilder, getRoot, isDecorated, removePropertyChangeListener, setParent, toString, toTextpublic DerivedPathIdentificationVariableDeclarationStateObject(SimpleFromClauseStateObject parent)
IdentificationVariableDeclarationStateObject.parent - The parent of this state object, which cannot be nulljava.lang.NullPointerException - The given parent cannot be nullpublic 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 pathjava.lang.NullPointerException - The given parent cannot be nullpublic 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
VALUEIManagedType 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 ListIterable<JoinStateObject> items()
IterableListIterator over the children.items in interface ListHolderStateObject<JoinStateObject>items in class AbstractListHolderStateObject<JoinStateObject>IterableListIterator that is iterating over the children