📄 tobalanceaction.java
字号:
package cn.com.sdcncsi.lunch.balance.action;
import java.util.Collection;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import cn.com.sdcncsi.lunch.balance.service.BalanceService;
import com.opensymphony.xwork2.ActionSupport;
public class ToBalanceAction extends ActionSupport {
private static Log logger = LogFactory.getLog(ToBalanceAction.class.getName());
private BalanceService balanceService;
/* (non-Javadoc)
* @see com.opensymphony.xwork2.ActionSupport#execute()
*/
@Override
public String execute() throws Exception {
// TODO Auto-generated method stub
Collection accounts = getBalanceService().getBalance();
setAccounts( accounts );
logger.debug("accounts:"+accounts.size());
return SUCCESS;
}
private Collection accounts;
public void setAccounts(Collection accounts){
this.accounts = accounts;
}
/**
* @return the balanceService
*/
public BalanceService getBalanceService() {
return balanceService;
}
/**
* @param balanceService the balanceService to set
*/
public void setBalanceService(BalanceService balanceService) {
this.balanceService = balanceService;
}
/**
* @return the accounts
*/
public Collection getAccounts() {
return accounts;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -