[
https://issues.apache.org/jira/browse/JDO-678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003963#comment-13003963
]
Andy Jefferson commented on JDO-678:
------------------------------------
Well a Properties ought to have String values only (even though it actually
implements Map<Object,Object>). A vendor may allow non-String values
(setProperty(String, Object)). For example, the PMF has a setting
javax.jdo.option.DatastoreReadTimeoutMillis which is an integer, and the PM
could allow setting of the same thing taking in an Integer. Vendor specifics
may also be non-String.
> 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
> Reporter: Andy Jefferson
> Assignee: Andy Jefferson
> Fix For: JDO 3 maintenance release 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira