db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jdo Wiki] Update of "AllTheOtherTests" by CraigRussell
Date Wed, 21 Sep 2005 00:34:26 GMT
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.]]||.||.||

Mime
View raw message