예제 #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;
 }