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, toTextInternal
addItem, addItems, addListChangeListener, areChildrenEquivalent, canMoveDown, canMoveUp, getItem, hasItems, itemsSize, moveDown, moveUp, removeItem, removeItems, removeListChangeListener, toStringItems
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, children, decorate, findIdentificationVariable, getDeclaration, getDecorator, getGrammar, getManagedTypeProvider, getQueryBuilder, getRoot, isDecorated, removePropertyChangeListener, setParent, toString, toText
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 null
path
- 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 null
public void accept(StateObjectVisitor visitor)
StateObject
by the given visitor
.visitor
- The visitor
to visit this objectprotected AbstractRangeVariableDeclarationStateObject buildRangeVariableDeclarationStateObject()
buildRangeVariableDeclarationStateObject
in class AbstractIdentificationVariableDeclarationStateObject
public 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 StateObject
getParent
in class AbstractIdentificationVariableDeclarationStateObject
StateObject
, which is null
only when
this is the root of the hierarchypublic java.lang.String getPath()
null
public DerivedPathVariableDeclarationStateObject getRangeVariableDeclaration()
StateObject
representing the range variable declaration portion.getRangeVariableDeclaration
in class AbstractIdentificationVariableDeclarationStateObject
public CollectionValuedPathExpressionStateObject getRootStateObject()
StateObject
representing the "root" for objects which may not be
reachable by navigation.getRootStateObject
in class AbstractIdentificationVariableDeclarationStateObject
StateObject
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