Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
a06e2742
提交
a06e2742
authored
11月 22, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Move condition expressions into own package
上级
d04b4cb7
隐藏空白字符变更
内嵌
并排
正在显示
27 个修改的文件
包含
85 行增加
和
34 行删除
+85
-34
Parser.java
h2/src/main/org/h2/command/Parser.java
+8
-8
Insert.java
h2/src/main/org/h2/command/dml/Insert.java
+2
-2
MergeUsing.java
h2/src/main/org/h2/command/dml/MergeUsing.java
+1
-1
Select.java
h2/src/main/org/h2/command/dml/Select.java
+2
-2
ExpressionColumn.java
h2/src/main/org/h2/expression/ExpressionColumn.java
+1
-0
ExpressionVisitor.java
h2/src/main/org/h2/expression/ExpressionVisitor.java
+1
-1
Parameter.java
h2/src/main/org/h2/expression/Parameter.java
+1
-0
ValueExpression.java
h2/src/main/org/h2/expression/ValueExpression.java
+1
-0
CompareLike.java
h2/src/main/org/h2/expression/condition/CompareLike.java
+5
-1
Comparison.java
h2/src/main/org/h2/expression/condition/Comparison.java
+6
-1
Condition.java
h2/src/main/org/h2/expression/condition/Condition.java
+2
-1
ConditionAndOr.java
h2/src/main/org/h2/expression/condition/ConditionAndOr.java
+4
-1
ConditionExists.java
h2/src/main/org/h2/expression/condition/ConditionExists.java
+3
-1
ConditionIn.java
h2/src/main/org/h2/expression/condition/ConditionIn.java
+6
-1
ConditionInConstantSet.java
...n/org/h2/expression/condition/ConditionInConstantSet.java
+4
-1
ConditionInParameter.java
...ain/org/h2/expression/condition/ConditionInParameter.java
+6
-1
ConditionInSelect.java
...c/main/org/h2/expression/condition/ConditionInSelect.java
+4
-1
ConditionNot.java
h2/src/main/org/h2/expression/condition/ConditionNot.java
+4
-1
package.html
h2/src/main/org/h2/expression/condition/package.html
+14
-0
package.html
h2/src/main/org/h2/expression/package.html
+1
-1
FullText.java
h2/src/main/org/h2/fulltext/FullText.java
+2
-2
IndexCondition.java
h2/src/main/org/h2/index/IndexCondition.java
+1
-1
IndexCursor.java
h2/src/main/org/h2/index/IndexCursor.java
+1
-1
ViewIndex.java
h2/src/main/org/h2/index/ViewIndex.java
+1
-1
Column.java
h2/src/main/org/h2/table/Column.java
+1
-1
TableFilter.java
h2/src/main/org/h2/table/TableFilter.java
+2
-2
TestPattern.java
h2/src/test/org/h2/test/unit/TestPattern.java
+1
-1
没有找到文件。
h2/src/main/org/h2/command/Parser.java
浏览文件 @
a06e2742
...
...
@@ -149,14 +149,6 @@ import org.h2.engine.UserAggregate;
import
org.h2.expression.Alias
;
import
org.h2.expression.BinaryOperation
;
import
org.h2.expression.BinaryOperation.OpType
;
import
org.h2.expression.CompareLike
;
import
org.h2.expression.Comparison
;
import
org.h2.expression.ConditionAndOr
;
import
org.h2.expression.ConditionExists
;
import
org.h2.expression.ConditionIn
;
import
org.h2.expression.ConditionInParameter
;
import
org.h2.expression.ConditionInSelect
;
import
org.h2.expression.ConditionNot
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.ExpressionList
;
...
...
@@ -181,6 +173,14 @@ import org.h2.expression.analysis.WindowFrameExclusion;
import
org.h2.expression.analysis.WindowFrameUnits
;
import
org.h2.expression.analysis.WindowFunction
;
import
org.h2.expression.analysis.WindowFunctionType
;
import
org.h2.expression.condition.CompareLike
;
import
org.h2.expression.condition.Comparison
;
import
org.h2.expression.condition.ConditionAndOr
;
import
org.h2.expression.condition.ConditionExists
;
import
org.h2.expression.condition.ConditionIn
;
import
org.h2.expression.condition.ConditionInParameter
;
import
org.h2.expression.condition.ConditionInSelect
;
import
org.h2.expression.condition.ConditionNot
;
import
org.h2.expression.function.DateTimeFunctions
;
import
org.h2.expression.function.Function
;
import
org.h2.expression.function.FunctionCall
;
...
...
h2/src/main/org/h2/command/dml/Insert.java
浏览文件 @
a06e2742
...
...
@@ -18,12 +18,12 @@ import org.h2.engine.Mode;
import
org.h2.engine.Right
;
import
org.h2.engine.Session
;
import
org.h2.engine.UndoLogRecord
;
import
org.h2.expression.Comparison
;
import
org.h2.expression.ConditionAndOr
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.Parameter
;
import
org.h2.expression.ValueExpression
;
import
org.h2.expression.condition.Comparison
;
import
org.h2.expression.condition.ConditionAndOr
;
import
org.h2.index.Index
;
import
org.h2.index.PageDataIndex
;
import
org.h2.message.DbException
;
...
...
h2/src/main/org/h2/command/dml/MergeUsing.java
浏览文件 @
a06e2742
...
...
@@ -16,9 +16,9 @@ import org.h2.command.Prepared;
import
org.h2.engine.Right
;
import
org.h2.engine.Session
;
import
org.h2.engine.User
;
import
org.h2.expression.ConditionAndOr
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.condition.ConditionAndOr
;
import
org.h2.message.DbException
;
import
org.h2.result.ResultInterface
;
import
org.h2.result.Row
;
...
...
h2/src/main/org/h2/command/dml/Select.java
浏览文件 @
a06e2742
...
...
@@ -18,8 +18,6 @@ import org.h2.engine.Database;
import
org.h2.engine.Session
;
import
org.h2.engine.SysProperties
;
import
org.h2.expression.Alias
;
import
org.h2.expression.Comparison
;
import
org.h2.expression.ConditionAndOr
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.ExpressionVisitor
;
...
...
@@ -27,6 +25,8 @@ import org.h2.expression.Parameter;
import
org.h2.expression.Wildcard
;
import
org.h2.expression.analysis.DataAnalysisOperation
;
import
org.h2.expression.analysis.Window
;
import
org.h2.expression.condition.Comparison
;
import
org.h2.expression.condition.ConditionAndOr
;
import
org.h2.index.Cursor
;
import
org.h2.index.Index
;
import
org.h2.index.IndexType
;
...
...
h2/src/main/org/h2/expression/ExpressionColumn.java
浏览文件 @
a06e2742
...
...
@@ -12,6 +12,7 @@ import org.h2.command.dml.SelectGroups;
import
org.h2.command.dml.SelectListColumnResolver
;
import
org.h2.engine.Database
;
import
org.h2.engine.Session
;
import
org.h2.expression.condition.Comparison
;
import
org.h2.index.IndexCondition
;
import
org.h2.message.DbException
;
import
org.h2.schema.Constant
;
...
...
h2/src/main/org/h2/expression/ExpressionVisitor.java
浏览文件 @
a06e2742
...
...
@@ -220,7 +220,7 @@ public class ExpressionVisitor {
* @param resolver the resolver
* @return the new visitor
*/
static
ExpressionVisitor
getNotFromResolverVisitor
(
ColumnResolver
resolver
)
{
public
static
ExpressionVisitor
getNotFromResolverVisitor
(
ColumnResolver
resolver
)
{
return
new
ExpressionVisitor
(
NOT_FROM_RESOLVER
,
0
,
null
,
null
,
null
,
resolver
,
null
,
null
);
}
...
...
h2/src/main/org/h2/expression/Parameter.java
浏览文件 @
a06e2742
...
...
@@ -7,6 +7,7 @@ package org.h2.expression;
import
org.h2.api.ErrorCode
;
import
org.h2.engine.Session
;
import
org.h2.expression.condition.Comparison
;
import
org.h2.message.DbException
;
import
org.h2.table.Column
;
import
org.h2.table.ColumnResolver
;
...
...
h2/src/main/org/h2/expression/ValueExpression.java
浏览文件 @
a06e2742
...
...
@@ -6,6 +6,7 @@
package
org
.
h2
.
expression
;
import
org.h2.engine.Session
;
import
org.h2.expression.condition.Comparison
;
import
org.h2.index.IndexCondition
;
import
org.h2.message.DbException
;
import
org.h2.table.ColumnResolver
;
...
...
h2/src/main/org/h2/expression/CompareLike.java
→
h2/src/main/org/h2/expression/
condition/
CompareLike.java
浏览文件 @
a06e2742
...
...
@@ -3,13 +3,17 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
expression
;
package
org
.
h2
.
expression
.
condition
;
import
java.util.regex.Pattern
;
import
java.util.regex.PatternSyntaxException
;
import
org.h2.api.ErrorCode
;
import
org.h2.engine.Database
;
import
org.h2.engine.Session
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.expression.ValueExpression
;
import
org.h2.index.IndexCondition
;
import
org.h2.message.DbException
;
import
org.h2.table.ColumnResolver
;
...
...
h2/src/main/org/h2/expression/Comparison.java
→
h2/src/main/org/h2/expression/
condition/
Comparison.java
浏览文件 @
a06e2742
...
...
@@ -3,7 +3,7 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
expression
;
package
org
.
h2
.
expression
.
condition
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
...
...
@@ -11,6 +11,11 @@ import org.h2.api.ErrorCode;
import
org.h2.engine.Database
;
import
org.h2.engine.Session
;
import
org.h2.engine.SysProperties
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.expression.Parameter
;
import
org.h2.expression.ValueExpression
;
import
org.h2.index.IndexCondition
;
import
org.h2.message.DbException
;
import
org.h2.table.Column
;
...
...
h2/src/main/org/h2/expression/Condition.java
→
h2/src/main/org/h2/expression/
condition/
Condition.java
浏览文件 @
a06e2742
...
...
@@ -3,8 +3,9 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
expression
;
package
org
.
h2
.
expression
.
condition
;
import
org.h2.expression.Expression
;
import
org.h2.value.Value
;
import
org.h2.value.ValueBoolean
;
...
...
h2/src/main/org/h2/expression/ConditionAndOr.java
→
h2/src/main/org/h2/expression/
condition/
ConditionAndOr.java
浏览文件 @
a06e2742
...
...
@@ -3,10 +3,13 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
expression
;
package
org
.
h2
.
expression
.
condition
;
import
org.h2.engine.Session
;
import
org.h2.engine.SysProperties
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.expression.ValueExpression
;
import
org.h2.message.DbException
;
import
org.h2.table.ColumnResolver
;
import
org.h2.table.TableFilter
;
...
...
h2/src/main/org/h2/expression/ConditionExists.java
→
h2/src/main/org/h2/expression/
condition/
ConditionExists.java
浏览文件 @
a06e2742
...
...
@@ -3,10 +3,12 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
expression
;
package
org
.
h2
.
expression
.
condition
;
import
org.h2.command.dml.Query
;
import
org.h2.engine.Session
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.result.ResultInterface
;
import
org.h2.table.ColumnResolver
;
import
org.h2.table.TableFilter
;
...
...
h2/src/main/org/h2/expression/ConditionIn.java
→
h2/src/main/org/h2/expression/
condition/
ConditionIn.java
浏览文件 @
a06e2742
...
...
@@ -3,11 +3,16 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
expression
;
package
org
.
h2
.
expression
.
condition
;
import
java.util.ArrayList
;
import
org.h2.engine.Database
;
import
org.h2.engine.Session
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.expression.Parameter
;
import
org.h2.expression.ValueExpression
;
import
org.h2.expression.function.Function
;
import
org.h2.expression.function.TableFunction
;
import
org.h2.index.IndexCondition
;
...
...
h2/src/main/org/h2/expression/ConditionInConstantSet.java
→
h2/src/main/org/h2/expression/
condition/
ConditionInConstantSet.java
浏览文件 @
a06e2742
...
...
@@ -3,7 +3,7 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
expression
;
package
org
.
h2
.
expression
.
condition
;
import
java.util.ArrayList
;
import
java.util.TreeSet
;
...
...
@@ -11,6 +11,9 @@ import java.util.TreeSet;
import
org.h2.engine.Database
;
import
org.h2.engine.Mode
;
import
org.h2.engine.Session
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.index.IndexCondition
;
import
org.h2.message.DbException
;
import
org.h2.table.ColumnResolver
;
...
...
h2/src/main/org/h2/expression/ConditionInParameter.java
→
h2/src/main/org/h2/expression/
condition/
ConditionInParameter.java
浏览文件 @
a06e2742
...
...
@@ -3,12 +3,17 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
expression
;
package
org
.
h2
.
expression
.
condition
;
import
java.util.AbstractList
;
import
org.h2.engine.Database
;
import
org.h2.engine.Session
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.expression.Parameter
;
import
org.h2.expression.ValueExpression
;
import
org.h2.index.IndexCondition
;
import
org.h2.table.ColumnResolver
;
import
org.h2.table.TableFilter
;
...
...
h2/src/main/org/h2/expression/ConditionInSelect.java
→
h2/src/main/org/h2/expression/
condition/
ConditionInSelect.java
浏览文件 @
a06e2742
...
...
@@ -3,12 +3,15 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
expression
;
package
org
.
h2
.
expression
.
condition
;
import
org.h2.api.ErrorCode
;
import
org.h2.command.dml.Query
;
import
org.h2.engine.Database
;
import
org.h2.engine.Session
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.index.IndexCondition
;
import
org.h2.message.DbException
;
import
org.h2.result.LocalResult
;
...
...
h2/src/main/org/h2/expression/ConditionNot.java
→
h2/src/main/org/h2/expression/
condition/
ConditionNot.java
浏览文件 @
a06e2742
...
...
@@ -3,9 +3,12 @@
* and the EPL 1.0 (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
package
org
.
h2
.
expression
;
package
org
.
h2
.
expression
.
condition
;
import
org.h2.engine.Session
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.expression.ValueExpression
;
import
org.h2.table.ColumnResolver
;
import
org.h2.table.TableFilter
;
import
org.h2.value.Value
;
...
...
h2/src/main/org/h2/expression/condition/package.html
0 → 100644
浏览文件 @
a06e2742
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Copyright 2004-2018 H2 Group. Multiple-Licensed under the MPL 2.0, Version 1.0,
and under the Eclipse Public License, Version 1.0
Initial Developer: H2 Group
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
lang=
"en"
xml:lang=
"en"
>
<head><meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
/><title>
Javadoc package documentation
</title></head><body
style=
"font: 9pt/130% Tahoma, Arial, Helvetica, sans-serif; font-weight: normal;"
><p>
Condition expressions.
</p></body></html>
\ No newline at end of file
h2/src/main/org/h2/expression/package.html
浏览文件 @
a06e2742
...
...
@@ -9,6 +9,6 @@ Initial Developer: H2 Group
Javadoc package documentation
</title></head><body
style=
"font: 9pt/130% Tahoma, Arial, Helvetica, sans-serif; font-weight: normal;"
><p>
Expressions include mathematical operations,
conditions,
simple values, and others.
Expressions include mathematical operations, simple values, and others.
</p></body></html>
\ No newline at end of file
h2/src/main/org/h2/fulltext/FullText.java
浏览文件 @
a06e2742
...
...
@@ -27,11 +27,11 @@ import java.util.UUID;
import
org.h2.api.Trigger
;
import
org.h2.command.Parser
;
import
org.h2.engine.Session
;
import
org.h2.expression.Comparison
;
import
org.h2.expression.ConditionAndOr
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.ValueExpression
;
import
org.h2.expression.condition.Comparison
;
import
org.h2.expression.condition.ConditionAndOr
;
import
org.h2.jdbc.JdbcConnection
;
import
org.h2.message.DbException
;
import
org.h2.tools.SimpleResultSet
;
...
...
h2/src/main/org/h2/index/IndexCondition.java
浏览文件 @
a06e2742
...
...
@@ -11,10 +11,10 @@ import java.util.HashSet;
import
java.util.List
;
import
org.h2.command.dml.Query
;
import
org.h2.engine.Session
;
import
org.h2.expression.Comparison
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.expression.condition.Comparison
;
import
org.h2.message.DbException
;
import
org.h2.result.ResultInterface
;
import
org.h2.table.Column
;
...
...
h2/src/main/org/h2/index/IndexCursor.java
浏览文件 @
a06e2742
...
...
@@ -9,7 +9,7 @@ import java.util.ArrayList;
import
java.util.HashSet
;
import
org.h2.engine.Session
;
import
org.h2.expression.Comparison
;
import
org.h2.expression.
condition.
Comparison
;
import
org.h2.message.DbException
;
import
org.h2.result.ResultInterface
;
import
org.h2.result.Row
;
...
...
h2/src/main/org/h2/index/ViewIndex.java
浏览文件 @
a06e2742
...
...
@@ -16,8 +16,8 @@ import org.h2.command.dml.Query;
import
org.h2.command.dml.SelectUnion
;
import
org.h2.engine.Constants
;
import
org.h2.engine.Session
;
import
org.h2.expression.Comparison
;
import
org.h2.expression.Parameter
;
import
org.h2.expression.condition.Comparison
;
import
org.h2.message.DbException
;
import
org.h2.result.LocalResult
;
import
org.h2.result.ResultInterface
;
...
...
h2/src/main/org/h2/table/Column.java
浏览文件 @
a06e2742
...
...
@@ -15,11 +15,11 @@ import org.h2.engine.Constants;
import
org.h2.engine.Domain
;
import
org.h2.engine.Mode
;
import
org.h2.engine.Session
;
import
org.h2.expression.ConditionAndOr
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionVisitor
;
import
org.h2.expression.SequenceValue
;
import
org.h2.expression.ValueExpression
;
import
org.h2.expression.condition.ConditionAndOr
;
import
org.h2.message.DbException
;
import
org.h2.result.Row
;
import
org.h2.schema.Schema
;
...
...
h2/src/main/org/h2/table/TableFilter.java
浏览文件 @
a06e2742
...
...
@@ -15,10 +15,10 @@ import org.h2.command.dml.Select;
import
org.h2.engine.Right
;
import
org.h2.engine.Session
;
import
org.h2.engine.SysProperties
;
import
org.h2.expression.Comparison
;
import
org.h2.expression.ConditionAndOr
;
import
org.h2.expression.Expression
;
import
org.h2.expression.ExpressionColumn
;
import
org.h2.expression.condition.Comparison
;
import
org.h2.expression.condition.ConditionAndOr
;
import
org.h2.index.Index
;
import
org.h2.index.IndexCondition
;
import
org.h2.index.IndexCursor
;
...
...
h2/src/test/org/h2/test/unit/TestPattern.java
浏览文件 @
a06e2742
...
...
@@ -6,7 +6,7 @@
package
org
.
h2
.
test
.
unit
;
import
java.text.Collator
;
import
org.h2.expression.CompareLike
;
import
org.h2.expression.
condition.
CompareLike
;
import
org.h2.test.TestBase
;
import
org.h2.value.CompareMode
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论