类 CRUDListParam

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

public final class CRUDListParam extends Object
a
  • 字段详细资料

  • 构造器详细资料

    • CRUDListParam

      public CRUDListParam()
  • 方法详细资料

    • checkFieldName

      public static void checkFieldName(Class<?> modelClass, String fieldName) throws UnknownFieldName
      检查 fieldName 是否合法
      参数:
      modelClass - m
      fieldName - f
      抛出:
      UnknownFieldName - c
    • checkWhereType

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

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

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

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

      public static void checkPagination(cool.scx.base.Query query, CRUDListParam.CRUDPagination crudPagination)
      处理分页
      参数:
      query - a
      crudPagination - a
    • getQuery

      public cool.scx.base.Query getQuery(Class<? extends cool.scx.base.BaseModel> modelClass) throws cool.scx.http.exception.impl.BadRequestException
      获取 Query
      参数:
      modelClass - a
      返回:
      a
      抛出:
      cool.scx.http.exception.impl.BadRequestException - a
    • getSelectFilter

      public cool.scx.base.SelectFilter getSelectFilter(Class<? extends cool.scx.base.BaseModel> modelClass, cool.scx.dao.ScxDaoTableInfo scxDaoTableInfo)
      获取 b
      参数:
      modelClass - a
      scxDaoTableInfo - a
      返回:
      a