setReadOnlyTrmode(boolean mode)

Syntax:

void setReadOnlyTrmode(boolean mode) throws SQLException

Description:

Puts the connection into read-only transaction mode. This causes the underlying SQL engine to use read-only transactions for accessing data during queries (when no changes are made) instead of using read-locks. This can generate better performance but can also cause more memory usage. See the documentation on read-only transactions for further information. The default is to not be in read-only transaction mode.

This is not a part of the JDBC Connection interface, so to access it you must cast the Connection to an RDMConnection.

Parameters:

mode

true enables read-only transaction mode; false disables it

Throws:

SQLException - if a database access error occurs