public abstract class AbstractDoubleEncapsulatedExpressionStateObject extends AbstractEncapsulatedExpressionStateObject
StateObject represents a JPQL expression that has a JPQL identifier followed by
two an encapsulated expression with parenthesis, the two expression are separated by a comma.
expression ::= <identifier>(first_expression, second_expression)ModExpressionStateObject,
NullIfExpressionStateObject,
AbstractDoubleEncapsulatedExpression| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FIRST_STATE_OBJECT_PROPERTY
Notifies the first
StateObject property has changed. |
static java.lang.String |
SECOND_STATE_OBJECT_PROPERTY
Notifies the second
StateObject property has changed. |
| Constructor and Description |
|---|
AbstractDoubleEncapsulatedExpressionStateObject(StateObject parent,
java.lang.String firstJpqlFragment,
java.lang.String secondJpqlFragment)
Creates a new
AbstractDoubleEncapsulatedExpressionStateObject. |
| Modifier and Type | Method and Description |
|---|---|
AbstractDoubleEncapsulatedExpression |
getExpression()
Returns the actual parsed object if this
StateObject representation of the JPQL query
was created by parsing an existing JPQL query. |
StateObject |
getFirst()
Returns the
StateObject representing the first expression. |
StateObject |
getSecond()
Returns the
StateObject representing the second expression. |
boolean |
hasFirst()
Determines whether the
StateObject representing the first encapsulated expression is
present or not. |
boolean |
hasSecond()
Determines whether the
StateObject representing the second encapsulated expression is
present or not. |
boolean |
isEquivalent(StateObject stateObject)
Determines whether the given
StateObject is equivalent to this one, i.e. |
void |
parseFirst(java.lang.String jpqlFragment)
Parses the given JPQL fragment, which will represent the first encapsulated expression.
|
void |
parseSecond(java.lang.String jpqlFragment)
Parses the given JPQL fragment, which will represent the second encapsulated expression.
|
void |
setFirst(StateObject firstStateObject)
Sets the given
StateObject to represent the first encapsulated expression. |
void |
setSecond(StateObject secondStateObject)
Sets the given
StateObject to represent the second encapsulated expression. |
getIdentifieraddPropertyChangeListener, 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 FIRST_STATE_OBJECT_PROPERTY
StateObject property has changed.public static final java.lang.String SECOND_STATE_OBJECT_PROPERTY
StateObject property has changed.public AbstractDoubleEncapsulatedExpressionStateObject(StateObject parent, java.lang.String firstJpqlFragment, java.lang.String secondJpqlFragment)
AbstractDoubleEncapsulatedExpressionStateObject.parent - The parent of this state object, which cannot be nullfirstJpqlFragment - The string representation of the first encapsulated expression to
parse and to convert into a StateObject representationsecondJpqlFragment - The string representation of the second encapsulated expression to
parse and to convert into a StateObject representationjava.lang.NullPointerException - The given parent cannot be nullpublic AbstractDoubleEncapsulatedExpression getExpression()
StateObject representation of the JPQL query
was created by parsing an existing JPQL query.getExpression in interface StateObjectgetExpression in class AbstractEncapsulatedExpressionStateObjectStateObject
or null when the JPQL query is manually created (i.e. not from a string)public StateObject getFirst()
StateObject representing the first expression.StateObject or null if none existspublic StateObject getSecond()
StateObject representing the second expression.StateObject or null if none existspublic boolean hasFirst()
StateObject representing the first encapsulated expression is
present or not.true if the first StateObject is not null;
false otherwisepublic boolean hasSecond()
StateObject representing the second encapsulated expression is
present or not.true if the second StateObject is not null;
false otherwisepublic 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 parseFirst(java.lang.String jpqlFragment)
jpqlFragment - The string representation of the first encapsulated expression to parse and
to convert into a StateObject representationpublic void parseSecond(java.lang.String jpqlFragment)
jpqlFragment - The string representation of the second encapsulated expression to parse and
to convert into a StateObject representationpublic void setFirst(StateObject firstStateObject)
StateObject to represent the first encapsulated expression.firstStateObject - The new encapsulated StateObject representing the first
expressionpublic void setSecond(StateObject secondStateObject)
StateObject to represent the second encapsulated expression.secondStateObject - The new encapsulated StateObject representing the second
expressionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference