java.sql.Connection.setReadOnly is supported.
See the section Differences using the Connection.setReadOnly method in the Java DB Reference Manual for more information.