IdentificationVariable
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFINED_PROPERTY
Notify a change in the defined property. |
| private IManagedType | managedType
The |
| private IMapping | |
| private IType | |
| private ITypeDeclaration | typeDeclaration
The |
| private boolean | virtual
Determines whether this identification variable is virtual, meaning it's not part of the query but is required for proper navigability. |
| Access | Constructor and Description |
|---|---|
| public | IdentificationVariableStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | IdentificationVariableStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe name of the identification variable variable)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| protected void | addProblems(List<Problem>
The list to which the problems are added problems)Overrides org. StateObject, which means there are validation issues.
|
| protected void | checkIntegrity(String
The new identification variable text)Makes sure the current identification variable and the given one are the same. |
| protected void | |
| public IdentificationVariable | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public IManagedType | |
| public IMapping | |
| public IType | Returns: Either theIType that was resolved by this state object or the IType
for IType#UNRESOLVABLE_TYPE if it could not be resolvedReturns the |
| public ITypeDeclaration | Returns: Either theITypeDeclaration that was resolved by this object or the ITypeDeclaration for IType#UNRESOLVABLE_TYPE if it could not be resolvedReturns the |
| public boolean | isEquivalent(StateObject
The stateObject)StateObject to compare its content to this oneOverrides org. Implements org. StateObject is equivalent to this one, i.e. the
information of both StateObject is the same.
|
| public boolean | Returns: true if this identification variable was virtually created to fully
qualify path expression; false if it was parsedDetermines whether this identification variable is virtual, meaning it's not part of the query but is required for proper navigability. |
| protected IManagedType | Returns: Either theIManagedType declared by the identification variable or null
if it could not be resolvedRetrieves the |
| protected IMapping | |
| protected IType | Returns: Either theIType that was resolved by this object or the IType for
IType#UNRESOLVABLE_TYPE if it could not be resolvedResolves the |
| protected ITypeDeclaration | Returns: Either theITypeDeclaration that was resolved by this object or the ITypeDeclaration for IType#UNRESOLVABLE_TYPE if it could not be resolvedResolves the |
| public void | setExpression(IdentificationVariable
The expression)parsed object representing an
identification variableKeeps a reference of the |
| public void | setText(String
This model's text value text)Overrides org. |
| public void | setVirtual(boolean
true if this identification variable was virtually created to
fully qualify path expression; false if it was parsedSets whether this identification variable is virtual, meaning it's not part of the query but is required for proper navigability. |
| protected void | toTextInternal(Appendable
The writer used to print out the string representation writer)Overrides org. StateObject, which should not be used to
define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| DEFINED_PROPERTY | back to summary |
|---|---|
| public static final String DEFINED_PROPERTY Notify a change in the defined property. | |
| managedType | back to summary |
|---|---|
| private IManagedType managedType The | |
| mapping | back to summary |
|---|---|
| private IMapping mapping | |
| type | back to summary |
|---|---|
| private IType type The | |
| typeDeclaration | back to summary |
|---|---|
| private ITypeDeclaration typeDeclaration The | |
| virtual | back to summary |
|---|---|
| private boolean virtual Determines whether this identification variable is virtual, meaning it's not part of the query but is required for proper navigability. | |
| IdentificationVariableStateObject | back to summary |
|---|---|
| public IdentificationVariableStateObject(StateObject parent) Creates a new
| |
| IdentificationVariableStateObject | back to summary |
|---|---|
| public IdentificationVariableStateObject(StateObject parent, String variable) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| addProblems | back to summary |
|---|---|
| protected void addProblems(List<Problem> problems) Overrides org. Doc from org. Adds to the given list the problems that were found with the current state of this | |
| checkIntegrity | back to summary |
|---|---|
| protected void checkIntegrity(String text) Makes sure the current identification variable and the given one are the same. If they are not, then clears the cached values related to the type.
| |
| clearResolvedObjects | back to summary |
|---|---|
| protected void clearResolvedObjects() Clears the values related to the managed type and type. | |
| getExpression | back to summary |
|---|---|
| public IdentificationVariable getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getManagedType | back to summary |
|---|---|
| public IManagedType getManagedType() Returns the
For example: "
| |
| getMapping | back to summary |
|---|---|
| public IMapping getMapping() Returns | |
| getType | back to summary |
|---|---|
| public IType getType() Returns the
| |
| getTypeDeclaration | back to summary |
|---|---|
| public ITypeDeclaration getTypeDeclaration() Returns the
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| isVirtual | back to summary |
|---|---|
| public boolean isVirtual() Determines whether this identification variable is virtual, meaning it's not part of the query but is required for proper navigability.
| |
| resolveManagedType | back to summary |
|---|---|
| protected IManagedType resolveManagedType() Retrieves the
| |
| resolveMapping | back to summary |
|---|---|
| protected IMapping resolveMapping() Resolves | |
| resolveType | back to summary |
|---|---|
| protected IType resolveType() Resolves the
| |
| resolveTypeDeclaration | back to summary |
|---|---|
| protected ITypeDeclaration resolveTypeDeclaration() Resolves the
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(IdentificationVariable expression) Keeps a reference of the
| |
| setText | back to summary |
|---|---|
| public void setText(String text) Overrides org. Doc from org. Sets the text held by this state object. | |
| setVirtual | back to summary |
|---|---|
| public void setVirtual(boolean virtual) Sets whether this identification variable is virtual, meaning it's not part of the query but is required for proper navigability.
| |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Overrides org. Doc from org. Prints out a string representation of this
| |