T
- the type of the contained valuepublic abstract class AbstractValueNode<T> extends AbstractNode
getContent()
.EMPTY_NODE
Constructor and Description |
---|
AbstractValueNode(T content)
Constructs a new Value Node.
|
Modifier and Type | Method and Description |
---|---|
ConcatNode |
concat(AbstractValueNode node)
Helper that allows to create
ConcatNode without having to instantiate new objects. |
EndsWith |
endsWith(AbstractValueNode node)
Helper that allows to create
EndsWith without having to instantiate new objects. |
EqualsNode |
eq(AbstractValueNode node)
Helper method used to easily create expressions such as "VALUE1 = VALUE2" without having to instantiate new
objects.
|
boolean |
equals(Object o) |
T |
getContent() |
GreaterThanNode |
greaterThan(AbstractValueNode node)
Helper that allows to create
GreaterThanNode without having to instantiate new objects. |
int |
hashCode() |
InNode |
in(Collection<AbstractValueNode> values)
Helper that allows to create
InNode without having to instantiate new objects. |
InNode |
inStrings(Collection<String> values)
Helper that allows to create
InNode without having to instantiate new objects. |
InSubQueryNode |
inSubQuery(String subQuery,
Map<String,Object> parameters)
Helper that allows to create
InSubQueryNode without having to instantiate new objects. |
LesserThanNode |
lesserThan(AbstractValueNode node)
Helper that allows to create
LesserThanNode without having to instantiate new objects. |
NotEqualsNode |
notEq(AbstractValueNode node)
Just as
eq(AbstractValueNode) , this method is a helper to create expressions without having to
instantiate new objects. |
StartsWith |
startsWith(AbstractValueNode node)
Helper that allows to create
StartsWith without having to instantiate new objects. |
public AbstractValueNode(T content)
content
- the node contentpublic EqualsNode eq(AbstractValueNode node)
equals(Object)
.node
- the node that will be the second operand of the equalsEqualsNode
that has the current object as the fist operand, and the parameter as the second
operandpublic NotEqualsNode notEq(AbstractValueNode node)
eq(AbstractValueNode)
, this method is a helper to create expressions without having to
instantiate new objects.node
- the node that will be the second operand of the "not equals" nodeNotEqualsNode
composed of the current object as the first operand and the parameter as
the second operandpublic StartsWith startsWith(AbstractValueNode node)
StartsWith
without having to instantiate new objects.node
- the node that will be the second operand of the "like" nodeStartsWith
where the current object is the first operand and the parameter is the second operandpublic EndsWith endsWith(AbstractValueNode node)
EndsWith
without having to instantiate new objects.node
- the node that will be the second operand of the "like" nodeStartsWith
where the current object is the first operand and the parameter is the second operandpublic GreaterThanNode greaterThan(AbstractValueNode node)
GreaterThanNode
without having to instantiate new objects.node
- the node that will be the second operand of the ">=" nodeGreaterThanNode
where the current object is the first operand and the parameter is the second
operandpublic LesserThanNode lesserThan(AbstractValueNode node)
LesserThanNode
without having to instantiate new objects.node
- the node that will be the second operand of the "<=" nodeLesserThanNode
where the current object is the first operand and the parameter is the second
operandpublic InNode in(Collection<AbstractValueNode> values)
InNode
without having to instantiate new objects.values
- a collection of nodesInNode
where the current object is the first operand and the parameter is the second
operandpublic InNode inStrings(Collection<String> values)
InNode
without having to instantiate new objects.values
- a collection of stringInNode
where the current object is the first operand and the parameter is the second
operandpublic InSubQueryNode inSubQuery(String subQuery, Map<String,Object> parameters)
InSubQueryNode
without having to instantiate new objects.subQuery
- the sub query in plain HQL languageparameters
- the named parameters for the sub queryInSubQueryNode
where the current object is the first operand and the sub query is the second
operandpublic ConcatNode concat(AbstractValueNode node)
ConcatNode
without having to instantiate new objects.node
- the node that will be the second operand of the concatConcatNode
that has the current object as the fist operand, and the parameter as the second
operandpublic T getContent()
Copyright © 2004–2022 XWiki. All rights reserved.