Interface AccountService
-
public interface AccountService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinsertBeanAccount(Account account)AccountselectBeanAccountById(int no)List<Account>selectBeanAllAccounts()
-
-
-
Method Detail
-
selectBeanAccountById
@Select("select ACC_ID as id, ACC_FIRST_NAME as firstName, ACC_LAST_NAME as lastName, ACC_EMAIL as emailAddress from ACCOUNT where ACC_ID = #{id}") Account selectBeanAccountById(@Param("id") int no)
-
selectBeanAllAccounts
@Select("select * from ACCOUNT order by ACC_ID") @ResultMap("Account.AccountResult") List<Account> selectBeanAllAccounts()
-
insertBeanAccount
@Insert("insert into ACCOUNT (ACC_ID,ACC_FIRST_NAME,ACC_LAST_NAME,ACC_EMAIL) values (#{id}, #{firstName}, #{lastName}, #{emailAddress})") void insertBeanAccount(Account account)
-
-