sqll wall

This commit is contained in:
温少
2012-03-22 18:16:54 +08:00
parent 827170f879
commit 019f54ab8f
10 changed files with 216 additions and 9 deletions
@@ -92,4 +92,27 @@ public enum SQLBinaryOperator {
this.name = name;
this.priority = priority;
}
public boolean isRelational() {
switch (this) {
case Equality:
case Like:
case NotEqual:
case GreaterThan:
case GreaterThanOrEqual:
case LessThan:
case LessThanOrEqual:
case LessThanOrGreater:
case NotLike:
case NotLessThan:
case NotGreaterThan:
case RLike:
case NotRLike:
case RegExp:
case NotRegExp:
return true;
default:
return false;
}
}
}