searchcriteria.java

来自「我在加拿大学习的一个比较复杂的在线银行程序.」· Java 代码 · 共 38 行

JAVA
38 行
字号
package com.ebusiness.ebank.criteria;/** * <p>Title: </p> * <p>Description: This is a super class for Search Criteria. All search criteria *                 shall extends this class. The search criteria is used in the situation *                 in which there might be multiple records returned. *                 If there are so many possible records returned, the concrete *                 search criteria class should have some range limitation for the return values</p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public abstract class SearchCriteria implements java.io.Serializable{    private int maxReturn = 1000; //default to 1000 records    public String getCriteriaType()    {        String className = this.getClass().getName();        return className.substring(className.lastIndexOf('.') + 1, className.indexOf("SearchCriteria"));    }    public int getMaxReturn()    {        return this.maxReturn;    }    public void setMaxReturn(int maxReturn)    {        this.maxReturn = maxReturn;    }    public abstract String toString();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?