Top Description Fields Constructors Methods
org.eclipse.persistence.jpa.jpql.tools.model.query

public abstract Class LogicalExpressionStateObject

extends CompoundExpressionStateObject
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.jpa.jpql.tools.model.query.OrExpressionStateObject, org.eclipse.persistence.jpa.jpql.tools.model.query.AndExpressionStateObject
Imports
org.eclipse.persistence.jpa.jpql.parser.LogicalExpression

This expression represents a logical expression, which means the first and second expressions are aggregated with either the AND or the OR operator.
Author
Pascal Filion
Since
2.4
Version
2.4
See Also
AndExpressionStateObject, OrExpressionStateObject, LogicalExpression

Field Summary

Inherited from org.eclipse.persistence.jpa.jpql.tools.model.query.CompoundExpressionStateObject:
LEFT_STATE_OBJECT_PROPERTYRIGHT_STATE_OBJECT_PROPERTY

Constructor Summary

AccessConstructor and Description
protected
LogicalExpressionStateObject(StateObject
The parent of this state object, which cannot be null
parent
)

Creates a new LogicalExpressionStateObject.

protected
LogicalExpressionStateObject(StateObject
The parent of this state object, which cannot be null
parent
,
StateObject
The StateObject representing the left expression
leftStateObject
,
StateObject
The StateObject representing the right expression
rightStateObject
)

Creates a new LogicalExpressionStateObject.

protected
LogicalExpressionStateObject(StateObject
The parent of this state object, which cannot be null
parent
,
String
The string representation of the left expression to parse and to convert into a StateObject
leftJpqlFragment
,
String
The string representation of the right expression to parse and to convert into a StateObject
rightJpqlFragment
)

Creates a new LogicalExpressionStateObject.

Method Summary

Modifier and TypeMethod and Description
public LogicalExpression
getExpression()

Overrides org.eclipse.persistence.jpa.jpql.tools.model.query.CompoundExpressionStateObject.getExpression.

Implements org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject.getExpression.

Returns the actual parsed object if this StateObject representation of the JPQL query was created by parsing an existing JPQL query.
Inherited from org.eclipse.persistence.jpa.jpql.tools.model.query.CompoundExpressionStateObject:
addChildrengetIdentifiergetLeftgetLeftQueryBNFIdgetRightgetRightQueryBNFIdhasLefthasRightisEquivalentparseLeftparseRightsetLeftsetRighttoTextInternal

Constructor Detail

LogicalExpressionStateObjectback to summary
protected LogicalExpressionStateObject(StateObject parent)

Creates a new LogicalExpressionStateObject.

Parameters
parent:StateObject

The parent of this state object, which cannot be null

Exceptions
NullPointerException:
The given parent cannot be null
LogicalExpressionStateObjectback to summary
protected LogicalExpressionStateObject(StateObject parent, StateObject leftStateObject, StateObject rightStateObject)

Creates a new LogicalExpressionStateObject.

Parameters
parent:StateObject

The parent of this state object, which cannot be null

leftStateObject:StateObject

The StateObject representing the left expression

rightStateObject:StateObject

The StateObject representing the right expression

Exceptions
NullPointerException:
The given parent cannot be null
LogicalExpressionStateObjectback to summary
protected LogicalExpressionStateObject(StateObject parent, String leftJpqlFragment, String rightJpqlFragment)

Creates a new LogicalExpressionStateObject.

Parameters
parent:StateObject

The parent of this state object, which cannot be null

leftJpqlFragment:String

The string representation of the left expression to parse and to convert into a StateObject

rightJpqlFragment:String

The string representation of the right expression to parse and to convert into a StateObject

Exceptions
NullPointerException:
The given parent cannot be null

Method Detail

getExpressionback to summary
public LogicalExpression getExpression()

Overrides org.eclipse.persistence.jpa.jpql.tools.model.query.CompoundExpressionStateObject.getExpression.

Implements org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject.getExpression.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject.getExpression.

Returns the actual parsed object if this StateObject representation of the JPQL query was created by parsing an existing JPQL query.

Returns:LogicalExpression

The parsed object when a JPQL query is parsed and converted into a StateObject or null when the JPQL query is manually created (i.e. not from a string)

Annotations
@Override