com.kuangkie.carbon.record.RecordQueryParam Maven / Gradle / Ivy
package com.kuangkie.carbon.record;
import java.util.List;
import com.kuangkie.carbon.common.PageParam;
import com.kuangkie.carbon.common.QueryParam;
import com.kuangkie.carbon.common.SortItem;
import com.kuangkie.carbon.record.criteria.ProConJunction;
public class RecordQueryParam extends QueryParam {
private PageParam pageParam;
private String hostModelCode;
private boolean distinct;
public RecordQueryParam() {
}
public RecordQueryParam(RecordQueryParam recordQueryParam) {
super(recordQueryParam);
if(recordQueryParam!=null) {
this.setPageParam(recordQueryParam.getPageParam());
this.setHostModelCode(recordQueryParam.getHostModelCode());
this.setDistinct(recordQueryParam.isDistinct());
}
}
public RecordQueryParam(String hostModelCode,ProConJunction conJunction, List sortItems) {
super(conJunction, sortItems);
setHostModelCode( hostModelCode);
}
public RecordQueryParam( String hostModelCode,PageParam pageParam, boolean distinct,ProConJunction conJunction, List sortItems) {
super(conJunction, sortItems);
this.pageParam = pageParam;
setHostModelCode( hostModelCode);
this.distinct = distinct;
}
public PageParam getPageParam() {
return pageParam;
}
public void setPageParam(PageParam pageParam) {
this.pageParam = pageParam;
}
public String getHostModelCode() {
return hostModelCode;
}
public void setHostModelCode(String hostModelCode) {
this.hostModelCode = hostModelCode.toLowerCase();
}
public boolean isDistinct() {
return distinct;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy