1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.common.impex.data.service.impl;
17
18 import org.kuali.common.impex.model.Table;
19 import org.kuali.common.util.PercentCompleteInformer;
20 import org.kuali.common.util.Weighted;
21
22 public class DumpTableContext implements Comparable<DumpTableContext>, Weighted {
23
24 Table table;
25 long rowCount;
26 long size;
27 PercentCompleteInformer informer;
28
29 @Override
30 public double getWeight() {
31 return rowCount;
32 }
33
34 @Override
35 public int compareTo(DumpTableContext other) {
36 return Double.compare(rowCount, other.getRowCount());
37 }
38
39 public long getRowCount() {
40 return rowCount;
41 }
42
43 public void setRowCount(long rowCount) {
44 this.rowCount = rowCount;
45 }
46
47 public long getSize() {
48 return size;
49 }
50
51 public void setSize(long size) {
52 this.size = size;
53 }
54
55 public Table getTable() {
56 return table;
57 }
58
59 public void setTable(Table table) {
60 this.table = table;
61 }
62
63 public PercentCompleteInformer getInformer() {
64 return informer;
65 }
66
67 public void setInformer(PercentCompleteInformer informer) {
68 this.informer = informer;
69 }
70 }