David,
The source code to the JDBC SQLite driver is available on GitHub. SQLite already includes support for custom collations, but the JDBC driver does not provide access to it. The changes I have made make this available.
However SQLite does not support bidirectional cursors, just FORWARD_ONLY, so there is no way to move backwards through the result set. But if you are only looking to determine the size of the result set, that information should be available in the meta data, without needing to use the cursors at all.
Regards,
Graeme