diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2007-12-05 18:58:27 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2007-12-05 18:58:27 +0000 |
commit | c44e3f479969b5e324033573b5bed31d3644c4e8 (patch) | |
tree | b29effeba6d8b30dbe9c0588909ee15fd7b5f2c2 /src/java/com/healthmarketscience/jackcess/Table.java | |
parent | 6d8b4e03a880377e2b97d448837252a53ec0b452 (diff) | |
download | jackcess-c44e3f479969b5e324033573b5bed31d3644c4e8.tar.gz jackcess-c44e3f479969b5e324033573b5bed31d3644c4e8.zip |
test cursorbuilder
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@199 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/Table.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Table.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Table.java b/src/java/com/healthmarketscience/jackcess/Table.java index d83c4b8..cfc7fcf 100644 --- a/src/java/com/healthmarketscience/jackcess/Table.java +++ b/src/java/com/healthmarketscience/jackcess/Table.java @@ -249,6 +249,19 @@ public class Table } /** + * @return the index with the given name + */ + public Index getIndex(String name) { + for(Index index : _indexes) { + if(index.getName().equals(name)) { + return index; + } + } + throw new IllegalArgumentException("Index with name " + name + + " does not exist on this table"); + } + + /** * Only called by unit tests */ int getIndexSlotCount() { |