}
if(fromIdx > 0)
q.setFirstResult(fromIdx);
if(fetchCount > 0)
q.setMaxResults(fetchCount);
return q.list();
}
protected static List executeNamedQuery(String hql, int fromIdx, int fetchCount, int parm1){
return executeNamedQuery(hql, fromIdx, fetchCount, new Object[]{new Integer(parm1)});
}