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