use of org.jaffa.modules.messaging.domain.BusinessEventLog in project jaffa-framework by jaffa-projects.
the class BusinessEventLogViewerTx method buildDto.
// .//GEN-END:_buildCriteria_3_be
// .//GEN-BEGIN:_buildDto_1_be
private BusinessEventLogViewerOutDto buildDto(UOW uow, Collection results) throws UOWException {
BusinessEventLogViewerOutDto output = null;
Iterator itr = results.iterator();
if (itr.hasNext()) {
// just return the details for the 1st record retrieved.
BusinessEventLog businessEventLog = (BusinessEventLog) itr.next();
output = new BusinessEventLogViewerOutDto();
// .//GEN-END:_buildDto_1_be
// Add custom code before all the setters//GEN-FIRST:_buildDto_1
// .//GEN-LAST:_buildDto_1
// .//GEN-BEGIN:_buildDto_LogId_1_be
output.setLogId(businessEventLog.getLogId());
// .//GEN-END:_buildDto_LogId_1_be
// .//GEN-BEGIN:_buildDto_CorrelationType_1_be
output.setCorrelationType(businessEventLog.getCorrelationType());
// .//GEN-END:_buildDto_CorrelationType_1_be
// .//GEN-BEGIN:_buildDto_CorrelationKey1_1_be
output.setCorrelationKey1(businessEventLog.getCorrelationKey1());
// .//GEN-END:_buildDto_CorrelationKey1_1_be
// .//GEN-BEGIN:_buildDto_CorrelationKey2_1_be
output.setCorrelationKey2(businessEventLog.getCorrelationKey2());
// .//GEN-END:_buildDto_CorrelationKey2_1_be
// .//GEN-BEGIN:_buildDto_CorrelationKey3_1_be
output.setCorrelationKey3(businessEventLog.getCorrelationKey3());
// .//GEN-END:_buildDto_CorrelationKey3_1_be
// .//GEN-BEGIN:_buildDto_ScheduledTaskId_1_be
output.setScheduledTaskId(businessEventLog.getScheduledTaskId());
// .//GEN-END:_buildDto_ScheduledTaskId_1_be
// .//GEN-BEGIN:_buildDto_MessageId_1_be
output.setMessageId(businessEventLog.getMessageId());
// .//GEN-END:_buildDto_MessageId_1_be
// .//GEN-BEGIN:_buildDto_LoggedOn_1_be
output.setLoggedOn(businessEventLog.getLoggedOn());
// .//GEN-END:_buildDto_LoggedOn_1_be
// .//GEN-BEGIN:_buildDto_LoggedBy_1_be
output.setLoggedBy(businessEventLog.getLoggedBy());
// .//GEN-END:_buildDto_LoggedBy_1_be
// .//GEN-BEGIN:_buildDto_ProcessName_1_be
output.setProcessName(businessEventLog.getProcessName());
// .//GEN-END:_buildDto_ProcessName_1_be
// .//GEN-BEGIN:_buildDto_SubProcessName_1_be
output.setSubProcessName(businessEventLog.getSubProcessName());
// .//GEN-END:_buildDto_SubProcessName_1_be
// .//GEN-BEGIN:_buildDto_MessageType_1_be
output.setMessageType(businessEventLog.getMessageType());
// .//GEN-END:_buildDto_MessageType_1_be
// .//GEN-BEGIN:_buildDto_MessageText_1_be
output.setMessageText(businessEventLog.getMessageText());
// .//GEN-END:_buildDto_MessageText_1_be
// .//GEN-BEGIN:_buildDto_SourceClass_1_be
output.setSourceClass(businessEventLog.getSourceClass());
// .//GEN-END:_buildDto_SourceClass_1_be
// .//GEN-BEGIN:_buildDto_SourceMethod_1_be
output.setSourceMethod(businessEventLog.getSourceMethod());
// .//GEN-END:_buildDto_SourceMethod_1_be
// .//GEN-BEGIN:_buildDto_SourceLine_1_be
output.setSourceLine(businessEventLog.getSourceLine());
// .//GEN-END:_buildDto_SourceLine_1_be
// .//GEN-BEGIN:_buildDto_StackTrace_1_be
output.setStackTrace(businessEventLog.getStackTrace());
// .//GEN-END:_buildDto_StackTrace_1_be
// .//GEN-BEGIN:_buildDto_2_be
// Add related objects, if required
addRelatedDtos(uow, output, businessEventLog);
// .//GEN-END:_buildDto_2_be
// Add custom code to pass values to the dto//GEN-FIRST:_buildDto_2
// .//GEN-LAST:_buildDto_2
// .//GEN-BEGIN:_buildDto_3_be
}
return output;
}
use of org.jaffa.modules.messaging.domain.BusinessEventLog in project jaffa-framework by jaffa-projects.
the class BusinessEventLogFinderTx method buildDto.
// .//GEN-END:_buildCriteria_3_be
// .//GEN-BEGIN:_buildDto_1_be
private BusinessEventLogFinderOutDto buildDto(UOW uow, Collection results, BusinessEventLogFinderInDto input) throws UOWException {
BusinessEventLogFinderOutDto output = new BusinessEventLogFinderOutDto();
int maxRecords = input.getMaxRecords() != null ? input.getMaxRecords().intValue() : 0;
int counter = 0;
for (Iterator i = results.iterator(); i.hasNext(); ) {
if (++counter > maxRecords && maxRecords > 0) {
output.setMoreRecordsExist(Boolean.TRUE);
break;
}
BusinessEventLogFinderOutRowDto row = new BusinessEventLogFinderOutRowDto();
BusinessEventLog businessEventLog = (BusinessEventLog) i.next();
// .//GEN-END:_buildDto_1_be
// Add custom code before all the setters //GEN-FIRST:_buildDto_1
// .//GEN-LAST:_buildDto_1
// .//GEN-BEGIN:_buildDto_LogId_1_be
row.setLogId(businessEventLog.getLogId());
// .//GEN-END:_buildDto_LogId_1_be
// .//GEN-BEGIN:_buildDto_CorrelationType_1_be
row.setCorrelationType(businessEventLog.getCorrelationType());
// .//GEN-END:_buildDto_CorrelationType_1_be
// .//GEN-BEGIN:_buildDto_CorrelationKey1_1_be
row.setCorrelationKey1(businessEventLog.getCorrelationKey1());
// .//GEN-END:_buildDto_CorrelationKey1_1_be
// .//GEN-BEGIN:_buildDto_CorrelationKey2_1_be
row.setCorrelationKey2(businessEventLog.getCorrelationKey2());
// .//GEN-END:_buildDto_CorrelationKey2_1_be
// .//GEN-BEGIN:_buildDto_CorrelationKey3_1_be
row.setCorrelationKey3(businessEventLog.getCorrelationKey3());
// .//GEN-END:_buildDto_CorrelationKey3_1_be
// .//GEN-BEGIN:_buildDto_ScheduledTaskId_1_be
row.setScheduledTaskId(businessEventLog.getScheduledTaskId());
// .//GEN-END:_buildDto_ScheduledTaskId_1_be
// .//GEN-BEGIN:_buildDto_MessageId_1_be
row.setMessageId(businessEventLog.getMessageId());
// .//GEN-END:_buildDto_MessageId_1_be
// .//GEN-BEGIN:_buildDto_LoggedOn_1_be
row.setLoggedOn(businessEventLog.getLoggedOn());
// .//GEN-END:_buildDto_LoggedOn_1_be
// .//GEN-BEGIN:_buildDto_LoggedBy_1_be
row.setLoggedBy(businessEventLog.getLoggedBy());
// .//GEN-END:_buildDto_LoggedBy_1_be
// .//GEN-BEGIN:_buildDto_ProcessName_1_be
row.setProcessName(businessEventLog.getProcessName());
// .//GEN-END:_buildDto_ProcessName_1_be
// .//GEN-BEGIN:_buildDto_SubProcessName_1_be
row.setSubProcessName(businessEventLog.getSubProcessName());
// .//GEN-END:_buildDto_SubProcessName_1_be
// .//GEN-BEGIN:_buildDto_MessageType_1_be
row.setMessageType(businessEventLog.getMessageType());
// .//GEN-END:_buildDto_MessageType_1_be
// .//GEN-BEGIN:_buildDto_MessageText_1_be
row.setMessageText(businessEventLog.getMessageText());
// .//GEN-END:_buildDto_MessageText_1_be
// .//GEN-BEGIN:_buildDto_SourceClass_1_be
row.setSourceClass(businessEventLog.getSourceClass());
// .//GEN-END:_buildDto_SourceClass_1_be
// .//GEN-BEGIN:_buildDto_SourceMethod_1_be
row.setSourceMethod(businessEventLog.getSourceMethod());
// .//GEN-END:_buildDto_SourceMethod_1_be
// .//GEN-BEGIN:_buildDto_SourceLine_1_be
row.setSourceLine(businessEventLog.getSourceLine());
// .//GEN-END:_buildDto_SourceLine_1_be
// .//GEN-BEGIN:_buildDto_StackTrace_1_be
row.setStackTrace(businessEventLog.getStackTrace());
// .//GEN-END:_buildDto_StackTrace_1_be
// Add custom code to pass values to the dto //GEN-FIRST:_buildDto_2
// .//GEN-LAST:_buildDto_2
// .//GEN-BEGIN:_buildDto_3_be
output.addRows(row);
}
return output;
}
Aggregations