InfoLister: preserve order of databases to test and to list driver properties v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Wed, 15 Jan 2014 21:38:02 +0100
branchv_0
changeset 1627863d8a423d4
parent 161 385929a50dd9
child 163 1df10a9be6f4
InfoLister: preserve order of databases to test and to list driver properties
java/sql-dk/src/info/globalcode/sql/dk/CLIOptions.java
     1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/CLIOptions.java	Wed Jan 15 21:37:24 2014 +0100
     1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/CLIOptions.java	Wed Jan 15 21:38:02 2014 +0100
     1.3 @@ -27,7 +27,7 @@
     1.4  import java.util.ArrayList;
     1.5  import java.util.Collection;
     1.6  import java.util.EnumSet;
     1.7 -import java.util.HashSet;
     1.8 +import java.util.LinkedHashSet;
     1.9  import java.util.List;
    1.10  import java.util.Set;
    1.11  import java.util.regex.Pattern;
    1.12 @@ -45,8 +45,8 @@
    1.13  	public static final String DEFAULT_NAME_SUFFIX = "(?=([^\\w]|$))";
    1.14  	private String sql;
    1.15  	private String databaseName;
    1.16 -	private Set<String> databaseNamesToTest = new HashSet<>();
    1.17 -	private Set<String> databaseNamesToListProperties = new HashSet<>();
    1.18 +	private Set<String> databaseNamesToTest = new LinkedHashSet<>();
    1.19 +	private Set<String> databaseNamesToListProperties = new LinkedHashSet<>();
    1.20  	private String namePrefix = DEFAULT_NAME_PREFIX;
    1.21  	private String nameSuffix = DEFAULT_NAME_SUFFIX;
    1.22  	private String formatterName;