count = (Integer) super.getHibernateTemplate().execute(new ...);的返回值是怎么得到的?这个返回值就是匿名内部类内doInHibernate()的返回值吗?
源代码如下:
 public List findAll(final int currentPage, final int lineSize)
   throws Exception {                                 
  // TODO Auto-generated method stub
  List all = null;
  try {
         all = (List) super.getHibernateTemplate().execute(
     new HibernateCallback() {
      public Object doInHibernate(Session session)
        throws HibernateException {
       List all = null;
       String hql = "FROM Admin AS admin ";
       Query q = session.createQuery(hql);
       q.setFirstResult((currentPage - 1) * lineSize);
       q.setMaxResults(lineSize);
       all = q.list();
       return all;
      }
     });
  } catch (Exception e) {
   throw e;
  }
  return all;
 } 
还有:匿名内部类作为函数参数是怎么被加载的?原函数的返回值是怎么得到的?急待java前辈们不吝赐教!谢谢!