/** * Create an instance of {@link ExistingReportDefitions } * */ public ExistingReportDefitions createExistingReportDefitions() { return new ExistingReportDefitions(); }
rs = cmd.executeQuery(); while (rs.next()) { ExistingReportDefitions ed = new ExistingReportDefitions(); byte[] s = rs.getBytes("reportdef"); ByteArrayInputStream bss = new ByteArrayInputStream(s); JAXBElement<ReportDefinition> foo = (JAXBElement<ReportDefinition>) u.unmarshal(r, ReportDefinition.class); if (foo != null && foo.getValue() != null) { ed.setJob(foo.getValue()); ed.getJob().setLastRanAt(ConvertToXmlGreg(rs.getLong("lastranat"))); ret.getCompletedJobs().add(ed); cmd.setString(1, ret.getCompletedJobs().get(i).getJob().getJobId()); cmd.setInt(2, request.getRecordlimit()); cmd.setInt(3, request.getOffset()); cj.setReportId(rs.getString("reportid")); cj.setTimestamp(ConvertToXmlGreg(rs.getLong("datetime"))); ret.getCompletedJobs().get(i).getReports().add(cj);