summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2009-06-13 19:42:51 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2009-06-13 19:42:51 +0000
commit5d7d876aaef340c4b82cd5b0227be06052603342 (patch)
tree069aa43ae7ba0ccf13eef1b875143a03a8ac066e
parent5f0f190e88788ffc6993af5a1129b1ea97674e1c (diff)
downloadjackcess-5d7d876aaef340c4b82cd5b0227be06052603342.tar.gz
jackcess-5d7d876aaef340c4b82cd5b0227be06052603342.zip
return ordered set of table names
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@397 f203690c-595d-4dc9-a70b-905162fa7fd2
-rw-r--r--src/java/com/healthmarketscience/jackcess/Database.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Database.java b/src/java/com/healthmarketscience/jackcess/Database.java
index b8c45d5..0416a7f 100644
--- a/src/java/com/healthmarketscience/jackcess/Database.java
+++ b/src/java/com/healthmarketscience/jackcess/Database.java
@@ -54,11 +54,12 @@ import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
+import java.util.TreeSet;
+import com.healthmarketscience.jackcess.query.Query;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import com.healthmarketscience.jackcess.query.Query;
/**
* An Access database.
@@ -480,7 +481,7 @@ public class Database
*/
public Set<String> getTableNames() {
if(_tableNames == null) {
- _tableNames = new HashSet<String>();
+ _tableNames = new TreeSet<String>(String.CASE_INSENSITIVE_ORDER);
for(TableInfo tableInfo : _tableLookup.values()) {
_tableNames.add(tableInfo.tableName);
}