001 /** 002 * Copyright 2010-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.kuali.common.jdbc.dump; 017 018 import java.io.File; 019 import java.util.List; 020 021 import javax.sql.DataSource; 022 023 public class DumpContext { 024 025 boolean processTables = true; 026 boolean processSequences = true; 027 boolean processViews = true; 028 boolean printMetaInfLists = false; 029 boolean antCompatibilityMode = true; 030 int threads = 15; 031 String controlTemplate = "data/Control.vm"; 032 String comment = "Generated by the spring-maven-plugin"; 033 String encoding = "UTF-8"; 034 File schemaXmlFile; 035 String schemaName; 036 String username; 037 String password; 038 String driver; 039 String url; 040 String artifactId; 041 // oracle, mysql, etc 042 String databaseVendor; 043 List<String> tableIncludes; 044 List<String> tableExcludes; 045 List<String> viewIncludes; 046 List<String> viewExcludes; 047 List<String> sequenceIncludes; 048 List<String> sequenceExcludes; 049 String dateFormat; 050 File workingDir; 051 File contextProperties; 052 String reportFile; 053 DataSource dataSource; 054 055 public File getSchemaXmlFile() { 056 return schemaXmlFile; 057 } 058 059 public void setSchemaXmlFile(File schemaXmlFile) { 060 this.schemaXmlFile = schemaXmlFile; 061 } 062 063 public String getSchemaName() { 064 return schemaName; 065 } 066 067 public void setSchemaName(String schemaName) { 068 this.schemaName = schemaName; 069 } 070 071 public String getUsername() { 072 return username; 073 } 074 075 public void setUsername(String username) { 076 this.username = username; 077 } 078 079 public String getPassword() { 080 return password; 081 } 082 083 public void setPassword(String password) { 084 this.password = password; 085 } 086 087 public String getDriver() { 088 return driver; 089 } 090 091 public void setDriver(String driver) { 092 this.driver = driver; 093 } 094 095 public String getUrl() { 096 return url; 097 } 098 099 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 }