Return-Path: Delivered-To: apmail-db-jdo-commits-archive@www.apache.org Received: (qmail 18142 invoked from network); 21 Sep 2005 00:34:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2005 00:34:56 -0000 Received: (qmail 39527 invoked by uid 500); 21 Sep 2005 00:34:44 -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 39514 invoked by uid 99); 21 Sep 2005 00:34:44 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Sep 2005 17:34:43 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 1E3FA123 for ; Wed, 21 Sep 2005 02:34:27 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Apache Wiki To: jdo-commits@db.apache.org Date: Wed, 21 Sep 2005 00:34:26 -0000 Message-ID: <20050921003426.15539.13142@ajax.apache.org> Subject: [Jdo Wiki] Update of "AllTheOtherTests" by CraigRussell X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Dear Wiki user, You have subscribed to a wiki page or wiki category on "Jdo Wiki" for change notification. The following page has been changed by CraigRussell: http://wiki.apache.org/jdo/AllTheOtherTests ------------------------------------------------------------------------------ ||PMF||A11.4-10||A11.4-10 [boolean isClosed(); Return true if this Persistence``Manager``Factory is closed; and false otherwise.]||.||.|| ||PMF||A11.8-1||A11.8-1 [To obtain a reference to the cache manager, the getDataStoreCache() method of Persistence``Manager``Factory is used. Data``Store``Cache getDataStoreCache(); If there is no second-level cache, the returned instance silently does nothing.]||.||.|| ||PMF||A11.9-1||A11.9-1 [void addInstanceLifecycleListener (Instance``Lifecycle``Listen­er listener, Class[] classes); This Persistence``Manager``Factory method adds the listener to the list of instance lifecycle event listeners set as the initial listeners for each Persistence``Manager created by this Per­sistence``Manager``Factory. The classes parameter identifies all of the classes of interest. If the classes parameter is specified as null, events for all persistent classes and interfaces are gen­erated. If the classes specified have persistence-capable subclasses, all such subclasses are regis­tered implicitly. The listener will be called for each event for which it implements the corresponding listener inter­face.]||.||.|| - ||PMF||A11.9-2||A11.9-2 [void removeInstanceLifecycleListener (Instance``Lifecycle``Listener listener); This Persistence``Manager``Factory method removes the listener from the list of event listen­ers set as the initial listeners for each Persistence``Manager created by this Persistence­ManagerFactory.]||.||.|| + ||PMF||A11.9-2||A11.9-2 [void removeInstanceLifecycleListener (Instance``Lifecycle``Listener listener); This Persistence``Manager``Factory method removes the listener from the list of event listen­ers set as the initial listeners for each Persistence``Manager created by this Persistence``Manager``Factory.]||.||.|| ||PM||A12.5.1-2||A12.5.1-2 (PART 1) [If evictAll with no parameters is called, then all persistent-clean instances are evicted (they transition to hollow).] A12.5.1-2 (PART 2), A12.5.1-3 (PART 2), A12.5.1-4 (PART 2) [For each persistent-clean and persistent-nontransactional instance that the JDO Persistence``Manager evicts, it: calls the jdoPreClear method on each instance, if the class of the instance implements Instance``Callbacks clears persistent fields on each instance (sets the value of the field to its Java default value); changes the state of instances to hollow or persistent-nontransactional (cannot distinguish between these two states) this is not directly testable..]] '''See spreadsheet for more info.'''||.||.|| ||PM||A12.5.4-2||Extent getExtent (Class persistenceCapable, boolean subclasses); Extent getExtent (Class persistenceCapable); A12.5.4-2, A12.5.4-3 [The getExtent method returns an Extent that contains all of the instances in the parameter class or interface, and if the subclasses flag is true, all of the instances of the parameter class and its subclasses.] The method with no subclasses parameter is treated as equiv­alent to getExtent (persistenceCapable, true).] '''See spreadsheet for more info.'''||.||.|| ||PM||A12.7.1-1||A12.7.1-1 [/** Add the fetchgroup to the set of active fetch groups. Duplicate names will be removed.*/ Fetch``Plan addGroup(String fetchGroupName); /** Remove the fetch group from the set active fetch groups. */ Fetch``Plan removeGroup(String fetchGroupName); /** Remove all active groups, including the default fetch group. */ Fetch``Plan clearGroups(); /** Return an immutable Set of the names of all active fetch groups.*/ Set getGroups(); /** Set a Collection of group names to replace the current groups. Duplicate names will be removed.*/ Fetch``Plan setGroups(Collection fetchGroupNames); /** Set an array of group names to replace the current groups. Duplicate names will be removed.*/ Fetch``Plan setGroups(String[] fetchGroupNames); /** Set a single group to replace the current groups. */ Fetch``Plan setGroup(String fetchGroupName);]]||.||.|| @@ -50, +50 @@ ||PM||A12.11-1||A12.11-1 [Object putUserObject(Object key, Object value); This method models the put method of Map. The current value associated with the key is returned and replaced by the parameter value. If the parameter value is null, the implementation may re­move the entry from the table of managed key/value pairs Object removeUserObject(Object key); This method models the remove method of Map. The current value associated with the key is re­turned and removed Object getUserObject(Object key); This method models the get method of Map. The current value associated with the key is returned. If the key is not found in the table, null is returned.]..]||.||.|| ||PM||A12.12-1||A12.12-1 [The application might need to get the Persistence``Manager``Factory that created this Persistence``Manager. If the Persistence``Manager was created using a constructor, then this call returns null.]]||.||.|| ||PM||12.5.6-18||12.5.6-18 [Object getObjectById (Class cls, Object key); The getObjectById method attempts to find an instance in the cache with the derived JDO identity. The key parameter is either the string representation of the object id, or is an object repre­sentation of a single field identity key.]]||.||.|| - ||PM||12.5.6-17||12.5.6-17 [Collection getObjectsById (Collection oids); Object[] getObjectsById (Object[] oids); Collection getObjectsById (Collection oids, boolean validate); Object[] getObjectsById (Object[] oids, boolean validate); The getObjectsById method attempts to find instances in the cache with the specified JDO identities. The elements of the oids parameter object might have been returned by earlier calls to getObjectId or getTransactionalObjectId, or might have been constructed by the application. If a method with no validate parameter is used, the method behaves exactly as the correspond­ing method with the validate flag set to true. If the Object[] form of the method is used, the returned objects correspond by position with the object ids in the oids parameter. If the Collection form of the method is used, the iterator over the returned Collection returns instances in the same order as the oids returned by an iterator over the parameter Collection. The card inality of the return value is the same as the cardinality of the oids parameter. ]||.||.|| + ||PM||12.5.6-17||12.5.6-17 [Collection getObjectsById (Collection oids); Object[] getObjectsById (Object[] oids); Collection getObjectsById (Collection oids, boolean validate); Object[] getObjectsById (Object[] oids, boolean validate); The getObjectsById method attempts to find instances in the cache with the specified JDO identities. The elements of the oids parameter object might have been returned by earlier calls to getObjectId or getTransactionalObjectId, or might have been constructed by the application. If a method with no validate parameter is used, the method behaves exactly as the correspond­ing method with the validate flag set to true. If the Object[] form of the method is used, the returned objects correspond by position with the object ids in the oids parameter. If the Collection form of the method is used, the iterator over the returned Collection returns instances in the same order as the oids returned by an iterator over the parameter Collection. The card inality of the return value is the same as the cardinality of the oids parameter. ]||.||JDO-141|| ||PM||A12.14-1||A12.14-1 [The Persistence``Manager provides a method to retrieve a Sequence by name. Sequence getSequence(String name); If the named sequence does not exist, JDOUser``Exception is thrown.]]||.||.|| ||PM||A12.14-2||A12.14-2 [String getName(); This method returns the fully qualified name of the Sequence.]]||.||.|| ||PM||A12.14-3||A12.14-3 [Object next(); This method returns the next sequence value object. The sequence might be protected by transac­tional semantics, in which case the sequence value object will be reused if the transaction in which the sequence value object was obtained rolls back.]]||.||.||