public Object findById(Serializable id) { try { return service.findById(id); } catch (Exception e) { return null; } }
public void deleteByKey(Serializable id) { try { service.deleteByKey(id); } catch (Exception e) { e.printStackTrace(); } }
public void update(T entity) { try { service.update(entity); } catch (Exception e) { e.printStackTrace(); } }
public List<T> find(final String hql, Object[] values) { try { return service.find(hql, values); } catch (Exception e) { e.printStackTrace(); return null; } }
public List<T> findByHQL(final String hql) { return service.findByHQL(hql); }
public Map findCountAndPageBySql(int currPage, int pagesize, String sql, Class<T> cls) { return service.findCountAndPageBySql(currPage, pagesize, sql, cls); }
public Map findPage(int currPage, int pagesize, String hql) { return service.findPage(currPage, pagesize, hql); }
public List<T> findByHQL(int currPage, int pagesize, String hql) { return service.findByHQL(currPage, pagesize, hql); }
public Long getRowCount(String HQL) throws Exception { return service.getRowCount(HQL); }
public List<T> findByCriteria(int firstResult, int maxResults, DetachedCriteria criteria) throws Exception { return service.findByCriteria(maxResults, (firstResult - 1) * maxResults, criteria); }