package mil.dds.anet.beans.search;

public abstract class AbstractSearchQuery implements ISearchQuery {

	private String text;
	private int pageNum;
	private int pageSize;

	public AbstractSearchQuery() {
		this.pageNum = 0;
		this.pageSize = 10;
	}

	@Override
	public String getText() {
		return text;
	}

	@Override
	public void setText(String text) {
		this.text = text;
	}

	@Override
	public int getPageNum() {
		return pageNum;
	}

	@Override
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	@Override
	public int getPageSize() {
		return pageSize;
	}

	@Override
	public void setPageSize(int pageSize) {
		if (pageSize == 0) { return; } // that makes no sense.
		this.pageSize = pageSize;
	}

}

@@ -630,65 +630,8 @@
 ) %7B%0A
-%09%09if (pageSize == 0) %7B return; %7D // that makes no sense.%0A
 %09%09th

Allow pageSize to be zero (0) on searches