equal
deleted
inserted
replaced
31 * @author Ing. František Kučera (frantovo.cz) |
31 * @author Ing. František Kučera (frantovo.cz) |
32 */ |
32 */ |
33 public class CLIOptions { |
33 public class CLIOptions { |
34 |
34 |
35 public static final String DEFAULT_NAME_PREFIX = ":"; |
35 public static final String DEFAULT_NAME_PREFIX = ":"; |
36 public static final String DEFAULT_NAME_SUFFIX = ":"; |
36 public static final String DEFAULT_NAME_SUFFIX = ""; |
37 private String sql; |
37 private String sql; |
38 private String databaseName; |
38 private String databaseName; |
39 private String databaseNameToTest; |
39 private String databaseNameToTest; |
40 private String namePrefix = DEFAULT_NAME_PREFIX; |
40 private String namePrefix = DEFAULT_NAME_PREFIX; |
41 private String nameSuffix = DEFAULT_NAME_SUFFIX; |
41 private String nameSuffix = DEFAULT_NAME_SUFFIX; |
214 |
214 |
215 public SQLCommand getSQLCommand() { |
215 public SQLCommand getSQLCommand() { |
216 if (namedParameters.isEmpty()) { |
216 if (namedParameters.isEmpty()) { |
217 return new SQLCommandNumbered(sql, numberedParameters); |
217 return new SQLCommandNumbered(sql, numberedParameters); |
218 } else { |
218 } else { |
219 return new SQLCommandNamed(sql, namedParameters); |
219 return new SQLCommandNamed(sql, namedParameters, namePrefix, nameSuffix); |
220 } |
220 } |
221 } |
221 } |
222 |
222 |
223 public OutputStream getOutputStream() { |
223 public OutputStream getOutputStream() { |
224 return System.out; |
224 return System.out; |