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_NOT, BITWISE_OR, 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 |
---|---|
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
connectChildren, encodeAsEJBQL, encodeAsEscapedString, encodeAsString, encodeChildrenAsEJBQL, encodeScalarAsString, evaluate, evaluateChild, evaluateNode, expName, flattenTree, getEJBQLExpressionOperator, getExpressionOperator, getOperand, getOperandCount, getPathAliases, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, notExp, pruneNodeForPrunedChild, setOperand, unwrapChild, wrapChild
andExp, deepCopy, encodeAsXML, equals, expWithParameters, expWithParameters, filter, filterObjects, first, fromString, getType, joinExp, match, orExp, setType, shallowCopy, 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 characyer '?' 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
Copyright © 2001–2018 Apache Cayenne. All rights reserved.