我有这个:
ReportQuery query = new ReportQuery(OpenedFilesReport.class,
generateExpressionOpenedFilesReport());
query.addCount();
Object result = getTopLinkTemplate().executeQuery(query, true);
如我所见,结果是一个 Vector,并且有一个 ReportQueryResult 类型的结果。那么有没有更聪明的方法来获得结果
((ReportQueryResult)((Vector)result).get(0)).getResults()//.. do additional class casts/getter calls