提交 7cd03daa authored 作者: Thomas Mueller's avatar Thomas Mueller

Formatting

上级 77a8e194
......@@ -349,7 +349,7 @@ public class DbSettings extends SettingsBase {
public static DbSettings getInstance(HashMap<String, String> s) {
return new DbSettings(s);
}
/**
* INTERNAL.
* Get the default settings. Those must not be modified.
......
......@@ -288,7 +288,7 @@ public class ConditionAndOr extends Condition {
public boolean isDisjunctive() {
return andOrType == OR || left.isDisjunctive() || right.isDisjunctive();
}
/**
* Get the left or the right sub-expression of this condition.
*
......
......@@ -199,7 +199,7 @@ public class ConditionIn extends Condition {
public boolean isDisjunctive() {
return true;
}
/**
* Add an additional element if possible. Example: given two conditions
* A IN(1, 2) OR A=3, the constant 3 is added: A IN(1, 2, 3).
......
......@@ -150,7 +150,7 @@ public class ConditionInConstantSet extends Condition {
@Override
public boolean isDisjunctive() {
return true;
}
}
/**
* Add an additional element if possible. Example: given two conditions
......
......@@ -187,5 +187,6 @@ public class ConditionInSelect extends Condition {
@Override
public boolean isDisjunctive() {
return true;
}
}
}
......@@ -264,7 +264,7 @@ public abstract class Expression {
/**
* Allows to check if the related expression is under conjunctive format.
*
*
* @return if the related expression has the logic operator OR.
*/
public boolean isDisjunctive() {
......
......@@ -332,22 +332,23 @@ public class IndexCondition {
}
}
/**
/**
* Check if this index condition is of the type equality.
*
* @param constantExpression if the inner node is a constant expression
* @param constantExpression if the inner node
* is a constant expression
* @return true if this is a equality condition
*/
public boolean isEquality(boolean constantExpression) {
switch (compareType) {
case Comparison.EQUAL:
case Comparison.EQUAL_NULL_SAFE:
return !constantExpression || expression.isConstant();
case Comparison.EQUAL_NULL_SAFE:
return !constantExpression || expression.isConstant();
default:
return false;
}
}
public int getCompareType() {
return compareType;
}
......
......@@ -24,7 +24,7 @@ class RangeCursor implements Cursor {
RangeCursor(long start, long end) {
this(start, end, 1);
}
RangeCursor(long start, long end, long step) {
this.start = start;
this.end = end;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论