From 5d7d876aaef340c4b82cd5b0227be06052603342 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Sat, 13 Jun 2009 19:42:51 +0000 Subject: 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 --- src/java/com/healthmarketscience/jackcess/Database.java | 5 +++-- 1 file 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 getTableNames() { if(_tableNames == null) { - _tableNames = new HashSet(); + _tableNames = new TreeSet(String.CASE_INSENSITIVE_ORDER); for(TableInfo tableInfo : _tableLookup.values()) { _tableNames.add(tableInfo.tableName); } -- cgit v1.2.3