jdbc - set transaction readOnly when possible so the database driver can optimize it