L - the generic typepublic abstract class AbstractSqlConditionExpression<L>
extends java.lang.Object
implements cn.featherfly.common.db.builder.SqlBuilder, cn.featherfly.hammer.expression.condition.ParamedExpression
sql condition group builder sql条件逻辑组构造器
.| 限定符和类型 | 字段和说明 |
|---|---|
protected cn.featherfly.common.db.dialect.Dialect |
dialect
The dialect.
|
protected L |
parent
The parent.
|
| 限定符 | 构造器和说明 |
|---|---|
|
AbstractSqlConditionExpression(cn.featherfly.common.db.dialect.Dialect dialect)
Instantiates a new abstract sql condition expression.
|
protected |
AbstractSqlConditionExpression(cn.featherfly.common.db.dialect.Dialect dialect,
L parent)
Instantiates a new abstract sql condition expression.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.lang.Object |
addCondition(cn.featherfly.hammer.expression.condition.Expression condition)
Adds the condition.
|
java.lang.String |
build() |
protected <O,T,R> com.speedment.common.tuple.Tuple2<java.lang.String,java.lang.String> |
conditionResult(cn.featherfly.common.lang.function.SerializableFunction<O,T> repository,
cn.featherfly.common.lang.function.SerializableFunction<T,R> property,
java.lang.Object value,
cn.featherfly.common.repository.mapping.MappingFactory factory) |
protected <T,R> com.speedment.common.tuple.Tuple3<java.lang.String,java.lang.String,java.lang.Object> |
conditionResult(cn.featherfly.common.lang.function.SerializableSupplier<T> repository,
cn.featherfly.common.lang.function.SerializableFunction<T,R> property,
cn.featherfly.common.repository.mapping.MappingFactory factory) |
java.lang.String |
expression() |
java.util.List<cn.featherfly.hammer.expression.condition.Expression> |
getConditions()
Gets the conditions.
|
java.lang.Object |
getParam() |
java.util.List<java.lang.Object> |
getParams()
Gets the params.
|
protected <T,R> java.lang.String |
getPropertyName(cn.featherfly.common.lang.function.SerializableFunction<T,R> name)
Gets the property name.
|
boolean |
isIgnoreEmpty()
Checks if is ignore empty.
|
void |
setIgnoreEmpty(boolean ignoreEmpty)
Sets the ignore empty.
|
protected <R> java.util.List<com.speedment.common.tuple.Tuple2<java.lang.String,java.util.Optional<R>>> |
supplier(cn.featherfly.common.lang.LambdaUtils.SerializableSupplierLambdaInfo<R> info,
cn.featherfly.common.repository.mapping.ClassMapping<?> classMapping)
Supplier.
|
java.lang.String |
toString() |
protected L parent
protected cn.featherfly.common.db.dialect.Dialect dialect
public AbstractSqlConditionExpression(cn.featherfly.common.db.dialect.Dialect dialect)
dialect - dialectprotected AbstractSqlConditionExpression(cn.featherfly.common.db.dialect.Dialect dialect,
L parent)
dialect - dialectparent - parent grouppublic java.lang.String build()
build 在接口中 cn.featherfly.common.repository.builder.Builderpublic java.lang.String expression()
expression 在接口中 cn.featherfly.hammer.expression.condition.Expressionpublic java.lang.Object getParam()
getParam 在接口中 cn.featherfly.hammer.expression.condition.ParamedExpressionpublic java.util.List<java.lang.Object> getParams()
public java.lang.String toString()
toString 在类中 java.lang.Objectprotected <T,R> java.lang.String getPropertyName(cn.featherfly.common.lang.function.SerializableFunction<T,R> name)
T - the generic typeR - the generic typename - the nameprotected java.lang.Object addCondition(cn.featherfly.hammer.expression.condition.Expression condition)
condition - the conditionprotected <R> java.util.List<com.speedment.common.tuple.Tuple2<java.lang.String,java.util.Optional<R>>> supplier(cn.featherfly.common.lang.LambdaUtils.SerializableSupplierLambdaInfo<R> info,
cn.featherfly.common.repository.mapping.ClassMapping<?> classMapping)
R - the generic typeinfo - the infoclassMapping - the class mappingprotected <O,T,R> com.speedment.common.tuple.Tuple2<java.lang.String,java.lang.String> conditionResult(cn.featherfly.common.lang.function.SerializableFunction<O,T> repository,
cn.featherfly.common.lang.function.SerializableFunction<T,R> property,
java.lang.Object value,
cn.featherfly.common.repository.mapping.MappingFactory factory)
protected <T,R> com.speedment.common.tuple.Tuple3<java.lang.String,java.lang.String,java.lang.Object> conditionResult(cn.featherfly.common.lang.function.SerializableSupplier<T> repository,
cn.featherfly.common.lang.function.SerializableFunction<T,R> property,
cn.featherfly.common.repository.mapping.MappingFactory factory)
public boolean isIgnoreEmpty()
public void setIgnoreEmpty(boolean ignoreEmpty)
ignoreEmpty - the new ignore emptypublic java.util.List<cn.featherfly.hammer.expression.condition.Expression> getConditions()