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; }
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; }
public EnterpriseExt getEnterpriseExtByID(String id) { return (EnterpriseExt) mydao.getByID(EnterpriseExt.class, id); }
public boolean deleteEnterpriseExt(EnterpriseExt enex) { if (mydao.deleteData(EnterpriseExt.class, enex.getEnterpriseID())) { return true; } return false; }
public boolean updateEnterpriseExt(EnterpriseExt enex) { if (mydao.updateData(enex)) { return true; } return false; }
public boolean insertEnterpriseExt(EnterpriseExt enex) { if (mydao.insertData(enex)) { return true; } return false; }