1 package ecar.dao;
2
3 import java.util.List;
4
5 import javax.servlet.http.HttpServletRequest;
6
7 import comum.database.Dao;
8
9 import ecar.exception.ECARException;
10 import ecar.pojo.ConfigRelatorioCfgrel;
11
12
13
14
15
16
17
18 public class ConfigRelatorioCfgrelDAO extends Dao {
19
20
21
22
23 public ConfigRelatorioCfgrelDAO(HttpServletRequest request) {
24 super();
25 this.request = request;
26 }
27
28
29
30
31
32
33 public ConfigRelatorioCfgrel getConfigRelatorioCfgrel() throws ECARException {
34 List config = this.listar(ConfigRelatorioCfgrel.class, null);
35 if (config != null && config.size() > 0)
36 return (ConfigRelatorioCfgrel) config.iterator().next();
37 else
38 return null;
39 }
40 }