db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Russell <Craig.Russ...@Sun.COM>
Subject Re: Another api20 change
Date Sun, 26 Jun 2005 21:17:02 GMT
Hi Michael,

Looks good to check in.

Craig

On Jun 26, 2005, at 1:55 PM, Michael Bouschen wrote:

> Hi,
>
> attached you find some changes of the api20 project. It adds method  
> isDetached to the StateManager interface and add since tags to two  
> PM methods.
>
> Regards Michael
>
> -- 
> Michael Bouschen        Tech@Spree Engineering GmbH
> mailto:mbo.tech@spree.de    http://www.tech.spree.de/
> Tel.:++49/30/235 520-33        Buelowstr. 66
> Fax.:++49/30/2175 2012        D-10783 Berlin
>
> Index: src/java/javax/jdo/spi/StateManager.java
> ===================================================================
> --- src/java/javax/jdo/spi/StateManager.java    (revision 201765)
> +++ src/java/javax/jdo/spi/StateManager.java    (working copy)
> @@ -119,6 +119,17 @@
>       * in the current transaction.
>       */
>      boolean isDeleted(PersistenceCapable pc);
> +
> +    /** Tests whether this object has been detached.
> +     *
> +     * Instances that have been detached return <code>true</code>.
> +     *
> +     *<P>Transient instances return <code>false</code>.
> +     *<P>
> +     * @see PersistenceManager#detachCopy(Object pc)
> +     * @param pc the calling <code>PersistenceCapable</code> instance
> +     * @return <code>true</code> if this instance was detached.
> +     boolean isDetached(PersistenceCapable pc);
>
>      /** Return the <code>PersistenceManager</code> that owns this  
> instance.
>       * @param pc the calling <code>PersistenceCapable</code> instance
> Index: src/java/javax/jdo/PersistenceManager.java
> ===================================================================
> --- src/java/javax/jdo/PersistenceManager.java    (revision 201765)
> +++ src/java/javax/jdo/PersistenceManager.java    (working copy)
> @@ -224,6 +224,7 @@
>       * @param cls the <code>Class</code> of candidate instances
>       * @param queryName the name of the query to look up in metadata
>       * @return the new <code>Query</code>
> +     * @since 2.0
>       */
>      Query newNamedQuery (Class cls, String queryName);
>
> @@ -323,6 +324,7 @@
>       * equivalent to <code>getObjectById(oid, true);
>       * @param oid The object id of the object to load
>       * @return the corresponding persistent instance
> +     * @since 2.0
>       */
>      Object getObjectById (Object oid);
>
> @@ -691,7 +693,8 @@
>       * <code>PersistenceManager</code>, the default is the cache  
> should be ignored for queries.
>       * @return the ignoreCache setting.
>       */
> -   boolean getIgnoreCache();
> +    boolean getIgnoreCache();
> +
>      /**
>       * Detach the specified object from the  
> <code>PersistenceManager</code>.
>       * @param pc the instance to detach
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message