diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2011-12-27 15:41:17 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2011-12-27 15:41:17 +0000 |
commit | fc3bd9e65c915a20a5e2e7768b134fb84482efe0 (patch) | |
tree | 7f1d6fa17769d0f6c3f553191c5f7d9a1b0539ac /src/java/com/healthmarketscience/jackcess/complex/ComplexColumnInfo.java | |
parent | 01ec74adba79020318c2dc7ef2cafab6c7a0858c (diff) | |
download | jackcess-fc3bd9e65c915a20a5e2e7768b134fb84482efe0.tar.gz jackcess-fc3bd9e65c915a20a5e2e7768b134fb84482efe0.zip |
Rename and refactor the Cursor find methods to improve usability
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@606 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/complex/ComplexColumnInfo.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/complex/ComplexColumnInfo.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/complex/ComplexColumnInfo.java b/src/java/com/healthmarketscience/jackcess/complex/ComplexColumnInfo.java index f9de56d..0a4b255 100644 --- a/src/java/com/healthmarketscience/jackcess/complex/ComplexColumnInfo.java +++ b/src/java/com/healthmarketscience/jackcess/complex/ComplexColumnInfo.java @@ -112,7 +112,7 @@ public abstract class ComplexColumnInfo<V extends ComplexValue> Table complexColumns = db.getSystemComplexColumns(); IndexCursor cursor = IndexCursor.createCursor( complexColumns, complexColumns.getPrimaryKeyIndex()); - if(!cursor.findRowByEntry(complexTypeId)) { + if(!cursor.findFirstRowByEntry(complexTypeId)) { throw new IOException( "Could not find complex column info for complex column with id " + complexTypeId); @@ -333,7 +333,7 @@ public abstract class ComplexColumnInfo<V extends ComplexValue> .toIndexCursor(); } - if(!_pkCursor.findRowByEntry(id)) { + if(!_pkCursor.findFirstRowByEntry(id)) { throw new IllegalArgumentException("Row with id " + id + " does not exist"); } |