I'm acessing a MS Access database on Java using the Jackcess Library and I'd like to know how to find a table row by more than one column value.
So far I followed this procedure every time I need to find a row by one column value:
Row row = CursorBuilder.findRow(table, Collections.singletonMap("a", "foo"));
if(row != null) {
System.out.println("Found row where 'a' == 'foo': " + row);
} else {
System.out.println("Could not find row where 'a' == 'foo'");
}
I found this on Jackcess website, it does something similar to "SELECT * FROM tablename WHERE a = "foo". What I need is to have more than one "WHERE-Condition".
From what I read on the Jackcess the documentation the FindRowByPrimaryKey or FindRowByEntry seem to do what I need but the examples I find only show it working with one condition.
The second argument is called entryValues (plural), but I have no idea how can use that.
Thanks in advance