java/sql-dk/src/main/java/info/globalcode/sql/dk/configuration/CommandArgument.java
3 * Copyright © 2015 František Kučera (frantovo.cz)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package info.globalcode.sql.dk.configuration;
19 import javax.xml.bind.annotation.XmlAttribute;
20 import javax.xml.bind.annotation.XmlEnum;
21 import javax.xml.bind.annotation.XmlEnumValue;
22 import javax.xml.bind.annotation.XmlValue;
26 * @author Ing. František Kučera (frantovo.cz)
28 public class CommandArgument {
34 public static enum TYPE {
37 * value = literal (text) argument
39 @XmlEnumValue("literal")
42 * value will be substituted by hostname or IP address of the DB server
47 * value will be substituted by the port of the DB server
52 * value will be substituted by environmental variable of given name
57 * value will be substituted by database property of given name
59 @XmlEnumValue("dbProperty")
64 public String getValue() {
68 public void setValue(String value) {
72 @XmlAttribute(name = "type")
73 public TYPE getType() {
77 public void setType(TYPE type) {