类 CRUDListParam

java.lang.Object
cool.scx.ext.crud.CRUDListParam

public final class CRUDListParam extends Object
a
版本:
1.10.8
作者:
scx567888
  • 字段详细资料

  • 构造器详细资料

    • CRUDListParam

      public CRUDListParam()
  • 方法详细资料

    • checkWhereType

      public static cool.scx.data.query.WhereType checkWhereType(String fieldName, String strWhereType) throws UnknownWhereTypeException
      检查 where 类型
      参数:
      fieldName - f
      strWhereType - s
      返回:
      s
      抛出:
      UnknownWhereTypeException - s
    • checkSortType

      public static cool.scx.data.query.OrderByType checkSortType(String fieldName, String strSortType) throws UnknownSortTypeException
      a
      参数:
      fieldName - a
      strSortType - a
      返回:
      a
      抛出:
      UnknownSortTypeException - a
    • checkWhereBodyParametersSize

      public static void checkWhereBodyParametersSize(String fieldName, cool.scx.data.query.WhereType whereType, Object value1, Object value2) throws WhereBodyParametersSizeErrorException
      检查 whereBody 参数数量是否合法
      参数:
      fieldName - f
      whereType - w
      value1 - v
      value2 - v
      抛出:
      WhereBodyParametersSizeErrorException - v
    • checkFilterMode

      public static cool.scx.data.field_filter.FilterMode checkFilterMode(String filterMode) throws UnknownWhereTypeException
      检查 filterMode 是否正确
      参数:
      filterMode - f
      返回:
      a
      抛出:
      UnknownWhereTypeException - a
    • checkPagination

      public static cool.scx.data.query.LimitInfo checkPagination(CRUDListParam.CRUDPagination crudPagination)
      处理分页
      参数:
      crudPagination - a
      返回:
      a
    • getLimitInfo

      public cool.scx.data.query.LimitInfo getLimitInfo()

      Getter for the field pagination.

      返回:
      a
    • getLimitInfoOrThrow

      public cool.scx.data.query.LimitInfo getLimitInfoOrThrow()

      getPaginationOrThrow.

      返回:
      a
    • getOrderByClauses

      public cool.scx.data.query.OrderByBody[] getOrderByClauses(Class<? extends BaseModel> modelClass)

      getOrderBy.

      参数:
      modelClass - a Class object
    • getOrderByClausesOrThrow

      public cool.scx.data.query.OrderByBody[] getOrderByClausesOrThrow(Class<? extends BaseModel> modelClass)

      getOrderByOrThrow.

      参数:
      modelClass - a Class object
      返回:
      a
    • getWhereBodySet

      public cool.scx.data.query.WhereBodySet getWhereBodySet(Class<? extends BaseModel> modelClass)

      getWhere.

      参数:
      modelClass - a Class object
    • getWhereBodySetOrThrow

      public cool.scx.data.query.WhereBodySet getWhereBodySetOrThrow(Class<? extends BaseModel> modelClass)

      getWhereOrThrow.

      参数:
      modelClass - a Class object
      返回:
      a
    • getQueryOrThrow

      public cool.scx.data.Query getQueryOrThrow(Class<? extends BaseModel> modelClass) throws cool.scx.mvc.exception.BadRequestException
      获取 Query
      参数:
      modelClass - a
      返回:
      a
      抛出:
      cool.scx.mvc.exception.BadRequestException - if any.
    • getQuery

      public cool.scx.data.Query getQuery(Class<? extends BaseModel> modelClass) throws cool.scx.mvc.exception.BadRequestException

      getQuery.

      参数:
      modelClass - a Class object
      返回:
      a Query object
      抛出:
      cool.scx.mvc.exception.BadRequestException - if any.
    • getSelectFilterOrThrow

      public cool.scx.data.FieldFilter getSelectFilterOrThrow(Class<? extends BaseModel> modelClass, cool.scx.data.jdbc.AnnotationConfigTable scxDaoTableInfo)
      获取 b
      参数:
      modelClass - a
      scxDaoTableInfo - a
      返回:
      a
    • getSelectFilter

      public cool.scx.data.FieldFilter getSelectFilter(Class<? extends BaseModel> modelClass, cool.scx.data.jdbc.AnnotationConfigTable scxDaoTableInfo)

      getSelectFilter.

      参数:
      modelClass - a Class object
      scxDaoTableInfo - a AnnotationConfigTable object
      返回:
      a FieldFilter object
    • extParams

      public com.fasterxml.jackson.databind.JsonNode extParams()