public abstract class CompoundExpressionStateObject extends AbstractStateObject
StateObject has a left and right expressions combined by an identifier.
expression ::= left_expression <identifier> right_expressionCompoundExpression| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
LEFT_STATE_OBJECT_PROPERTY
Notifies the left state object property has changed.
|
static java.lang.String |
RIGHT_STATE_OBJECT_PROPERTY
Notifies the right state object property has changed.
|
| Modifier and Type | Method and Description |
|---|---|
CompoundExpression |
getExpression()
Returns the actual parsed object if this
StateObject representation of the JPQL query
was created by parsing an existing JPQL query. |
abstract java.lang.String |
getIdentifier()
Returns the identifier joining the two
StateObjects. |
StateObject |
getLeft()
Returns the
StateObject that represents the left expression. |
StateObject |
getRight()
Returns the
StateObject that represents the right expression. |
boolean |
hasLeft()
Determines whether there is a
StateObject that represents the left expression. |
boolean |
hasRight()
Determines whether there is a
StateObject that represents the right expression. |
boolean |
isEquivalent(StateObject stateObject)
Determines whether the given
StateObject is equivalent to this one, i.e. |
void |
parseLeft(java.lang.String jpqlFragment)
Parses the given JPQL fragment and update the left side of the compound expression.
|
void |
parseRight(java.lang.String jpqlFragment)
Parses the given JPQL fragment and update the right side of the compound expression.
|
void |
setLeft(StateObject leftStateObject)
Sets the left
StateObject to become the given object. |
void |
setRight(StateObject rightStateObject)
Sets the right
StateObject to become the given object. |
addPropertyChangeListener, children, decorate, equals, findIdentificationVariable, getDeclaration, getDecorator, getGrammar, getManagedTypeProvider, getParent, getQueryBuilder, getRoot, getType, getType, getTypeHelper, getTypeRepository, hashCode, isDecorated, removePropertyChangeListener, setExpression, setParent, toString, toString, toTextacceptpublic static final java.lang.String LEFT_STATE_OBJECT_PROPERTY
public static final java.lang.String RIGHT_STATE_OBJECT_PROPERTY
public CompoundExpression getExpression()
StateObject representation of the JPQL query
was created by parsing an existing JPQL query.getExpression in interface StateObjectgetExpression in class AbstractStateObjectStateObject
or null when the JPQL query is manually created (i.e. not from a string)public abstract java.lang.String getIdentifier()
StateObjects.public StateObject getLeft()
StateObject that represents the left expression.StateObject representing the left expressionpublic StateObject getRight()
StateObject that represents the right expression.StateObject representing the right expressionpublic boolean hasLeft()
StateObject that represents the left expression.true if there is a left StateObject; false if it is
nullpublic boolean hasRight()
StateObject that represents the right expression.true if there is a right StateObject; false if it
is nullpublic boolean isEquivalent(StateObject stateObject)
StateObject is equivalent to this one, i.e. the
information of both StateObject is the same.isEquivalent in interface StateObjectisEquivalent in class AbstractStateObjectstateObject - The StateObject to compare its content to this onetrue if both object are equivalent; false otherwisepublic void parseLeft(java.lang.String jpqlFragment)
jpqlFragment - The portion of the query to become the left side of the compound expressionpublic void parseRight(java.lang.String jpqlFragment)
jpqlFragment - The portion of the query to become the right side of the compound expressionpublic void setLeft(StateObject leftStateObject)
StateObject to become the given object.leftStateObject - The StateObject representing the left expressionpublic void setRight(StateObject rightStateObject)
StateObject to become the given object.rightStateObject - The StateObject representing the right expressionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference