Connection.setReadOnly
Interface Overview | Interface Members |
This Package |
All Packages
public abstract void setReadOnly( boolean readOnly ) throws SQLException
Parameters
- readOnly
- true enables read-only mode; false disables
read-only mode.
Description
You can put a connection in read-only mode as a hint to enable
database optimizations.
Note: setReadOnly cannot be called while in the
middle of a transaction.
Exceptions
SQLException
if a database-access error occurs.