Class QueryLike<QL extends QueryLike<QL>>

java.lang.Object
cool.scx.data.query.QueryLike<QL>
Type Parameters:
QL - QL
All Implemented Interfaces:
Query
Direct Known Subclasses:
Condition, Junction, Not, OrderBy, WhereClause

public abstract class QueryLike<QL extends QueryLike<QL>> extends Object implements Query
QueryLike
Version:
0.0.1
Author:
scx567888
  • Constructor Details

    • QueryLike

      public QueryLike()
  • Method Details

    • where

      public QL where(Where where)
      Description copied from interface: Query
      设置 过滤条件
      Specified by:
      where in interface Query
    • orderBys

      public QL orderBys(OrderBy... orderBys)
      Description copied from interface: Query
      设置 排序列表
      Specified by:
      orderBys in interface Query
    • offset

      public QL offset(long offset)
      Description copied from interface: Query
      设置 偏移量
      Specified by:
      offset in interface Query
    • limit

      public QL limit(long limit)
      Description copied from interface: Query
      设置 limit
      Specified by:
      limit in interface Query
    • getWhere

      public Where getWhere()
      Description copied from interface: Query
      获取 过滤条件
      Specified by:
      getWhere in interface Query
    • getOrderBys

      public OrderBy[] getOrderBys()
      Description copied from interface: Query
      获取 排序列表
      Specified by:
      getOrderBys in interface Query
    • getOffset

      public Long getOffset()
      Description copied from interface: Query
      获取 偏移量
      Specified by:
      getOffset in interface Query
    • getLimit

      public Long getLimit()
      Description copied from interface: Query
      获取 limit
      Specified by:
      getLimit in interface Query
    • clearWhere

      public QL clearWhere()
      Description copied from interface: Query
      清除 过滤条件
      Specified by:
      clearWhere in interface Query
    • clearOrderBys

      public QL clearOrderBys()
      Description copied from interface: Query
      清除 排序列表
      Specified by:
      clearOrderBys in interface Query
    • clearOffset

      public QL clearOffset()
      Description copied from interface: Query
      清除 偏移量
      Specified by:
      clearOffset in interface Query
    • clearLimit

      public QL clearLimit()
      Description copied from interface: Query
      清除 limit
      Specified by:
      clearLimit in interface Query
    • orderBy

      public QL orderBy(OrderBy... orderBys)
      Description copied from interface: Query
      追加 排序
      Specified by:
      orderBy in interface Query
    • asc

      public QL asc(String selector, BuildControl... controls)
      Description copied from interface: Query
      追加 正序
      Specified by:
      asc in interface Query
    • desc

      public QL desc(String selector, BuildControl... controls)
      Description copied from interface: Query
      追加 倒序
      Specified by:
      desc in interface Query
    • toQuery

      protected abstract QueryImpl toQuery()