|
|
|
@ -76,20 +76,20 @@ public interface Pageable {
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
|
|
|
Map<String, ?> params = (Map<String, ?>)obj;
|
|
|
|
|
return new Pageable.Info(
|
|
|
|
|
Pageable.getFetchSize(params),
|
|
|
|
|
Pageable.getPageNum(params)
|
|
|
|
|
Pageable.getPageNum(params),
|
|
|
|
|
Pageable.getFetchSize(params)
|
|
|
|
|
);
|
|
|
|
|
} else if (obj instanceof QueryRequest) {
|
|
|
|
|
QueryRequest req = (QueryRequest)obj;
|
|
|
|
|
return new Pageable.Info(
|
|
|
|
|
req.getFetchSize(),
|
|
|
|
|
req.getPageNum()
|
|
|
|
|
req.getPageNum(),
|
|
|
|
|
req.getFetchSize()
|
|
|
|
|
);
|
|
|
|
|
} else if (obj instanceof Pageable) {
|
|
|
|
|
Pageable pageable = (Pageable)obj;
|
|
|
|
|
return new Pageable.Info(
|
|
|
|
|
pageable.getFetchSize(),
|
|
|
|
|
pageable.getPageNum()
|
|
|
|
|
pageable.getPageNum(),
|
|
|
|
|
pageable.getFetchSize()
|
|
|
|
|
);
|
|
|
|
|
} else
|
|
|
|
|
return null;
|
|
|
|
|