db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JDO-678) Ability to set properties on PersistenceManager
Date Sun, 13 Mar 2011 08:29:59 GMT

    [ https://issues.apache.org/jira/browse/JDO-678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006157#comment-13006157

Andy Jefferson commented on JDO-678:

I would expect all existing (standard) properties to be present (those that have setters/getters
currently - Multithreaded, IgnoreCache, DatastoreReadTimeoutMillis, DatastoreWriteTimeoutMillis,
DetachAllOnCommit, CopyOnAttach). And I'd use the same PMF namings javax.jdo.option.XXX for

So getSupportedProperties would return the standard (existing) properties, as well as vendor
extensions, and getProperty(name), setProperty(name, val) would take in "name" of javax.jdo.option.XXX
for the existing properties (as well as any vendor extensions).

> 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

View raw message