[ https://issues.apache.org/jira/browse/JDO-678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13480074#comment-13480074 ]
Craig L Russell commented on JDO-678: ------------------------------------- Specification update: 12.19 Property Management The operation of a PersistenceManager is partly governed by the settings of various properties, which have been documented in earler sections. These properties are inherited from the PersistenceManagerFactory whence the PersistenceManager was obtained. The properties can be set by methods such as setNontransactionalRead. Some properties are not standardized but are implementation-defined. These non-standard properties can only be set via the setProperty method. void setProperty(String name, Object value); Set the property named name to the value value. If a vendor-specific property is not recognized, it is silently ignored. If the value for the property is not supported by the implementation, a JDOUserException is thrown. Map<String, Object> getProperties(); Return a map of String, Object with the properties and values currently in effect. Changing the values in the map will not affect the properties in the PersistenceManager. Set<String> getSupportedProperties(); Return a set of properties supported by this PersistenceManager. > Ability to set properties on PersistenceManager > ----------------------------------------------- > > Key: JDO-678 > URL: https://issues.apache.org/jira/browse/JDO-678 > Project: JDO > Issue Type: Improvement > Components: api, specification, tck > Affects Versions: JDO 3 (3.0) > Reporter: Andy Jefferson > Assignee: Craig L Russell > Fix For: JDO 3 maintenance release 1 (3.1) > > Attachments: jdo-678.patch > > > It would be desirable to be able to set properties on the PersistenceManager, > so as to be able to configure/change behaviour for a PM. Currently the PM is > generated with particular configuration (from the PMF) and allows specific > options to be set. But what about vendor extensions ? Having a general > setProperty/getProperty/getSupportedProperties would be useful, and could > also encompass the existing detachAllOnCommit, IgnoreCache, etc settings. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira