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;
17  
18  import java.io.File;
19  import java.util.List;
20  import javax.sql.DataSource;
21  
22  public class ExportDataContext {
23  
24      protected DataSource dataSource;
25      protected int dataThreads;
26      protected File workingDir;
27      protected String encoding;
28      protected List<ExportTableContext> tableContexts;
29  
30      protected int rowCountInterval;
31      protected int dataSizeInterval;
32  
33      public DataSource getDataSource() {
34          return dataSource;
35      }
36  
37      public void setDataSource(DataSource dataSource) {
38          this.dataSource = dataSource;
39      }
40  
41      public int getDataThreads() {
42          return dataThreads;
43      }
44  
45      public void setDataThreads(int dataThreads) {
46          this.dataThreads = dataThreads;
47      }
48  
49      public File getWorkingDir() {
50          return workingDir;
51      }
52  
53      public void setWorkingDir(File workingDir) {
54          this.workingDir = workingDir;
55      }
56  
57      public String getEncoding() {
58          return encoding;
59      }
60  
61      public void setEncoding(String encoding) {
62          this.encoding = encoding;
63      }
64  
65      public int getDataSizeInterval() {
66          return dataSizeInterval;
67      }
68  
69      public void setDataSizeInterval(int dataSizeInterval) {
70          this.dataSizeInterval = dataSizeInterval;
71      }
72  
73      public int getRowCountInterval() {
74          return rowCountInterval;
75      }
76  
77      public void setRowCountInterval(int rowCountInterval) {
78          this.rowCountInterval = rowCountInterval;
79      }
80  
81      public List<ExportTableContext> getTableContexts() {
82          return tableContexts;
83      }
84  
85      public void setTableContexts(List<ExportTableContext> tableContexts) {
86          this.tableContexts = tableContexts;
87      }
88  
89  }