1 package org.kuali.common.impex.data; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import org.kuali.common.util.PercentCompleteInformer; 7 8 public class ExportTableBucket implements Comparable<ExportTableBucket> { 9 10 ExportDataContext context; 11 ExportDataService service; 12 List<ExportTableContext> tables = new ArrayList<ExportTableContext>(); 13 PercentCompleteInformer progressTracker; 14 List<ExportTableResult> results; 15 long rowCount; 16 long size; 17 18 @Override 19 public int compareTo(ExportTableBucket other) { 20 Long one = rowCount; 21 Long two = other.getRowCount(); 22 return one.compareTo(two); 23 } 24 25 public List<ExportTableContext> getTables() { 26 return tables; 27 } 28 29 public void setTables(List<ExportTableContext> tables) { 30 this.tables = tables; 31 } 32 33 public ExportDataContext getContext() { 34 return context; 35 } 36 37 public void setContext(ExportDataContext context) { 38 this.context = context; 39 } 40 41 public ExportDataService getService() { 42 return service; 43 } 44 45 public void setService(ExportDataService service) { 46 this.service = service; 47 } 48 49 public PercentCompleteInformer getProgressTracker() { 50 return progressTracker; 51 } 52 53 public void setProgressTracker(PercentCompleteInformer progressTracker) { 54 this.progressTracker = progressTracker; 55 } 56 57 public List<ExportTableResult> getResults() { 58 return results; 59 } 60 61 public void setResults(List<ExportTableResult> results) { 62 this.results = results; 63 } 64 65 public long getRowCount() { 66 return rowCount; 67 } 68 69 public void setRowCount(long rowCount) { 70 this.rowCount = rowCount; 71 } 72 73 public long getSize() { 74 return size; 75 } 76 77 public void setSize(long size) { 78 this.size = size; 79 } 80 81 }