In my Access db table, I have a cmt_data
column which contains a string. For example:
Check in the packet TM(12,9) MRSS0319 'Monitoring List Report'.
I also have a List<String>
with items such as MRSS0319
, TRPP3006
, etc. What I'm looking to do is perform a substring match between my List<String>
and the table column, but I can't quite figure out how as the examples provided with Jackcess is rather simple. An example I found here shows:
Column col = table.getColumn("town");
cursor.beforeFirst();
while(cursor.moveToNextRow()) {
if(cursor.currentRowMatches(columnPattern, valuePattern)) {
// handle matching row here
}
}
Where the method cursor.currentRowMatches(columnPattern, valuePattern)
looks like it could be useful. However according to the documentation it seems that the method only performs string equality matching, so now I'm sort of at a dead end.
Appreciate your help.