Пример #1
0
 public List<EnterpriseExt> filterEnterpriseExtByName(String name) {
   List<Object> list = new ArrayList<Object>();
   List<EnterpriseExt> result = new ArrayList<EnterpriseExt>();
   list = mydao.filterByCondition(EnterpriseExt.class, "EnterpriseName", name);
   if (!list.isEmpty()) {
     int i;
     for (i = 0; i < list.size(); i++) {
       result.add((EnterpriseExt) list.get(i));
     }
   }
   return result;
 }
Пример #2
0
 public List<EnterpriseExt> getAllEnterpriseExt() {
   List<EnterpriseExt> list = new ArrayList<EnterpriseExt>();
   List<Object> obs = new ArrayList<Object>();
   obs = mydao.getAllData(EnterpriseExt.class);
   if (!obs.isEmpty()) {
     int i;
     for (i = 0; i < obs.size(); i++) {
       list.add((EnterpriseExt) obs.get(i));
     }
   }
   return list;
 }
Пример #3
0
 public EnterpriseExt getEnterpriseExtByID(String id) {
   return (EnterpriseExt) mydao.getByID(EnterpriseExt.class, id);
 }
Пример #4
0
 public boolean deleteEnterpriseExt(EnterpriseExt enex) {
   if (mydao.deleteData(EnterpriseExt.class, enex.getEnterpriseID())) {
     return true;
   }
   return false;
 }
Пример #5
0
 public boolean updateEnterpriseExt(EnterpriseExt enex) {
   if (mydao.updateData(enex)) {
     return true;
   }
   return false;
 }
Пример #6
0
 public boolean insertEnterpriseExt(EnterpriseExt enex) {
   if (mydao.insertData(enex)) {
     return true;
   }
   return false;
 }