## ---------------------------------------------------------------
## Beanクラスの設定
## ---------------------------------------------------------------

package ${propertyList.pkgName}.action;

import org.itscool.weber.action.Action;
import org.itscool.weber.action.ActionBucket;
import ${propertyList.pkgName}.bean.${propertyList.className};
import ${propertyList.pkgName}.dao.${propertyList.className}Dao;

// ----------------------------------------------------------------
// DB-MAP-TOOLが生成したクラスです
// ----------------------------------------------------------------
/**
 * $propertyList.note
 * @author $propertyList.author
 * 作成日 ${propertyList.date}
*/
public class Regist${propertyList.className}Action extends Action {
	
	public String doExecute(ActionBucket bucket) throws Exception{
		${propertyList.className} bean = (${propertyList.className})bucket.getForm();
		${propertyList.className}Dao dao = new ${propertyList.className}Dao();
		
		if((String)getParameter("submit_add") != null ){
			dao.save(bean);
		}else if((String)getParameter("submit_delete") != null ){
			dao.delete(bean);
		}else if((String)getParameter("submit_update") != null){
			dao.update(bean);
		}
		return "success";
	}

}
