baseform.java

来自「struts+spring+hibernate自创框架」· Java 代码 · 共 69 行

JAVA
69
字号
package com.pegasus.framework.form;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.validator.ValidatorForm;

import com.pegasus.framework.pojo.IBusinessObject;

public class BaseForm extends ValidatorForm {
	protected final Log logger = LogFactory.getLog(this.getClass());

	public final static String VIEW_STR = "view";

	public final static String CREATE_STR = "create";

	public final static String EDIT_STR = "edit";

	public final static String DELETE_STR = "delete";

	public final static String SAVE_STR = "save";
	
	protected IBusinessObject bo;
	
	private String actionType;

	public BaseForm() {
		super();
	}

	

	/**
	 * @return Returns the actionType.
	 */
	public String getActionType() {
		return actionType;
	}



	/**
	 * @param actionType The actionType to set.
	 */
	public void setActionType(String actionType) {
		this.actionType = actionType;
	}



	/**
	 * @return Returns the bo.
	 */
	public IBusinessObject getBo() {
		return bo;
	}

	/**
	 * @param bo The bo to set.
	 */
	public void setBo(IBusinessObject bo) {
		this.bo = bo;
	}




	
}

⌨️ 快捷键说明

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