Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 98501 invoked from network); 13 Mar 2011 08:30:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Mar 2011 08:30:24 -0000 Received: (qmail 86531 invoked by uid 500); 13 Mar 2011 08:30:24 -0000 Mailing-List: contact jdo-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-dev@db.apache.org Received: (qmail 86523 invoked by uid 99); 13 Mar 2011 08:30:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Mar 2011 08:30:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Mar 2011 08:30:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9A23B3A614B for ; Sun, 13 Mar 2011 08:29:59 +0000 (UTC) Date: Sun, 13 Mar 2011 08:29:59 +0000 (UTC) From: "Andy Jefferson (JIRA)" To: jdo-dev@db.apache.org Message-ID: <745425322.15995.1300004999627.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1874741217.13401.1299232116890.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (JDO-678) Ability to set properties on PersistenceManager MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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 consistency. 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