1 package org.kuali.common.impex.data.service.impl;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6 import org.kuali.common.impex.data.service.DumpDataContext;
7 import org.kuali.common.impex.data.service.DumpDataService;
8
9 public class DumpTableBucket implements Comparable<DumpTableBucket> {
10
11 DumpDataContext context;
12 DumpDataService service;
13 List<DumpTableContext> tables = new ArrayList<DumpTableContext>();
14 List<DumpTableResult> results;
15 long rowCount;
16 long size;
17
18 @Override
19 public int compareTo(DumpTableBucket other) {
20 return Double.compare(rowCount, other.getRowCount());
21 }
22
23 public List<DumpTableContext> getTables() {
24 return tables;
25 }
26
27 public void setTables(List<DumpTableContext> tables) {
28 this.tables = tables;
29 }
30
31 public DumpDataContext getContext() {
32 return context;
33 }
34
35 public void setContext(DumpDataContext context) {
36 this.context = context;
37 }
38
39 public DumpDataService getService() {
40 return service;
41 }
42
43 public void setService(DumpDataService service) {
44 this.service = service;
45 }
46
47 public List<DumpTableResult> getResults() {
48 return results;
49 }
50
51 public void setResults(List<DumpTableResult> results) {
52 this.results = results;
53 }
54
55 public long getRowCount() {
56 return rowCount;
57 }
58
59 public void setRowCount(long rowCount) {
60 this.rowCount = rowCount;
61 }
62
63 public long getSize() {
64 return size;
65 }
66
67 public void setSize(long size) {
68 this.size = size;
69 }
70
71 }