fieldsmapping.java

来自「对jsp页面中有多个查询条件时」· Java 代码 · 共 91 行

JAVA
91
字号
package org.storm.xwguan.parse;

public class FieldsMapping {

	// 字段类型 1<->int 2<->float 3<->double 4<->String

	private int type;

	// 字段是否为范围查询字段 true:为范围查询字段 false:一般查询字段

	private boolean isBound;

	// 若该字段为范围查询字段,判断该字段是否为范围查询的前一个字段
	// true:是
	// false:不是

	private boolean isFirst;

	// 该字段是否是模糊查询字段
	// true:是
	// false:不是

	private boolean isBlurry;

	// 表单名:和ActionForm中名字一样

	private String formName;

	// 数据库表中的字段名

	private String tableFieldName;

	public FieldsMapping(int type, boolean isBound, boolean isFirst,
			boolean isBlurry, String formName, String tableFieldName) {
		this.type = type;
		this.isBound = isBound;
		this.isFirst = isFirst;
		this.isBlurry = isBlurry;
		this.formName = formName;
		this.tableFieldName = tableFieldName;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public boolean isBound() {
		return isBound;
	}

	public void setBound(boolean isBound) {
		this.isBound = isBound;
	}

	public boolean isFirst() {
		return isFirst;
	}

	public void setFirst(boolean isFirst) {
		this.isFirst = isFirst;
	}

	public boolean isBlurry() {
		return isBlurry;
	}

	public void setBlurry(boolean isBlurry) {
		this.isBlurry = isBlurry;
	}

	public String getFormName() {
		return formName;
	}

	public void setFormName(String formName) {
		this.formName = formName;
	}

	public String getTableFieldName() {
		return tableFieldName;
	}

	public void setTableFieldName(String tableFieldName) {
		this.tableFieldName = tableFieldName;
	}
}

⌨️ 快捷键说明

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