public class LikeExpression extends BinaryExpression
left, right| 构造器和说明 |
|---|
LikeExpression() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
init(Query q)
Init the expression, we over-ride here so that if the RHS is fixed we can
init the pattern that will be used to match the expression.
|
boolean |
isIgnoreCase() |
boolean |
isNot() |
boolean |
isTrue(Object o,
Query q)
Returns whether the LHS is "LIKE" the RHS.
|
void |
setIgnoreCase(boolean v) |
void |
setNot(boolean v) |
String |
toString()
Returns a string version of the expression.
|
getExpectedReturnType, getLeft, getRight, getValue, hasFixedResult, setLeft, setRightisBracketed, setBracketedpublic boolean isIgnoreCase()
public void init(Query q) throws QueryParseException
init 在类中 BinaryExpressionq - The Query object.QueryParseException - If the LHS and/or RHS cannot be inited.public void setIgnoreCase(boolean v)
public boolean isNot()
public void setNot(boolean v)
public boolean isTrue(Object o, Query q) throws QueryExecutionException
null then true
is returned. Also, if either the LHS or RHS is not null and one is null then false
is returned.isTrue 在类中 Expressiono - The object to evaluate the expression on.q - The Query object.true if the LHS is "LIKE" the RHS, false if not. And using
"NOT" will invert the result.QueryExecutionException - If the expression cannot be evaluated.public String toString()
Expression[ NOT ] [ $ ]LIKEExpression
toString 在类中 ExpressionCopyright © 2021. All rights reserved.