public abstract class AbstractConditionalClauseStateObject extends AbstractStateObject
expression ::= identifier conditional_expression
AbstractConditionalClause
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONDITIONAL_STATE_OBJECT_PROPERTY
Notifies the conditional expression property has changed.
|
Modifier and Type | Method and Description |
---|---|
AndExpressionStateObject |
andParse(java.lang.String jpqlFragment)
Parses the given JPQL fragment as the right side of an
AND expression. |
IConditionalExpressionStateObjectBuilder |
getBuilder()
Creates and returns a new
IConditionalExpressionStateObjectBuilder that can be used to
programmatically create a conditional expression and once the expression is complete,
IConditionalExpressionStateObjectBuilder.commit() will push the StateObject
representation of that expression as this clause's conditional expression. |
StateObject |
getConditional()
Returns the state object representing the composition of the conditional expressions.
|
abstract java.lang.String |
getIdentifier()
Returns the JPQL identifier of this clause.
|
boolean |
hasConditional()
Determines whether the
StateObject representing the conditional expression is present
or not. |
boolean |
isEquivalent(StateObject stateObject)
Determines whether the given
StateObject is equivalent to this one, i.e. |
OrExpressionStateObject |
orParse(java.lang.String jpqlFragment)
Parses the given JPQL fragment as the right side of an
OR expression. |
void |
parse(java.lang.String jpqlFragment)
Parses the given JPQL fragment, which represents a conditional expression, and creates the
StateObject . |
void |
setConditional(StateObject conditionalStateObject)
Sets the given
StateObject to be the conditional expression of this clause. |
addPropertyChangeListener, children, decorate, equals, findIdentificationVariable, getDeclaration, getDecorator, getExpression, getGrammar, getManagedTypeProvider, getParent, getQueryBuilder, getRoot, getType, getType, getTypeHelper, getTypeRepository, hashCode, isDecorated, removePropertyChangeListener, setExpression, setParent, toString, toString, toText
accept
public static final java.lang.String CONDITIONAL_STATE_OBJECT_PROPERTY
public AndExpressionStateObject andParse(java.lang.String jpqlFragment)
AND
expression. The
current conditional expression will become the left side of the AND
expression.jpqlFragment
- The portion of the query representing the right side of the
AND
expressionAndExpressionStateObject
public IConditionalExpressionStateObjectBuilder getBuilder()
IConditionalExpressionStateObjectBuilder
that can be used to
programmatically create a conditional expression and once the expression is complete,
IConditionalExpressionStateObjectBuilder.commit()
will push the StateObject
representation of that expression as this clause's conditional expression.public StateObject getConditional()
public abstract java.lang.String getIdentifier()
public boolean hasConditional()
StateObject
representing the conditional expression is present
or not.true
if the conditional expression 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 StateObject
isEquivalent
in class AbstractStateObject
stateObject
- The StateObject
to compare its content to this onetrue
if both object are equivalent; false
otherwisepublic OrExpressionStateObject orParse(java.lang.String jpqlFragment)
OR
expression. The
current conditional expression will become the left side of the OR
expression.jpqlFragment
- The portion of the query representing the right side of the
OR
expressionOrExpressionStateObject
public void parse(java.lang.String jpqlFragment)
StateObject
.jpqlFragment
- The portion of the query representing a conditional expressionpublic void setConditional(StateObject conditionalStateObject)
StateObject
to be the conditional expression of this clause.conditionalStateObject
- The new StateObject
representing the conditional
expressionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference