类 AbstractCondition<C extends Condition<C>>

java.lang.Object
org.elsfs.tool.sql.abs.CompositeSqlFragment
org.elsfs.tool.sql.abs.AbstractCondition<C>
所有已实现的接口:
Condition<C>, Expression<C>, JoinBetween<C>, JoinEq<C>, JoinGe<C>, JoinGt<C>, JoinIn<C>, JoinIsNotNull<C>, JoinIsNull<C>, JoinLe<C>, JoinLike<C>, JoinLikeLeft<C>, JoinLikeRight<C>, JoinLt<C>, JoinNe<C>, JoinNotBetween<C>, JoinNotIn<C>, JoinNotLike<C>, JoinNotLikeRight<C>, JoinNotLikeLeft<C>, SqlFragment, SqlParameterManagerAware, TableAliasManagerAware, ResolveFieldName
直接已知子类:
AbstractJoin.JoinBuilderImpl.JoinConditionBuilderImpl, AbstractNestCondition, AbstractOrCondition, AbstractSelectCondition.HavingConditionBuilderImpl, AbstractSelectJoin.SelectJoinBuilderImpl.JoinConditionBuilderImpl, AbstractSortableCondition

public abstract class AbstractCondition<C extends Condition<C>> extends CompositeSqlFragment implements Condition<C>, SqlParameterManagerAware, TableAliasManagerAware
抽象条件实现
作者:
zeng
  • 字段详细资料

    • childThis

      protected final C extends Condition<C> childThis
      子类实现
  • 构造器详细资料

    • AbstractCondition

      public AbstractCondition()
  • 方法详细资料

    • eq

      public C eq(boolean condition, String leftField, String rightField)
      从接口复制的说明: JoinEq
      相等条件
      指定者:
      eq 在接口中 JoinEq<C extends Condition<C>>
      参数:
      condition - 条件
      leftField - 左边字段名称
      rightField - 右边字段名称
      返回:
      具体实现
    • eq

      public C eq(boolean condition, String leftField, Consumer<StandardSelectSql> sqlBuilderConsumer)
      从接口复制的说明: JoinEq
      相等条件
      指定者:
      eq 在接口中 JoinEq<C extends Condition<C>>
      参数:
      condition - 条件
      leftField - 左边字段名称
      sqlBuilderConsumer - SQL构建器消费器
      返回:
      具体实现
    • eqValue

      public C eqValue(boolean condition, String leftField, Object rightValue)
      从接口复制的说明: JoinEq
      相等条件
      指定者:
      eqValue 在接口中 JoinEq<C extends Condition<C>>
      参数:
      condition - 条件
      leftField - 左边字段名称
      rightValue - 右边值
      返回:
      具体实现
    • ne

      public C ne(boolean condition, String leftField, String rightField)
      从接口复制的说明: JoinNe
      不相等条件
      指定者:
      ne 在接口中 JoinNe<C extends Condition<C>>
      参数:
      condition - 条件
      leftField - 左边字段名称
      rightField - 右边字段名称
      返回:
      具体实现
    • ne

      public C ne(boolean condition, String leftField, Consumer<StandardSelectSql> sqlBuilderConsumer)
      不相等条件
      指定者:
      ne 在接口中 JoinNe<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      sqlBuilderConsumer - SQL构建器消费器
      condition - 条件
      返回:
      具体实现
    • neValue

      public C neValue(boolean condition, String leftField, Object rightValue)
      从接口复制的说明: JoinNe
      不相等条件
      指定者:
      neValue 在接口中 JoinNe<C extends Condition<C>>
      参数:
      condition - 条件
      leftField - 左边字段名称
      rightValue - 右边值
      返回:
      具体实现
    • lt

      public C lt(boolean condition, String leftField, String rightField)
      小于条件
      指定者:
      lt 在接口中 JoinLt<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightField - 右边字段名称
      condition - 条件
      返回:
      具体实现
    • lt

      public C lt(boolean condition, String leftField, Consumer<StandardSelectSql> sqlBuilderConsumer)
      小于条件
      指定者:
      lt 在接口中 JoinLt<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      sqlBuilderConsumer - SQL构建器消费器
      condition - 条件
      返回:
      具体实现
    • resolveFieldName

      public String resolveFieldName(Enum<?> field)
      解析字段枚举名称
      指定者:
      resolveFieldName 在接口中 ResolveFieldName
      参数:
      field - 字段枚举
      返回:
      字段名称
    • ltValue

      public C ltValue(boolean condition, String leftField, Object rightValue)
      小于条件
      指定者:
      ltValue 在接口中 JoinLt<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightValue - 右边值
      condition - 条件
      返回:
      具体实现
    • le

      public C le(boolean condition, String leftField, String rightField)
      小于等于条件
      指定者:
      le 在接口中 JoinLe<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightField - 右边字段名称
      返回:
      具体实现
    • le

      public C le(boolean condition, String leftField, Consumer<StandardSelectSql> sqlBuilderConsumer)
      小于等于条件
      指定者:
      le 在接口中 JoinLe<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      sqlBuilderConsumer - SQL构建器消费器
      condition - 条件
      返回:
      具体实现
    • leValue

      public C leValue(boolean condition, String leftField, Object rightValue)
      从接口复制的说明: JoinLe
      小于等于条件
      指定者:
      leValue 在接口中 JoinLe<C extends Condition<C>>
      参数:
      condition - 条件
      leftField - 左边字段名称
      rightValue - 右边值
      返回:
      具体实现
    • gt

      public C gt(boolean condition, String leftField, String rightField)
      从接口复制的说明: JoinGt
      大于条件
      指定者:
      gt 在接口中 JoinGt<C extends Condition<C>>
      参数:
      condition - 条件
      leftField - 左边字段名称
      rightField - 右边字段名称
      返回:
      具体实现
    • gt

      public C gt(boolean condition, String leftField, Consumer<StandardSelectSql> sqlBuilderConsumer)
      从接口复制的说明: JoinGt
      大于条件
      指定者:
      gt 在接口中 JoinGt<C extends Condition<C>>
      参数:
      condition - 条件
      leftField - 左边字段名称
      sqlBuilderConsumer - SQL构建器消费器
      返回:
      具体实现
    • gtValue

      public C gtValue(boolean condition, String leftField, Object rightValue)
      大于条件
      指定者:
      gtValue 在接口中 JoinGt<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightValue - 右边值
      condition - 条件
      返回:
      具体实现
    • ge

      public C ge(boolean condition, String leftField, String rightField)
      从接口复制的说明: JoinGe
      大于等于条件
      指定者:
      ge 在接口中 JoinGe<C extends Condition<C>>
      参数:
      condition - 条件
      leftField - 左边字段名称
      rightField - 右边字段名称
      返回:
      具体实现
    • ge

      public C ge(boolean condition, String leftField, Consumer<StandardSelectSql> sqlBuilderConsumer)
      大于等于条件
      指定者:
      ge 在接口中 JoinGe<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      sqlBuilderConsumer - SQL构建器消费器
      condition - 条件
      返回:
      具体实现
    • geValue

      public C geValue(boolean condition, String leftField, Object rightValue)
      大于等于条件
      指定者:
      geValue 在接口中 JoinGe<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightValue - 右边值
      condition - 条件
      返回:
      具体实现
    • between

      public C between(boolean condition, String leftField, String beginField, String endField)
      区间条件
      指定者:
      between 在接口中 JoinBetween<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      beginField - 区间开始字段名称
      endField - 区间结束字段名称
      condition - 条件
      返回:
      具体实现
    • betweenBeginValue

      public C betweenBeginValue(boolean condition, String leftField, Object beginValue, String endField)
      区间条件
      指定者:
      betweenBeginValue 在接口中 JoinBetween<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      beginValue - 区间开始值
      endField - 区间结束字段名称
      condition - 条件
      返回:
      具体实现
    • betweenEndValue

      public C betweenEndValue(boolean condition, String leftField, String beginField, Object endValue)
      区间条件
      指定者:
      betweenEndValue 在接口中 JoinBetween<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      beginField - 区间开始字段名称
      endValue - 区间结束值
      condition - 条件
      返回:
      具体实现
    • betweenValue

      public C betweenValue(boolean condition, String leftField, Object beginValue, Object endValue)
      区间条件
      指定者:
      betweenValue 在接口中 JoinBetween<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      beginValue - 区间开始值
      endValue - 区间结束值
      condition - 条件
      返回:
      具体实现
    • notBetween

      public C notBetween(boolean condition, String leftField, String beginField, String endField)
      非区间条件
      指定者:
      notBetween 在接口中 JoinNotBetween<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      beginField - 区间开始字段名称
      endField - 区间结束字段名称
      condition - 条件
      返回:
      具体实现
    • notBetweenBeginValue

      public C notBetweenBeginValue(boolean condition, String leftField, Object beginValue, String endField)
      非区间条件
      指定者:
      notBetweenBeginValue 在接口中 JoinNotBetween<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      beginValue - 区间开始值
      endField - 区间结束字段名称
      condition - 条件
      返回:
      具体实现
    • notBetweenEndValue

      public C notBetweenEndValue(boolean condition, String leftField, String beginField, Object endValue)
      非区间条件
      指定者:
      notBetweenEndValue 在接口中 JoinNotBetween<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      beginField - 区间开始字段名称
      endValue - 区间结束值
      condition - 条件
      返回:
      具体实现
    • notBetweenValue

      public C notBetweenValue(boolean condition, String leftField, Object beginValue, Object endValue)
      非区间条件
      指定者:
      notBetweenValue 在接口中 JoinNotBetween<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      beginValue - 区间开始值
      endValue - 区间结束值
      condition - 条件
      返回:
      具体实现
    • in

      public C in(boolean condition, String leftField, String... rightFields)
      范围条件
      指定者:
      in 在接口中 JoinIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightFields - 范围字段名称
      condition - 条件
      返回:
      具体实现
    • in

      public C in(String leftField, Collection<String> rightFields)
      范围条件
      指定者:
      in 在接口中 JoinIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightFields - 范围字段名称
      返回:
      具体实现
    • in

      public C in(String leftField, Collection<String> rightFields, Collection<?> rightValues)
      范围条件
      指定者:
      in 在接口中 JoinIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightFields - 范围字段名称
      rightValues - 范围值
      返回:
      具体实现
    • in

      public C in(String leftField, Consumer<StandardSelectSql> sqlBuilderConsumer)
      范围条件
      指定者:
      in 在接口中 JoinIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      sqlBuilderConsumer - SQL构建器消费器
      返回:
      具体实现
    • inValue

      public C inValue(String leftField, Object... rightValues)
      范围条件
      指定者:
      inValue 在接口中 JoinIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightValues - 范围值
      返回:
      具体实现
    • inValue

      public C inValue(String leftField, Collection<?> rightValues)
      范围条件
      指定者:
      inValue 在接口中 JoinIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightValues - 范围值
      返回:
      具体实现
    • notIn

      public C notIn(String leftField, String... rightFields)
      非范围条件
      指定者:
      notIn 在接口中 JoinNotIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightFields - 范围字段名称
      返回:
      具体实现
    • notIn

      public C notIn(String leftField, Collection<String> rightFields)
      非范围条件
      指定者:
      notIn 在接口中 JoinNotIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightFields - 范围字段名称
      返回:
      具体实现
    • notIn

      public C notIn(String leftField, Collection<String> rightFields, Collection<?> rightValues)
      非范围条件
      指定者:
      notIn 在接口中 JoinNotIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightFields - 范围字段名称
      rightValues - 范围值
      返回:
      具体实现
    • notIn

      public C notIn(String leftField, Consumer<StandardSelectSql> sqlBuilderConsumer)
      非范围条件
      指定者:
      notIn 在接口中 JoinNotIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      sqlBuilderConsumer - SQL构建器消费器
      返回:
      具体实现
    • notInValue

      public C notInValue(String leftField, Object... rightValues)
      非范围条件
      指定者:
      notInValue 在接口中 JoinNotIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightValues - 范围值
      返回:
      具体实现
    • notInValue

      public C notInValue(String leftField, Collection<?> rightValues)
      非范围条件
      指定者:
      notInValue 在接口中 JoinNotIn<C extends Condition<C>>
      参数:
      leftField - 左边字段名称
      rightValues - 范围值
      返回:
      具体实现
    • isNull

      public C isNull(String field)
      为空条件
      指定者:
      isNull 在接口中 JoinIsNull<C extends Condition<C>>
      参数:
      field - 字段名称
      返回:
      具体实现
    • isNull

      public C isNull(Consumer<StandardSelectSql> sqlBuilderConsumer)
      为空条件
      指定者:
      isNull 在接口中 JoinIsNull<C extends Condition<C>>
      参数:
      sqlBuilderConsumer - SQL构建器消费器
      返回:
      具体实现
    • isNotNull

      public C isNotNull(String field)
      非空条件
      指定者:
      isNotNull 在接口中 JoinIsNotNull<C extends Condition<C>>
      参数:
      field - 字段名称
      返回:
      具体实现
    • isNotNull

      public C isNotNull(Consumer<StandardSelectSql> sqlBuilderConsumer)
      非空条件
      指定者:
      isNotNull 在接口中 JoinIsNotNull<C extends Condition<C>>
      参数:
      sqlBuilderConsumer - SQL构建器消费器
      返回:
      具体实现
    • like

      public C like(String field, String value)
      模糊匹配条件
      指定者:
      like 在接口中 JoinLike<C extends Condition<C>>
      参数:
      field - 字段名称
      value - 匹配值
      返回:
      具体实现
    • like

      public C like(Enum<?> field, String value)
      模糊匹配条件
      指定者:
      like 在接口中 JoinLike<C extends Condition<C>>
      参数:
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • like

      public C like(String tableAlias, Enum<?> field, String value)
      模糊匹配条件
      指定者:
      like 在接口中 JoinLike<C extends Condition<C>>
      参数:
      tableAlias - 字段表别名
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • likeLeft

      public C likeLeft(String field, String value)
      左模糊匹配条件
      指定者:
      likeLeft 在接口中 JoinLikeLeft<C extends Condition<C>>
      参数:
      field - 字段名称
      value - 匹配值
      返回:
      具体实现
    • likeLeft

      public C likeLeft(Enum<?> field, String value)
      左模糊匹配条件
      指定者:
      likeLeft 在接口中 JoinLikeLeft<C extends Condition<C>>
      参数:
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • likeLeft

      public C likeLeft(String tableAlias, Enum<?> field, String value)
      左模糊匹配条件
      指定者:
      likeLeft 在接口中 JoinLikeLeft<C extends Condition<C>>
      参数:
      tableAlias - 字段表别名
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • likeRight

      public C likeRight(String field, String value)
      右模糊匹配条件
      指定者:
      likeRight 在接口中 JoinLikeRight<C extends Condition<C>>
      参数:
      field - 字段名称
      value - 匹配值
      返回:
      具体实现
    • likeRight

      public C likeRight(Enum<?> field, String value)
      右模糊匹配条件
      指定者:
      likeRight 在接口中 JoinLikeRight<C extends Condition<C>>
      参数:
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • likeRight

      public C likeRight(String tableAlias, Enum<?> field, String value)
      右模糊匹配条件
      指定者:
      likeRight 在接口中 JoinLikeRight<C extends Condition<C>>
      参数:
      tableAlias - 字段表别名
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • notLike

      public C notLike(String field, String value)
      非模糊匹配条件
      指定者:
      notLike 在接口中 JoinNotLike<C extends Condition<C>>
      参数:
      field - 字段名称
      value - 匹配值
      返回:
      具体实现
    • notLike

      public C notLike(Enum<?> field, String value)
      非模糊匹配条件
      指定者:
      notLike 在接口中 JoinNotLike<C extends Condition<C>>
      参数:
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • notLike

      public C notLike(String tableAlias, Enum<?> field, String value)
      非模糊匹配条件
      指定者:
      notLike 在接口中 JoinNotLike<C extends Condition<C>>
      参数:
      tableAlias - 字段表别名
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • notLikeLeft

      public C notLikeLeft(String field, String value)
      非左模糊匹配条件
      指定者:
      notLikeLeft 在接口中 JoinNotLikeLeft<C extends Condition<C>>
      参数:
      field - 字段名称
      value - 匹配值
      返回:
      具体实现
    • notLikeLeft

      public C notLikeLeft(Enum<?> field, String value)
      非左模糊匹配条件
      指定者:
      notLikeLeft 在接口中 JoinNotLikeLeft<C extends Condition<C>>
      参数:
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • notLikeLeft

      public C notLikeLeft(String tableAlias, Enum<?> field, String value)
      非左模糊匹配条件
      指定者:
      notLikeLeft 在接口中 JoinNotLikeLeft<C extends Condition<C>>
      参数:
      tableAlias - 字段表别名
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • notLikeRight

      public C notLikeRight(String field, String value)
      非右模糊匹配条件
      指定者:
      notLikeRight 在接口中 JoinNotLikeLeft<C extends Condition<C>>
      指定者:
      notLikeRight 在接口中 JoinNotLikeRight<C extends Condition<C>>
      参数:
      field - 字段名称
      value - 匹配值
      返回:
      具体实现
    • notLikeRight

      public C notLikeRight(Enum<?> field, String value)
      非右模糊匹配条件
      指定者:
      notLikeRight 在接口中 JoinNotLikeLeft<C extends Condition<C>>
      指定者:
      notLikeRight 在接口中 JoinNotLikeRight<C extends Condition<C>>
      参数:
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • notLikeRight

      public C notLikeRight(String tableAlias, Enum<?> field, String value)
      非右模糊匹配条件
      指定者:
      notLikeRight 在接口中 JoinNotLikeLeft<C extends Condition<C>>
      指定者:
      notLikeRight 在接口中 JoinNotLikeRight<C extends Condition<C>>
      参数:
      tableAlias - 字段表别名
      field - 字段枚举
      value - 匹配值
      返回:
      具体实现
    • expression

      public C expression(String expression, Object... args)
      表达式匹配条件
      指定者:
      expression 在接口中 Expression<C extends Condition<C>>
      参数:
      expression - 表达式
      args - 表达式参数
      返回:
      具体实现
    • nest

      public AbstractNestCondition<C> nest()
      嵌套条件
      指定者:
      nest 在接口中 Condition<C extends Condition<C>>
      返回:
      条件嵌套器
    • or

      public AbstractOrCondition<C> or()
      开始或条件
      指定者:
      or 在接口中 Condition<C extends Condition<C>>
      返回:
      或条件构建器
    • addConditionItem

      protected abstract void addConditionItem(ConditionItem conditionItem)
      添加一个条件
      参数:
      conditionItem - 条件
    • getSqlParameterManager

      public SqlParameterManager getSqlParameterManager()
      获取SQL参数管理器
      指定者:
      getSqlParameterManager 在接口中 SqlParameterManagerAware
      返回:
      SQL参数管理器
    • getTableAliasManager

      public TableAliasManager getTableAliasManager()
      获取表别名管理器
      指定者:
      getTableAliasManager 在接口中 TableAliasManagerAware
      返回:
      表名别管理器