com.kuangkie.carbon.entity.query.SortPageQuery Maven / Gradle / Ivy
package com.kuangkie.carbon.entity.query;
import java.util.List;
import com.kuangkie.carbon.entity.RecordEntity;
import com.kuangkie.carbon.common.PageQuery;
public interface SortPageQuery extends PageQuery{
/**
* 访问特定页面的对接实体
*
* @param pageNumber
* 访问的页码
* @return 对接实体列表
*/
public List visitEntity(int pageNumber);
default public List nextPage(){
if(hasNextPage()) {
return visitEntity(getLatestVisitedPage()+1);
}else {
return null;
}
}
//public E visitEntity(String recordCode);
public void setCacheEntity(int cachedEntitySize);
public boolean isCacheEntity();
}