View Javadoc

1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.jdbc.dump;
17  
18  import java.io.File;
19  import java.util.List;
20  
21  import javax.sql.DataSource;
22  
23  public class DumpContext {
24  
25  	boolean processTables = true;
26  	boolean processSequences = true;
27  	boolean processViews = true;
28  	boolean printMetaInfLists = false;
29  	boolean antCompatibilityMode = true;
30  	int threads = 15;
31  	String controlTemplate = "data/Control.vm";
32  	String comment = "Generated by the spring-maven-plugin";
33  	String encoding = "UTF-8";
34  	File schemaXmlFile;
35  	String schemaName;
36  	String username;
37  	String password;
38  	String driver;
39  	String url;
40  	String artifactId;
41  	// oracle, mysql, etc
42  	String databaseVendor;
43  	List<String> tableIncludes;
44  	List<String> tableExcludes;
45  	List<String> viewIncludes;
46  	List<String> viewExcludes;
47  	List<String> sequenceIncludes;
48  	List<String> sequenceExcludes;
49  	String dateFormat;
50  	File workingDir;
51  	File contextProperties;
52  	String reportFile;
53  	DataSource dataSource;
54  
55  	public File getSchemaXmlFile() {
56  		return schemaXmlFile;
57  	}
58  
59  	public void setSchemaXmlFile(File schemaXmlFile) {
60  		this.schemaXmlFile = schemaXmlFile;
61  	}
62  
63  	public String getSchemaName() {
64  		return schemaName;
65  	}
66  
67  	public void setSchemaName(String schemaName) {
68  		this.schemaName = schemaName;
69  	}
70  
71  	public String getUsername() {
72  		return username;
73  	}
74  
75  	public void setUsername(String username) {
76  		this.username = username;
77  	}
78  
79  	public String getPassword() {
80  		return password;
81  	}
82  
83  	public void setPassword(String password) {
84  		this.password = password;
85  	}
86  
87  	public String getDriver() {
88  		return driver;
89  	}
90  
91  	public void setDriver(String driver) {
92  		this.driver = driver;
93  	}
94  
95  	public String getUrl() {
96  		return url;
97  	}
98  
99  	public void setUrl(String url) {
100 		this.url = url;
101 	}
102 
103 	public String getArtifactId() {
104 		return artifactId;
105 	}
106 
107 	public void setArtifactId(String artifactId) {
108 		this.artifactId = artifactId;
109 	}
110 
111 	public String getDatabaseVendor() {
112 		return databaseVendor;
113 	}
114 
115 	public void setDatabaseVendor(String vendor) {
116 		this.databaseVendor = vendor;
117 	}
118 
119 	public List<String> getTableIncludes() {
120 		return tableIncludes;
121 	}
122 
123 	public void setTableIncludes(List<String> tableIncludes) {
124 		this.tableIncludes = tableIncludes;
125 	}
126 
127 	public List<String> getTableExcludes() {
128 		return tableExcludes;
129 	}
130 
131 	public void setTableExcludes(List<String> tableExcludes) {
132 		this.tableExcludes = tableExcludes;
133 	}
134 
135 	public List<String> getViewIncludes() {
136 		return viewIncludes;
137 	}
138 
139 	public void setViewIncludes(List<String> viewIncludes) {
140 		this.viewIncludes = viewIncludes;
141 	}
142 
143 	public List<String> getViewExcludes() {
144 		return viewExcludes;
145 	}
146 
147 	public void setViewExcludes(List<String> viewExcludes) {
148 		this.viewExcludes = viewExcludes;
149 	}
150 
151 	public List<String> getSequenceIncludes() {
152 		return sequenceIncludes;
153 	}
154 
155 	public void setSequenceIncludes(List<String> sequenceIncludes) {
156 		this.sequenceIncludes = sequenceIncludes;
157 	}
158 
159 	public List<String> getSequenceExcludes() {
160 		return sequenceExcludes;
161 	}
162 
163 	public void setSequenceExcludes(List<String> sequenceExcludes) {
164 		this.sequenceExcludes = sequenceExcludes;
165 	}
166 
167 	public String getComment() {
168 		return comment;
169 	}
170 
171 	public void setComment(String comment) {
172 		this.comment = comment;
173 	}
174 
175 	public String getDateFormat() {
176 		return dateFormat;
177 	}
178 
179 	public void setDateFormat(String dateFormat) {
180 		this.dateFormat = dateFormat;
181 	}
182 
183 	public File getWorkingDir() {
184 		return workingDir;
185 	}
186 
187 	public void setWorkingDir(File workingDir) {
188 		this.workingDir = workingDir;
189 	}
190 
191 	public boolean isProcessTables() {
192 		return processTables;
193 	}
194 
195 	public void setProcessTables(boolean processTables) {
196 		this.processTables = processTables;
197 	}
198 
199 	public boolean isProcessSequences() {
200 		return processSequences;
201 	}
202 
203 	public void setProcessSequences(boolean processSequences) {
204 		this.processSequences = processSequences;
205 	}
206 
207 	public boolean isProcessViews() {
208 		return processViews;
209 	}
210 
211 	public void setProcessViews(boolean processViews) {
212 		this.processViews = processViews;
213 	}
214 
215 	public boolean isPrintMetaInfLists() {
216 		return printMetaInfLists;
217 	}
218 
219 	public void setPrintMetaInfLists(boolean printMetaInfLists) {
220 		this.printMetaInfLists = printMetaInfLists;
221 	}
222 
223 	public File getContextProperties() {
224 		return contextProperties;
225 	}
226 
227 	public void setContextProperties(File contextProperties) {
228 		this.contextProperties = contextProperties;
229 	}
230 
231 	public String getControlTemplate() {
232 		return controlTemplate;
233 	}
234 
235 	public void setControlTemplate(String controlTemplate) {
236 		this.controlTemplate = controlTemplate;
237 	}
238 
239 	public String getReportFile() {
240 		return reportFile;
241 	}
242 
243 	public void setReportFile(String reportFile) {
244 		this.reportFile = reportFile;
245 	}
246 
247 	public DataSource getDataSource() {
248 		return dataSource;
249 	}
250 
251 	public void setDataSource(DataSource dataSource) {
252 		this.dataSource = dataSource;
253 	}
254 
255 	public int getThreads() {
256 		return threads;
257 	}
258 
259 	public void setThreads(int threads) {
260 		this.threads = threads;
261 	}
262 
263 	public boolean isAntCompatibilityMode() {
264 		return antCompatibilityMode;
265 	}
266 
267 	public void setAntCompatibilityMode(boolean antCompatibilityMode) {
268 		this.antCompatibilityMode = antCompatibilityMode;
269 	}
270 
271 	public String getEncoding() {
272 		return encoding;
273 	}
274 
275 	public void setEncoding(String encoding) {
276 		this.encoding = encoding;
277 	}
278 
279 }