mirror of
https://github.com/apache/struts.git
synced 2026-08-11 09:36:57 +00:00
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);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|