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 java.util.function.Predicate<java.lang.Object> |
ignorePolicy
The ignore policy.
|
protected L |
parent
The parent.
|
| 限定符 | 构造器和说明 |
|---|---|
|
AbstractSqlConditionExpression(cn.featherfly.common.db.dialect.Dialect dialect,
java.util.function.Predicate<java.lang.Object> ignorePolicy)
Instantiates a new abstract sql condition expression.
|
protected |
AbstractSqlConditionExpression(cn.featherfly.common.db.dialect.Dialect dialect,
java.util.function.Predicate<java.lang.Object> ignorePolicy,
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)
Condition result.
|
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)
Condition result.
|
java.lang.String |
expression() |
java.util.List<cn.featherfly.hammer.expression.condition.Expression> |
getConditions()
Gets the conditions.
|
java.util.function.Predicate<java.lang.Object> |
getIgnorePolicy()
get ignorePolicy value.
|
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.
|
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
protected java.util.function.Predicate<java.lang.Object> ignorePolicy
public AbstractSqlConditionExpression(cn.featherfly.common.db.dialect.Dialect dialect,
java.util.function.Predicate<java.lang.Object> ignorePolicy)
dialect - dialectignorePolicy - the ignore policyprotected AbstractSqlConditionExpression(cn.featherfly.common.db.dialect.Dialect dialect,
java.util.function.Predicate<java.lang.Object> ignorePolicy,
L parent)
dialect - dialectignorePolicy - the ignore policyparent - 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)
O - the generic typeT - the generic typeR - the generic typerepository - the repositoryproperty - the propertyvalue - the valuefactory - the factoryprotected <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)
T - the generic typeR - the generic typerepository - the repositoryproperty - the propertyfactory - the factorypublic java.util.function.Predicate<java.lang.Object> getIgnorePolicy()
public java.util.List<cn.featherfly.hammer.expression.condition.Expression> getConditions()