Ejemplo n.º 1
0
 public void filterByGtrid(String gtrid) {
   if (gtrid == null) {
     displayedRows = new ArrayList<TransactionLogRecord>(tLogs);
   } else {
     List<TransactionLogRecord> newDis = new ArrayList<TransactionLogRecord>();
     for (int i = 0; i < displayedRows.size(); i++) {
       TransactionLogRecord transactionLogRecord = displayedRows.get(i);
       if (transactionLogRecord.getGtrid().toString().equals(gtrid))
         newDis.add(transactionLogRecord);
     }
     displayedRows = newDis;
   }
 }
Ejemplo n.º 2
0
 @Override
 public Object getValueAt(int rowIndex, int columnIndex) {
   TransactionLogRecord tlog = displayedRows.get(rowIndex);
   switch (columnIndex) {
     case 0:
       return Decoder.decodeStatus(tlog.getStatus());
     case 1:
       return "" + tlog.getRecordLength();
     case 2:
       return "" + tlog.getHeaderLength();
     case 3:
       return Console.dateFormatter.format(new Date(tlog.getTime()));
     case 4:
       return "" + tlog.getSequenceNumber();
     case 5:
       return "" + tlog.getCrc32();
     case 6:
       return "" + tlog.getUniqueNames().size();
     case 7:
       return tlog.getGtrid().toString();
     default:
       return null;
   }
 }