Note
EclipseLinkStateObjectVisitor needs to be used to traverse this state object.
BNF: join_treat ::= TREAT(collection_valued_path_expression [AS] entity_type_literal)
TreatExpression
| Modifier and Type | Field and Description |
|---|---|
| private boolean | as
Flag used to determine if the |
| public static final String | AS_PROPERTY
Notifies the visibility of the |
| public static final String | ENTITY_TYPE_NAME_PROPERTY
Notifies the entity type name property has changed. |
| private EntityTypeLiteralStateObject | entityTypeName
The |
| private JoinStateObject | joinStateObject
Keeps a reference onto the |
| Access | Constructor and Description |
|---|---|
| public | TreatExpressionStateObject(JoinStateObject
The parent of this state object, which is temporary since this state object will
be parented with the state object representing the join's association path expression parent)Creates a new |
| public | TreatExpressionStateObject(JoinStateObject
The parent of this state object, which is temporary since this state object will
be parented with the state object representing the join's association path expression parent, boolean Determines whether the as, String AS identifier is used or notThe entity type name used to cast the base expression entityTypeName)Creates a new |
| public | TreatExpressionStateObject(JoinStateObject
The parent of this state object, which is temporary since this state object will
be parented with the state object representing the join's association path expression parent, String The entity type name used to cast the base expression entityTypeName)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.
|
| public TreatExpressionStateObject | |
| protected void | addChildren(List<StateObject>
The list used to store the children children)Overrides org. StateObject to the given list.
|
| public void | appendToEntityTypeName(String
The text to append to the entity type name property or nothing is done if the
given value is text)nullAppends the given text to the existing entity type name property. |
| public IEntity | |
| public String | Returns: The name of the entity used for down castingReturns the name of the entity that is used to downcast the join association path. |
| public TreatExpression | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public JoinStateObject | |
| public StateObject | Returns: The root of the path expressionReturns the |
| public CollectionValuedPathExpressionStateObject | Returns: The state object representing the join association pathReturns the |
| public boolean | Returns: true if the AS identifier is used; false
otherwiseDetermines whether the |
| public boolean | Returns: true if the entity type name has been defined; false
otherwiseDetermines whether the. |
| protected void | initialize()
Overrides org. |
| 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 void | |
| public void | setAs(boolean
true if the AS identifier should be used part;
false otherwiseSets whether the |
| public void | setEntityTypeName(Class<?>
The Java class representing the entity type entityType)Sets the name of the entity that is used to downcast the join association path. |
| public void | setEntityTypeName(IEntity
The external form of the entity type entityType)Sets the name of the entity that is used to downcast the join association path. |
| public void | setEntityTypeName(String
The new name of the entity used for down casting entityTypeName)Sets the name of the entity that is used to downcast the join association path. |
| public void | setExpression(TreatExpression
The expression)parsed object representing the TREAD
expressionKeeps a reference of the |
| public void | toggleAs()
Toggles the visibility of the |
| protected void | toTextInternal(Appendable
The writer used to print out the string representation writer)Implements abstract org. StateObject, which should not be used to
define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| as | back to summary |
|---|---|
| private boolean as Flag used to determine if the | |
| AS_PROPERTY | back to summary |
|---|---|
| public static final String AS_PROPERTY Notifies the visibility of the | |
| ENTITY_TYPE_NAME_PROPERTY | back to summary |
|---|---|
| public static final String ENTITY_TYPE_NAME_PROPERTY Notifies the entity type name property has changed. | |
| entityTypeName | back to summary |
|---|---|
| private EntityTypeLiteralStateObject entityTypeName The | |
| joinStateObject | back to summary |
|---|---|
| private JoinStateObject joinStateObject Keeps a reference onto the | |
| TreatExpressionStateObject | back to summary |
|---|---|
| public TreatExpressionStateObject(JoinStateObject parent) Creates a new
| |
| TreatExpressionStateObject | back to summary |
|---|---|
| public TreatExpressionStateObject(JoinStateObject parent, boolean as, String entityTypeName) Creates a new
| |
| TreatExpressionStateObject | back to summary |
|---|---|
| public TreatExpressionStateObject(JoinStateObject parent, String entityTypeName) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| addAs | back to summary |
|---|---|
| public TreatExpressionStateObject addAs() Makes sure the
| |
| addChildren | back to summary |
|---|---|
| protected void addChildren(List<StateObject> children) Overrides org. Doc from org. Adds the children of this
| |
| appendToEntityTypeName | back to summary |
|---|---|
| public void appendToEntityTypeName(String text) Appends the given text to the existing entity type name property.
| |
| getEntity | back to summary |
|---|---|
| public IEntity getEntity() Resolves the entity type name to the external form of the actual | |
| getEntityTypeName | back to summary |
|---|---|
| public String getEntityTypeName() Returns the name of the entity that is used to downcast the join association path.
| |
| getExpression | back to summary |
|---|---|
| public TreatExpression getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getJoin | back to summary |
|---|---|
| public JoinStateObject getJoin() Returns the reference of the
| |
| getJoinAssociationIdentificationVariable | back to summary |
|---|---|
| public StateObject getJoinAssociationIdentificationVariable() Returns the
| |
| getJoinAssociationPathStateObject | back to summary |
|---|---|
| public CollectionValuedPathExpressionStateObject getJoinAssociationPathStateObject() Returns the
| |
| hasAs | back to summary |
|---|---|
| public boolean hasAs() Determines whether the
| |
| hasEntityTypeName | back to summary |
|---|---|
| public boolean hasEntityTypeName() Determines whether the.
| |
| initialize | back to summary |
|---|---|
| protected void initialize() Overrides org. Doc from org. Initializes this state object.
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| removeAs | back to summary |
|---|---|
| public void removeAs() Makes sure the | |
| setAs | back to summary |
|---|---|
| public void setAs(boolean as) Sets whether the
| |
| setEntityTypeName | back to summary |
|---|---|
| public void setEntityTypeName(Class<?> entityType) Sets the name of the entity that is used to downcast the join association path.
| |
| setEntityTypeName | back to summary |
|---|---|
| public void setEntityTypeName(IEntity entityType) Sets the name of the entity that is used to downcast the join association path.
| |
| setEntityTypeName | back to summary |
|---|---|
| public void setEntityTypeName(String entityTypeName) Sets the name of the entity that is used to downcast the join association path.
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(TreatExpression expression) Keeps a reference of the
| |
| toggleAs | back to summary |
|---|---|
| public void toggleAs() Toggles the visibility of the | |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |