public abstract class PatternMatchNode extends ConditionNode
Modifier and Type | Field and Description |
---|---|
protected char |
escapeChar |
protected boolean |
ignoringCase |
protected Pattern |
pattern |
protected boolean |
patternCompiled |
children, id, parent
ADD, AND, BETWEEN, BITWISE_AND, BITWISE_LEFT_SHIFT, BITWISE_NOT, BITWISE_OR, BITWISE_RIGHT_SHIFT, BITWISE_XOR, DB_PATH, DIVIDE, EQUAL_TO, FALSE, GREATER_THAN, GREATER_THAN_EQUAL_TO, IN, LESS_THAN, LESS_THAN_EQUAL_TO, LIKE, LIKE_IGNORE_CASE, LIST, MULTIPLY, NEGATIVE, NOT, NOT_BETWEEN, NOT_EQUAL_TO, NOT_IN, NOT_LIKE, NOT_LIKE_IGNORE_CASE, OBJ_PATH, OR, PRUNED_NODE, SUBTRACT, TRUE, type
Modifier and Type | Method and Description |
---|---|
protected void |
appendChildrenAsEJBQL(List<Object> parameterAccumulator,
Appendable out,
String rootId)
Encodes child of this node with specified index to EJBQL
|
char |
getEscapeChar()
This method will return an escape character for the like
clause.
|
protected Pattern |
getPattern() |
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's
list of children.
|
protected boolean |
matchPattern(String string) |
void |
setEscapeChar(char value)
This method allows the setting of the escape character.
|
jjtSetParent
appendAsEJBQL, appendAsEJBQL, appendAsEscapedString, appendAsString, appendScalarAsString, connectChildren, encodeAsEJBQL, encodeAsString, encodeScalarAsEJBQL, evaluate, evaluateChild, evaluateNode, expName, flattenTree, getEJBQLExpressionOperator, getExpressionOperator, getOperand, getOperandCount, getPathAliases, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, notExp, pruneNodeForPrunedChild, setOperand, unwrapChild, wrapChild
andExp, andExp, deepCopy, encodeAsXML, equals, expWithParameters, expWithParameters, filter, filterObjects, first, fromString, getType, joinExp, joinExp, match, orExp, orExp, params, params, paramsArray, setType, shallowCopy, toEJBQL, toEJBQL, toString, transform, transformExpression, traverse, traverse
protected transient Pattern pattern
protected transient boolean patternCompiled
protected boolean ignoringCase
protected char escapeChar
public char getEscapeChar()
This method will return an escape character for the like
clause. The escape character will eventually end up in the
query as ...(t0.foo LIKE ? {escape '|'})
where the
pipe symbol is the escape character.
Note that having no escape character is represented as the character 0.
public void setEscapeChar(char value)
This method allows the setting of the escape character. The escape character can be used in a LIKE clause. The character 0 signifies no escape character. The escape character '?' is disallowed.
protected boolean matchPattern(String string)
protected Pattern getPattern()
public void jjtAddChild(Node n, int i)
Node
jjtAddChild
in interface Node
jjtAddChild
in class SimpleNode
protected void appendChildrenAsEJBQL(List<Object> parameterAccumulator, Appendable out, String rootId) throws IOException
SimpleNode
appendChildrenAsEJBQL
in class SimpleNode
IOException
Copyright © 2001–2015 Apache Cayenne. All rights reserved.