View Javadoc

1   /**
2    * Copyright 2011 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
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  }