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.util.service;
017    
018    import java.io.File;
019    import java.io.PrintStream;
020    import java.util.List;
021    
022    import org.kuali.common.util.ignore.Ignore;
023    
024    public class MySqlDumpContext {
025    
026            List<Ignore> ignorers;
027            String executable = MySqlDumpService.DEFAULT_EXECUTABLE;
028            String username;
029            String password;
030            String hostname;
031            int port = MySqlDumpService.DEFAULT_PORT;
032            List<String> options;
033            String database;
034            List<String> tables;
035            File outputFile;
036            PrintStream out;
037    
038            public String getUsername() {
039                    return username;
040            }
041    
042            public void setUsername(String username) {
043                    this.username = username;
044            }
045    
046            public String getPassword() {
047                    return password;
048            }
049    
050            public void setPassword(String password) {
051                    this.password = password;
052            }
053    
054            public String getHostname() {
055                    return hostname;
056            }
057    
058            public void setHostname(String hostname) {
059                    this.hostname = hostname;
060            }
061    
062            public String getDatabase() {
063                    return database;
064            }
065    
066            public void setDatabase(String database) {
067                    this.database = database;
068            }
069    
070            public File getOutputFile() {
071                    return outputFile;
072            }
073    
074            public void setOutputFile(File outputFile) {
075                    this.outputFile = outputFile;
076            }
077    
078            public String getExecutable() {
079                    return executable;
080            }
081    
082            public void setExecutable(String executable) {
083                    this.executable = executable;
084            }
085    
086            public int getPort() {
087                    return port;
088            }
089    
090            public void setPort(int port) {
091                    this.port = port;
092            }
093    
094            public List<String> getTables() {
095                    return tables;
096            }
097    
098            public void setTables(List<String> tables) {
099                    this.tables = tables;
100            }
101    
102            public List<String> getOptions() {
103                    return options;
104            }
105    
106            public void setOptions(List<String> options) {
107                    this.options = options;
108            }
109    
110            public PrintStream getOut() {
111                    return out;
112            }
113    
114            public void setOut(PrintStream out) {
115                    this.out = out;
116            }
117    
118            public List<Ignore> getIgnorers() {
119                    return ignorers;
120            }
121    
122            public void setIgnorers(List<Ignore> ignorers) {
123                    this.ignorers = ignorers;
124            }
125    
126    }