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 "ChangeLog" by MichelleCaisse
Date Sat, 18 Feb 2012 19:04:22 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jdo Wiki" for change notification.

The "ChangeLog" page has been changed by MichelleCaisse:
http://wiki.apache.org/jdo/ChangeLog?action=diff&rev1=66&rev2=67

Comment:
Fixed code formatting, moved 12-17 to Accepted

  
   1. Remove the "serialized" attribute from 18.15.8 since the ordering column is not serialized.
  
-  1. Add property {{{CopyOnAttach}}} to {{{PersistenceManager}}} and {{{PersistenceManagerFactory}}}.
With the property set to true, makes a copy of the detached instance on {{{makePersistent}}}.
If the property is set to false, it attaches the detached instance itself.
- 
-  1. Add {{{ObjectState}}} enum and convenience methods in {{{JDOHelper}}} to return the
{{{ObjectState}}} of an instance.
- 
-  1. Add method {{{void evictAll (boolean subclasses, Class pcClass)}}} to {{{PersistenceManager}}}.
This allows to evict instances for a particular class. Change signatures of {{{DataStoreCache}}}
methods pinAll, unpinAll, and evictAll from {{{(Class pcClass, boolean subclasses)}}} to {{{(boolean
subclasses, Class pcClass)}}} to accommodate adding methods that change the pcClass parameter
from Class to Class....
- 
-  1. Clarify the behavior of method {{{evictAll}}} if the parameter is a persistent interface.
This comment also applies to the {{{DataStoreCache}}} interface method {{{void evictAll (Class
pcClass, boolean subclasses)}}}. 
- 
-  1. Require that the implementation not hold a strong reference to flushed dirty instances,
allowing these instances to be garbage collected.
- 
-  1. Change signatures of {{{PersistenceManager}}} methods that take {{{Object[]}}} as an
argument to take {{{Object...}}} as an argument. These signatures are source and binary compatible
with existing programs. Where the {{{Object...}}} parameter would not be the last parameter,
deprecate the method and reorder the parameters so {{{Object...}}} is last.
  
   1. In 5.4.1, Compound Identity should be updated to reflect that for key fields of reference
types, the type of the key field is the reference type in the class but the oid of the reference
type in the oid class.
  
@@ -108, +97 @@

  
    {{{public JDOHelper();}}}
  
-   For some usage patterns, an instance of {{{JDOHelper}}} on which to invoke methods is
preferable to the use of static methods. For this purpose, a public constructor is provided.
+  For some usage patterns, an instance of {{{JDOHelper}}} on which to invoke methods is preferable
to the use of static methods. For this purpose, a public constructor is provided.
  
   1. In Chapter 8, add a convenience method that returns a {{{PersistenceManager}}} proxy
that can be used in web and ejb containers to dynamically bind to the transaction-associated
{{{PersistenceManager}}}.
  
@@ -176, +165 @@

   1. Change 21.13 from "Some methods require a non-null state manager. In these cases, if
the {{{jdoStateManager}}} is null, then {{{IllegalStateException}}} is thrown." to "Some methods
require a non-null state manager. In these cases, if the {{{jdoStateManager}}} is null, then
{{{JDOFatalInternalException}}} is thrown."
  
   1. Change 21.21.7 Generated jdoGetManagedFieldCount sample implementation to avoid using
the jdoFieldNames field that might be initialized after it is used during initialization of
a subclass. 
+  {{{
-   {{{protected static int jdoGetManagedFieldCount () { 
+ protected static int jdoGetManagedFieldCount () {
- return jdoFieldNames.length;
+    return jdoFieldNames.length;
  }
+  }}}
+  to 
+  {{{
- }}} to {{{protected static int jdoGetManagedFieldCount () { 
+ protected static int jdoGetManagedFieldCount () {
- return <enhancer-generated constant>;
+    return <enhancer-generated constant>;
- }
+ } 
- }}}
+  }}}
- 
   1. Add to Chapter 23, constants defined in the {{{JDOPermission}}} class:
+  {{{
-   {{{public static final javax.jdo.spi.JDOPermission CLOSE_PERSISTENCE_MANAGER_FACTORY =
"closePersistenceManagerFactory";
+ public static final javax.jdo.spi.JDOPermission CLOSE_PERSISTENCE_MANAGER_FACTORY = "closePersistenceManagerFactory";
  public static final javax.jdo.spi.JDOPermission GET_METADATA = "getMetadata";
  public static final javax.jdo.spi.JDOPermission MANAGE_METADATA = "manageMetadata";
- public static final javax.jdo.spi.JDOPermission SET_STATE_MANAGER = "setStateManager";}}}
+ public static final javax.jdo.spi.JDOPermission SET_STATE_MANAGER = "setStateManager";
+  }}}
+  1. Add property {{{CopyOnAttach}}} to {{{PersistenceManager}}} and {{{PersistenceManagerFactory}}}.
With the property set to true, makes a copy of the detached instance on {{{makePersistent}}}.
If the property is set to false, it attaches the detached instance itself.
+ 
+  1. Add {{{ObjectState}}} enum and convenience methods in {{{JDOHelper}}} to return the
{{{ObjectState}}} of an instance.
+ 
+  1. Add method {{{void evictAll (boolean subclasses, Class pcClass)}}} to {{{PersistenceManager}}}.
This allows to evict instances for a particular class. Change signatures of {{{DataStoreCache}}}
methods pinAll, unpinAll, and evictAll from {{{(Class pcClass, boolean subclasses)}}} to {{{(boolean
subclasses, Class pcClass)}}} to accommodate adding methods that change the pcClass parameter
from Class to Class....
+ 
+  1. Clarify the behavior of method {{{evictAll}}} if the parameter is a persistent interface.
This comment also applies to the {{{DataStoreCache}}} interface method {{{void evictAll (Class
pcClass, boolean subclasses)}}}. 
+ 
+  1. Require that the implementation not hold a strong reference to flushed dirty instances,
allowing these instances to be garbage collected.
+ 
+  1. Change signatures of {{{PersistenceManager}}} methods that take {{{Object[]}}} as an
argument to take {{{Object...}}} as an argument. These signatures are source and binary compatible
with existing programs. Where the {{{Object...}}} parameter would not be the last parameter,
deprecate the method and reorder the parameters so {{{Object...}}} is last.
  
  === JDK 1.5 changes ===
  These are changes proposed for JDO 2 to better support JDK 1.5.

Mime
View raw message