类 CRUDListParam
java.lang.Object
cool.scx.ext.crud.CRUDListParam
a
- 版本:
- 1.10.8
- 作者:
- scx567888
-
嵌套类概要
嵌套类修饰符和类型类说明static final classastatic final classastatic final classastatic final classa -
字段概要
字段修饰符和类型字段说明排序参数分页参数查询列过滤参数查询参数 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static cool.scx.data.field_filter.FilterModecheckFilterMode(String filterMode) 检查 filterMode 是否正确static cool.scx.data.query.LimitInfocheckPagination(CRUDListParam.CRUDPagination crudPagination) 处理分页static cool.scx.data.query.OrderByTypecheckSortType(String fieldName, String strSortType) astatic voidcheckWhereBodyParametersSize(String fieldName, cool.scx.data.query.WhereType whereType, Object value1, Object value2) 检查 whereBody 参数数量是否合法static cool.scx.data.query.WhereTypecheckWhereType(String fieldName, String strWhereType) 检查 where 类型cool.scx.data.query.LimitInfoGetter for the fieldpagination.cool.scx.data.query.LimitInfogetPaginationOrThrow.cool.scx.data.query.OrderByBody[]getOrderByClauses(Class<? extends cool.scx.core.base.BaseModel> modelClass) getOrderBy.cool.scx.data.query.OrderByBody[]getOrderByClausesOrThrow(Class<? extends cool.scx.core.base.BaseModel> modelClass) getOrderByOrThrow.cool.scx.data.QueryImplgetQuery.cool.scx.data.QueryImplgetQueryOrThrow(Class<? extends cool.scx.core.base.BaseModel> modelClass) 获取 Querycool.scx.data.FieldFiltergetSelectFilter(Class<? extends cool.scx.core.base.BaseModel> modelClass, cool.scx.data.jdbc.mapping.Table<? extends cool.scx.data.jdbc.ColumnMapping> scxDaoTableInfo) getSelectFilter.cool.scx.data.FieldFiltergetSelectFilterOrThrow(Class<? extends cool.scx.core.base.BaseModel> modelClass, cool.scx.data.jdbc.mapping.Table<? extends cool.scx.data.jdbc.ColumnMapping> scxDaoTableInfo) 获取 bcool.scx.data.query.WhereBodySetgetWhereBodySet(Class<? extends cool.scx.core.base.BaseModel> modelClass) getWhere.cool.scx.data.query.WhereBodySetgetWhereBodySetOrThrow(Class<? extends cool.scx.core.base.BaseModel> modelClass) getWhereOrThrow.
-
字段详细资料
-
pagination
分页参数 -
orderByBodyList
排序参数 -
whereBodyList
查询参数 -
selectFilterBody
查询列过滤参数
-
-
构造器详细资料
-
CRUDListParam
public CRUDListParam()
-
-
方法详细资料
-
checkWhereType
public static cool.scx.data.query.WhereType checkWhereType(String fieldName, String strWhereType) throws UnknownWhereTypeException 检查 where 类型- 参数:
fieldName- fstrWhereType- s- 返回:
- s
- 抛出:
UnknownWhereTypeException- s
-
checkSortType
public static cool.scx.data.query.OrderByType checkSortType(String fieldName, String strSortType) throws UnknownSortTypeException a- 参数:
fieldName- astrSortType- 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- fwhereType- wvalue1- vvalue2- 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 cool.scx.core.base.BaseModel> modelClass) getOrderBy.
- 参数:
modelClass- aClassobject
-
getOrderByClausesOrThrow
public cool.scx.data.query.OrderByBody[] getOrderByClausesOrThrow(Class<? extends cool.scx.core.base.BaseModel> modelClass) getOrderByOrThrow.
- 参数:
modelClass- aClassobject- 返回:
- a
-
getWhereBodySet
public cool.scx.data.query.WhereBodySet getWhereBodySet(Class<? extends cool.scx.core.base.BaseModel> modelClass) getWhere.
- 参数:
modelClass- aClassobject
-
getWhereBodySetOrThrow
public cool.scx.data.query.WhereBodySet getWhereBodySetOrThrow(Class<? extends cool.scx.core.base.BaseModel> modelClass) getWhereOrThrow.
- 参数:
modelClass- aClassobject- 返回:
- a
-
getQueryOrThrow
public cool.scx.data.QueryImpl getQueryOrThrow(Class<? extends cool.scx.core.base.BaseModel> modelClass) throws cool.scx.mvc.exception.BadRequestException 获取 Query- 参数:
modelClass- a- 返回:
- a
- 抛出:
cool.scx.mvc.exception.BadRequestException- if any.
-
getQuery
public cool.scx.data.QueryImpl getQuery(Class<? extends cool.scx.core.base.BaseModel> modelClass) throws cool.scx.mvc.exception.BadRequestException getQuery.
- 参数:
modelClass- aClassobject- 返回:
- a
Queryobject - 抛出:
cool.scx.mvc.exception.BadRequestException- if any.
-
getSelectFilterOrThrow
public cool.scx.data.FieldFilter getSelectFilterOrThrow(Class<? extends cool.scx.core.base.BaseModel> modelClass, cool.scx.data.jdbc.mapping.Table<? extends cool.scx.data.jdbc.ColumnMapping> scxDaoTableInfo) 获取 b- 参数:
modelClass- ascxDaoTableInfo- a- 返回:
- a
-
getSelectFilter
public cool.scx.data.FieldFilter getSelectFilter(Class<? extends cool.scx.core.base.BaseModel> modelClass, cool.scx.data.jdbc.mapping.Table<? extends cool.scx.data.jdbc.ColumnMapping> scxDaoTableInfo) getSelectFilter.
- 参数:
modelClass- aClassobjectscxDaoTableInfo- aTableobject- 返回:
- a
FieldFilterobject
-