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 Fri, 21 Oct 2005 21:29:45 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

------------------------------------------------------------------------------
  ||Life``Cycle||A5.5.8-AD3||Attempts to change their state via any of the persistence manager
methods (e.g. makePersistent, deletePersistent, etc.) throw JDO``User``Exception.||.||.||
  ||Life``Cycle||A5.5.9-AD1||the instance is detached in the persistent-dirty state while
the Persistence``Manager flag Detach``Dirty is true;||.||.||
  ||Life``Cycle||A5.5.9-AD2||a field of the detached instance is explicitly modified by the
application. Dirty-detached instances do not change their life cycle state.||.||.||
- ||PC||A7.3.1-1||Object jdoGetVersion(); A7.3.1-1 [This method returns the version of the
instance.]||.||.||
- ||PC||A7.4.6-1||boolean jdoIsDetached(); A7.4.6-1 [Instances that have been detached return
true.]||.||.||
  ||PC||A7.5-1||Persistence``Capable jdoNewInstance(State``Manager sm); A7.5-1 [This method
creates a new instance of the class of the instance.]||.||.||
  ||PC||A7.5-2||A7.5-2 [If the class is abstract, null is returned.]||.||.||
  ||PC||A7.5-3||Persistence``Capable jdoNewInstance(State``Manager sm, Object oid); A7.5-3
[This method creates a new instance of the class of the instance, and copies key field values
from the oid parameter instance.]||.||.||
@@ -44, +42 @@

  ||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);]]||.||.||
  ||PM||A12.7.1-2||A12.7.1-2 [/** Set the fetch size for large result set support. */  Fetch``Plan
setFetchSize(int fetchSize); /** Return the fetch size; 0 if not set; -1 for greedy fetching.
*/ int getFetchSize();]||.||.||
- ||PM||A12.7.1-2||A12.7.1-2 [/** Set detachment options */ Fetch``Plan setDetachmentOptions(int
options); /** Return the detachment options */ int getDetachmentOptions();]]||.||.||
+ ||PM||A12.7.1-3||A12.7.1-3 [/** Set detachment options */ Fetch``Plan setDetachmentOptions(int
options); /** Return the detachment options */ int getDetachmentOptions();]]||.||.||
+ ||PM||A12.7-3||A12.7-3 [FetchPlan getFetchPlan(); This method retrieves the FetchPlan associated
with the PersistenceManager. It always returns the identical instance for the same PersistenceManager]||.||.||
  ||PM||A12.8-2||A12.8-2 [void flush(); This method flushes all dirty, new, and deleted instances
to the datastore. It has no effect if a transaction is not active. If a datastore transaction
is active, this method synchronizes the cache with the datastore and reports any exceptions.
If an optimistic transaction is active, this method obtains a datastore connection and synchronizes
the cache with the datastore using this connection. The connection obtained by this method
is held until the end of the transaction..]||.||.||
- ||PM||A12.8-3||A12.8-3 [void checkConsistency(); This method validates the cache with the
datastore. It has no effect if a transaction is not activeIf a datastore transaction is active,
this method verifies the consistency of instances in the cache against the datastore. An implementation
might flush instances as if flush() were called, but it is not required to do so If an optimistic
transaction is active, this method obtains a datastore connection and verifies the con­sistency
of the instances in the cache against the datastore. If any inconsistencies are detected,
a JDOOptimistic``Verification``Exception is thrown. This exception contains a nested JDOOptimistic``Verification``Exception
for each object that failed the consistency check. No datastore resources acquired during
the execution of this method are held beyond the scope of this method.]||.||.||
- ||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.]..]||clr||JDO-154||
- ||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. ]||.||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.]]||.||.||
@@ -57, +53 @@

  ||PM||A12.14-4||A12.14-4 [Object current(); This method returns the current sequence value
object if it is available. It is intended to return a se­quence value object previously used.]]||.||.||
  ||PM||A12.14-5||A12.14-5 [long nextValue(); This method returns the next sequence value
as a long if it is available and able to be converted to a number].]||.||.||
  ||PM||A12.14-6||A12.14-6 [long currentValue(); This method returns the current sequence
value as a long if it is available and able to be converted to a number.]]||.||.||
- ||PM||A12.15-1||A12.15-1 [void postCreate(Instance``Lifecycle``Event event); This method
is called whenever a persistent instance is created, during makePersistent. It is called after
the instance transitions to persistent-new.]]||clr||JDO-155||
- ||PM||A12.15-2||A12.15-2 [void postLoad(Instance``Lifecycle``Event event); This method is
called whenever a persistent instance is loaded. It is called after the jdoPostLoad method
is invoked on the instance.]]|| clr ||JDO-155||
- ||PM||A12.15-3||A12.15-3 [void preStore(Instance``Lifecycle``Event event); This method is
called whenever a persistent instance is stored, for example during flush or commit. It is
called before the jdoPreStore method is invoked on the instance.]]|| clr ||JDO-155||
- ||PM||A12.15-4||A12.15-4 [void postStore(Instance``Lifecycle``Event event); This method
is called whenever a persistent instance is stored, for example during flush or commit. It
is called after the jdoPreStore method is invoked on the instance. An object identity for
a per­sistent-new instance must have been assigned to the instance when this callback is
invoked.]]|| clr ||JDO-155||
- ||PM||A12.15-5||A12.15-5 [void preClear(Instance``Lifecycle``Event event); This method is
called whenever a persistent instance is cleared, for example during afterCom­pletion. It
is called before the jdoPreClear method is invoked on the instance.]]|| clr ||JDO-155||
- ||PM||A12.15-6||A12.15-6 [void postClear(Instance``Lifecycle``Event event); This method
is called whenever a persistent instance is cleared, for example during afterCom­pletion.
It is called after the jdoPreClear method is invoked on the instance and the fields have been
cleared by the JDO implementation.]]|| clr ||JDO-155||
- ||PM||A12.15-7||A12.15-7 [void preDelete(Instance``Lifecycle``Event event); This method
is called whenever a persistent instance is deleted, during deletePersistent. It is called
before the state transition and before the jdoPreDelete method is invoked on the in­stance.]||
clr ||JDO-155||
- ||PM||A12.15-8||A12.15-8 [void postDelete(Instance``Lifecycle``Event event);This method
is called whenever a persistent instance is deleted, during deletePersistent. It is called
after the jdoPreDelete method is invoked on the instance and after the state transition].]||
clr ||JDO-155||
- ||PM||A12.15-9||A12.15-9 [void preDirty(Instance``Lifecycle``Event event); This method is
called whenever a persistent clean instance is first made dirty, during an operation that
modifies the value of a persistent or transactional field. It is called before the field value
is changed.]]|| clr ||JDO-155||
- ||PM||A12.15-10||A12.15-10 [void postDirty(Instance``Lifecycle``Event event); This method
is called whenever a persistent clean instance is first made dirty, during an operation that
modifies the value of a persistent or transactional field. It is called after the field value
was changed.]]|| clr ||JDO-155||
- ||PM||A12.15-11||A12.15-11 [void preDetach(Instance``Lifecycle``Event event); This method
is called before a persistent instance is copied for detachment.]]|| clr ||JDO-155||
- ||PM||A12.15-12||A12.15-12 [void postDetach(Instance``Lifecycle``Event event); This method
is called whenever a persistent instance is copied for detachment. The source instance is
the detached copy; the target instance is the persistent instance.]]|| clr ||JDO-155||
- ||PM||A12.15-13||A12.15-13 [void preAttach(Instance``Lifecycle``Event event); This method
is called before a detached instance is attached. The source instance is the detached instance].]||
clr ||JDO-155||
- ||PM||A12.15-14||A12.15-14 [void postAttach(Instance``Lifecycle``Event event); This method
is called after a detached instance is attached. The source instance is the corresponding
persistent instance in the cache; the target instance is the detached instance.]]|| clr ||JDO-155||
  ||PM||A12.16-1||A12.16-1 [JDOConnection getDataStoreConnection(); If this method is called
while a datastore transaction is active, the object returned will be enlisted in the current
transaction. If called in an optimistic transaction before flush has been called, or outside
an active transaction, the object returned will not be enlisted in any transaction.]]||.||JDO-191||
- ||TX||A13.4.5-1||Once a transaction has been marked for rollback via setRollbackOnly, the
commit method will always fail with JDO``Fatal``Data``Store``Exception.||clr||JDO-140||
- ||TX||A13.4.5-2||When a transaction is not active, and after a transaction is begun, getRollbackOnly
will return false. Once setRollbackOnly has been called, it will return true until commit
or rollback is called.||clr||JDO-140||
  

Mime
View raw message