I have this:
ReportQuery query = new ReportQuery(OpenedFilesReport.class,
generateExpressionOpenedFilesReport());
query.addCount();
Object result = getTopLinkTemplate().executeQuery(query, true);
As I can see, the result is a Vector and has one result of the type ReportQueryResult. Is there a smarter way of getting the result then
((ReportQueryResult)((Vector)result).get(0)).getResults()//.. do additional class casts/getter calls
query.setShouldReturnSingleValue(true);
Number result = (Number) getTopLinkTemplate().executeQuery(query, true);
Here is the link into the EclipseLink JavaDocs:
Doug