Return-Path: Delivered-To: apmail-db-jdo-commits-archive@www.apache.org Received: (qmail 79189 invoked from network); 11 Jul 2007 16:52:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jul 2007 16:52:13 -0000 Received: (qmail 2069 invoked by uid 500); 11 Jul 2007 16:52:12 -0000 Mailing-List: contact jdo-commits-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-commits@db.apache.org Received: (qmail 2014 invoked by uid 99); 11 Jul 2007 16:52:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 09:52:11 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2007 09:52:08 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 497CF1A981A; Wed, 11 Jul 2007 09:51:48 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r555337 - /db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java Date: Wed, 11 Jul 2007 16:51:48 -0000 To: jdo-commits@db.apache.org From: clr@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070711165148.497CF1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: clr Date: Wed Jul 11 09:51:46 2007 New Revision: 555337 URL: http://svn.apache.org/viewvc?view=rev&rev=555337 Log: JDO-450 Changed signatures of PersistenceManager methods to be generic. Ran tck2 tests; same results as before. Reviewed javadoc; new method signatures seem to javadoc ok. Modified: db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java Modified: db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java?view=diff&rev=555337&r1=555336&r2=555337 ============================================================================== --- db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java (original) +++ db/jdo/trunk/api2/src/java/javax/jdo/PersistenceManager.java Wed Jul 11 09:51:46 2007 @@ -338,7 +338,7 @@ * @return the corresponding persistent instance * @since 2.0 */ - Object getObjectById (Class cls, Object key); + T getObjectById (Class cls, Object key); /** * Looks up the instance corresponding to the specified oid. This is @@ -516,7 +516,7 @@ * persistent state, or the corresponding persistent instance * for detached parameter instances */ - Object makePersistent (Object pc); + T makePersistent (T pc); /** Make an array of instances persistent. * @param pcs an array of instances @@ -526,7 +526,7 @@ * parameter array * @see #makePersistent(Object pc) */ - Object[] makePersistentAll (Object[] pcs); + T[] makePersistentAll (T[] pcs); /** Make a Collection of instances persistent. * @param pcs a Collection of instances @@ -536,7 +536,7 @@ * as in the parameter Collection * @see #makePersistent(Object pc) */ - Collection makePersistentAll (Collection pcs); + Collection makePersistentAll (Collection pcs); /** Delete the persistent instance from the data store. * This method must be called in an active transaction. @@ -923,7 +923,7 @@ * @see #detachCopyAll(Object[]) * @since 2.0 */ - Object detachCopy (Object pc); + T detachCopy (T pc); /** * Detach the specified instances from the PersistenceManager. @@ -936,7 +936,7 @@ * @see #detachCopyAll(Object[]) * @since 2.0 */ - Collection detachCopyAll (Collection pcs); + Collection detachCopyAll (Collection pcs); /** * Detach the specified instances from the PersistenceManager. @@ -962,7 +962,7 @@ * @see #getFetchPlan * @since 2.0 */ - Object[] detachCopyAll (Object [] pcs); + T[] detachCopyAll (T[] pcs); /** * Put the specified key-value pair into the map of user objects. @@ -1042,7 +1042,7 @@ * @return the created instance * @since 2.0 */ - Object newInstance (Class pcClass); + T newInstance (Class pcClass); /** * Returns the sequence identified by name.