Condition通常是复杂查询,值的内容是Expression,而Terms通常是单表简单查询,值的内容是Express:

对象

描述

new Condition().and(exp1)

.or(exp2, exp3)

.orOr(exp4,exp5)

.orAnd(exp6, exp7)

.andOr(exp8, exp9, exp10);

exp1 and (exp2 or exp3)

or (exp4 or exp5)

or (exp6 and exp7)

and (exp8 or exp9 or exp 10);

 

new Terms()

.or(e1, e2, e3)

.and(e4)

.orAnd(e5, e6)

e1 or e2 or e3 and e4 or (e5 and e6);

new Terms()

.and(e1)

.orAnd(e2, e3, e4)

.or(new Terms().orAnd(e5, e6).orAnd(e7, e8))

e1 or (e2 and e3 and e4) or 

((e5 and e6) or (e7 and e8));

目录
Copyright © objectsql.com 2021 闽ICP备17009107号-3

闽公网安备 35020302035600号