Methods Summary |
---|
public org.springframework.samples.jpetstore.domain.Account | getAccount(java.lang.String username)
return (Account) getSqlMapTemplate().executeQueryForObject("getAccountByUsername", username);
|
public org.springframework.samples.jpetstore.domain.Account | getAccount(java.lang.String username, java.lang.String password)
Account account = new Account();
account.setUsername(username);
account.setPassword(password);
return (Account) getSqlMapTemplate().executeQueryForObject("getAccountByUsernameAndPassword", account);
|
public java.util.List | getUsernameList()
return getSqlMapTemplate().executeQueryForList("getUsernameList", null);
|
public void | insertAccount(org.springframework.samples.jpetstore.domain.Account account)
getSqlMapTemplate().executeUpdate("insertAccount", account);
getSqlMapTemplate().executeUpdate("insertProfile", account);
getSqlMapTemplate().executeUpdate("insertSignon", account);
|
public void | updateAccount(org.springframework.samples.jpetstore.domain.Account account)
getSqlMapTemplate().executeUpdate("updateAccount", account);
getSqlMapTemplate().executeUpdate("updateProfile", account);
if (account.getPassword() != null && account.getPassword().length() > 0) {
getSqlMapTemplate().executeUpdate("updateSignon", account);
}
|