【Java开源代码栏目提醒】:网学会员在Java开源代码频道为大家收集整理了TradeActionForm.java提供大家参考,希望对大家有所帮助!
/*
* Created on 2005-7-24
*
*/
package banksystem.VO;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
/**
* @author 曲本盛
*
* TODO Struts 项目实践
*/
public class TradeActionForm extends ActionForm {
private String action = null;
private String accountID = null;
private Double money = new Double(0);
private String tradePass = null;
private String transferAccountID = null;
public TradeActionForm(){}
/**
* @param action
* @param accountID
* @param money
* @param tradePass
* @param tranferAccountID
*/
public TradeActionForm(String action, String accountID,
Double money, String tradePass, String transferAccountID) {
super();
this.action = action;
this.accountID = accountID;
this.money = money;
this.tradePass = tradePass;
this.transferAccountID = transferAccountID;
}
/**
* @return Returns the accountID.
*/
public String getAccountID() {
return accountID;
}
/**
* @param accountID The accountID to set.
*/
public void setAccountID(String accountID) {
this.accountID = accountID;
}
/**
* @return Returns the action.
*/
public String getAction() {
return action;
}
/**
* @param action The action to set.
*/
public void setAction(String action) {
this.action = action;
}
/**
* @return Returns the money.
*/
public Double getMoney() {
return money;
}
/**
* @param money The money to set.
*/
public void setMoney(Double money) {
this.money = money;
}
/**
* @return Returns the tradePass.
*/
public String getTradePass() {
return tradePass;
}
/**
* @param tradePass The tradePass to set.
*/
public void setTradePass(String tradePass) {
this.tradePass = tradePass;
}
/**
* @return Returns the tranferAccountID.
*/
public String getTransferAccountID() {
return transferAccountID;
}
/**
* @param tranferAccountID The tranferAccountID to set.
*/
public void setTransferAccountID(String transferAccountID) {
this.transferAccountID = transferAccountID;
}
/**
* @param actionMapping 该项目的映射对象.
* @param request HTTP请求对象.
*/
public void reset(ActionMapping actionMapping, HttpServletRequest request) {
super.reset(actionMapping, request);
this.money = new Double(0);
this.tradePass = null;
this.transferAccountID = null;
}
}