@Override public Long count(Itemclass bc, PageFilter ph) { Map<String, Object> params = new HashMap<String, Object>(); String hql = " from Titemclass t "; return itemclassDao.count("select count(*) " + hql + whereHql(bc, params), params); }