1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/CLIOptions.java Mon Dec 30 23:46:41 2013 +0100
1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/CLIOptions.java Tue Dec 31 17:35:33 2013 +0100
1.3 @@ -20,6 +20,8 @@
1.4 import static info.globalcode.sql.dk.Functions.isNotEmpty;
1.5 import static info.globalcode.sql.dk.Functions.equalz;
1.6 import info.globalcode.sql.dk.InfoLister.InfoType;
1.7 +import info.globalcode.sql.dk.configuration.Properties;
1.8 +import info.globalcode.sql.dk.configuration.Property;
1.9 import java.io.OutputStream;
1.10 import java.util.ArrayList;
1.11 import java.util.Collection;
1.12 @@ -45,6 +47,8 @@
1.13 private String nameSuffix = DEFAULT_NAME_SUFFIX;
1.14 private String formatterName;
1.15 private boolean batch;
1.16 + private Properties formatterProperties = new Properties();
1.17 + private Properties databaseProperties = new Properties();
1.18
1.19 public enum MODE {
1.20
1.21 @@ -167,6 +171,22 @@
1.22 namedParameters.add(p);
1.23 }
1.24
1.25 + public Properties getDatabaseProperties() {
1.26 + return databaseProperties;
1.27 + }
1.28 +
1.29 + public Properties getFormatterProperties() {
1.30 + return formatterProperties;
1.31 + }
1.32 +
1.33 + public void addDatabaseProperty(Property p) {
1.34 + databaseProperties.add(p);
1.35 + }
1.36 +
1.37 + public void addFormatterProperty(Property p) {
1.38 + formatterProperties.add(p);
1.39 + }
1.40 +
1.41 /**
1.42 * @return regular expression describing the name prefix
1.43 */