public class ConcatExpressionStateObject extends AbstractListHolderStateObject<StateObject>
CONCAT
function returns a string that is a concatenation of its arguments.
JPA 1.0:
expression ::= CONCAT(string_primary, string_primary)
expression ::= CONCAT(string_primary, string_primary {, string_primary}*)
ConcatExpression
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STRING_PRIMARY_STATE_OBJECT_LIST
Notifies the content of the list of
StateObject representing the string primaries
has changed. |
Constructor and Description |
---|
ConcatExpressionStateObject(StateObject parent)
Creates a new
ConcatExpressionStateObject . |
ConcatExpressionStateObject(StateObject parent,
java.util.List<? extends StateObject> stateObjects)
Creates a new
ConcatExpressionStateObject . |
ConcatExpressionStateObject(StateObject parent,
StateObject... stateObjects)
Creates a new
ConcatExpressionStateObject . |
Modifier and Type | Method and Description |
---|---|
void |
accept(StateObjectVisitor visitor)
Visits this
StateObject by the given visitor . |
ConcatExpression |
getExpression()
Returns the actual parsed object if this
StateObject representation of the JPQL query
was created by parsing an existing JPQL query. |
boolean |
isEquivalent(StateObject stateObject)
Determines whether the given
StateObject is equivalent to this one, i.e. |
void |
setExpression(ConcatExpression expression)
Keeps a reference of the
parsed object object, which should only be
done when this object is instantiated during the conversion of a parsed JPQL query into
StateObjects . |
addItem, addItems, addListChangeListener, canMoveDown, canMoveUp, getItem, hasItems, items, itemsSize, moveDown, moveUp, removeItem, removeItems, removeListChangeListener
addPropertyChangeListener, children, decorate, equals, findIdentificationVariable, getDeclaration, getDecorator, getGrammar, getManagedTypeProvider, getParent, getQueryBuilder, getRoot, getType, getType, getTypeHelper, getTypeRepository, hashCode, isDecorated, removePropertyChangeListener, setExpression, setParent, toString, toString, toText
addPropertyChangeListener, children, decorate, findIdentificationVariable, getDeclaration, getDecorator, getGrammar, getManagedTypeProvider, getParent, getQueryBuilder, getRoot, isDecorated, removePropertyChangeListener, setParent, toString, toText
public static final java.lang.String STRING_PRIMARY_STATE_OBJECT_LIST
StateObject
representing the string primaries
has changed.public ConcatExpressionStateObject(StateObject parent)
ConcatExpressionStateObject
.parent
- The parent of this state object, which cannot be null
java.lang.NullPointerException
- The given parent cannot be null
public ConcatExpressionStateObject(StateObject parent, java.util.List<? extends StateObject> stateObjects)
ConcatExpressionStateObject
.stateObjects
- The list of StateObject
representing the encapsulated expressionspublic ConcatExpressionStateObject(StateObject parent, StateObject... stateObjects)
ConcatExpressionStateObject
.parent
- The parent of this state object, which cannot be null
stateObjects
- The list of StateObject
representing the encapsulated expressionsjava.lang.NullPointerException
- The given parent cannot be null
public void accept(StateObjectVisitor visitor)
StateObject
by the given visitor
.visitor
- The visitor
to visit this objectpublic ConcatExpression getExpression()
StateObject
representation of the JPQL query
was created by parsing an existing JPQL query.getExpression
in interface StateObject
getExpression
in class AbstractStateObject
StateObject
or null
when the JPQL query is manually created (i.e. not from a string)public 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 void setExpression(ConcatExpression expression)
parsed object
object, which should only be
done when this object is instantiated during the conversion of a parsed JPQL query into
StateObjects
.expression
- The parsed object
representing a CONCAT
expressionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference