@Overridepublic List<Account>findAllAccount(){try{return runner.query("select * from account",newBeanListHandler<Account>(Account.class));}catch(Exception e){thrownewRuntimeException(e);}}@Overridepublic Account findAccountById(Integer accountId){try{return runner.query("select * from account where id=?",newBeanHandler<Account>(Account.class),accountId);}catch(Exception e){thrownewRuntimeException(e);}}@OverridepublicvoidsaveAccount(Account account){try{
runner.update("insert into account(name,money)values(?,?)",account.getName(),account.getMoney());}catch(Exception e){thrownewRuntimeException(e);}}@OverridepublicvoidupdateAccount(Account account){try{
runner.update("update account set name=?,money=? where id=?",account.getName(),account.getMoney(),account.getId());}catch(Exception e){thrownewRuntimeException(e);}}@OverridepublicvoiddeleteAccount(Integer accountId){try{
runner.update("delete from account where id=?",accountId);}catch(Exception e){thrownewRuntimeException(e);}}}