ObjectDB ObjectDB

setReadOnly(flag) - JDO PersistenceManagerFactory's method

Method
javax.jdo.PersistenceManagerFactory
void setReadOnly(
  boolean flag
)

Sets the value for whether the datastore is to be considered read-only.

ReadOnly set to false specifies that no updates can be performed to the datastore, and if updates are attempted a JDOReadOnlyException is thrown.

Parameters:
flag -
Since:
JDO 2.2
See Also:
getReadOnly()