public abstract class AbstractSingleEncapsulatedExpressionStateObject extends AbstractEncapsulatedExpressionStateObject
StateObject represents a JPQL expression that has a JPQL identifier followed by
an encapsulated expression with parenthesis.
expression ::= <identifier>(expression)AbstractSingleEncapsulatedExpression| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
STATE_OBJECT_PROPERTY
Notifies the encapsulated
StateObject has changed. |
| Modifier and Type | Method and Description |
|---|---|
AbstractSingleEncapsulatedExpression |
getExpression()
Returns the actual parsed object if this
StateObject representation of the JPQL query
was created by parsing an existing JPQL query. |
StateObject |
getStateObject()
Returns the encapsulated
StateObject. |
boolean |
hasStateObject()
Determines whether the
StateObject representing the encapsulated expression is present
or not. |
boolean |
isEquivalent(StateObject stateObject)
Determines whether the given
StateObject is equivalent to this one, i.e. |
void |
parse(java.lang.String jpqlFragment)
Parses the given JPQL fragment, which represents the encapsulated expression, and creates the
StateObject. |
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 STATE_OBJECT_PROPERTY
StateObject has changed.public AbstractSingleEncapsulatedExpression 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 getStateObject()
StateObject.StateObjectpublic boolean hasStateObject()
StateObject representing the encapsulated expression is present
or not.true if the encapsulated 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 parse(java.lang.String jpqlFragment)
StateObject.jpqlFragment - The portion of the query representing the encapsulated expressionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference