mirror of
https://github.com/apache/struts.git
synced 2026-08-11 09:36:57 +00:00
5b67f4ac48
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@432886 13f79535-47bb-0310-9956-ffa450edef68
23 lines
552 B
Java
23 lines
552 B
Java
package mailreader2.service;
|
|
|
|
import mailreader2.AppService;
|
|
import mailreader2.Constants;
|
|
import mailreader2.AppData;
|
|
|
|
import java.util.List;
|
|
|
|
public class SqlMapAppService extends SqlMapAppConfig implements AppService {
|
|
|
|
// ---- APPSERVICE IMPLEMENTATION ----
|
|
|
|
public List getLocaleList() throws Exception {
|
|
return getSqlMap().queryForList(Constants.LOCALE_LIST, null);
|
|
}
|
|
|
|
public void insertUser(AppData data) throws Exception {
|
|
getSqlMap().insert(Constants.REGISTRATION_INSERT, data);
|
|
}
|
|
|
|
|
|
}
|