public class PageRequest extends ToJsonString implements TypedDictionary<String,Object>, Serializable
Page request for pageable query
1、SpringMVC form表单嵌套对象传参(即Request Header “Content-Type=application/x-www-form-urlencoded”):
1)普通对象:
2)Map对象:
2、Mybatis xml中使用方式:#{params.city}
| 构造器和说明 |
|---|
PageRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Object |
get(Object key) |
long |
getOffset() |
Object |
getOrDefault(Object key,
Object defaultValue) |
Object |
put(String key,
Object value) |
<P extends PageRequest,A> |
query(ToLongFunction<P> countQuerier,
Function<P,List<A>> recordQuerier) |
<P extends PageRequest,A,B> |
query(ToLongFunction<P> countQuerier,
Function<P,List<A>> recordQuerier,
Function<A,B> recordMapper) |
Object |
remove(Object key) |
toJson, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBoolean, getBoolean, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRequired, getRequired, getRequiredBoolean, getRequiredDouble, getRequiredFloat, getRequiredInt, getRequiredLong, getRequiredString, getString, getString, removeBoolean, removeBoolean, removeDouble, removeDouble, removeFloat, removeFloat, removeInt, removeInt, removeLong, removeLong, removeString, removeStringpublic Object getOrDefault(Object key, Object defaultValue)
getOrDefault 在接口中 TypedDictionary<String,Object>public boolean containsKey(Object key)
containsKey 在接口中 TypedDictionary<String,Object>public boolean containsValue(Object value)
containsValue 在接口中 TypedDictionary<String,Object>public long getOffset()
public <P extends PageRequest,A> PageResponse<A> query(ToLongFunction<P> countQuerier, Function<P,List<A>> recordQuerier)
public <P extends PageRequest,A,B> PageResponse<B> query(ToLongFunction<P> countQuerier, Function<P,List<A>> recordQuerier, Function<A,B> recordMapper)
Copyright © 2025. All rights reserved.