db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henn...@apache.org
Subject cvs commit: db-torque/xdocs release-changes.xml
Date Fri, 10 Sep 2004 09:36:39 GMT
henning     2004/09/10 02:36:39

  Modified:    src/generator/src/templates/om Tag: TORQUE_3_1_BRANCH
                        Peer.vm
               xdocs    Tag: TORQUE_3_1_BRANCH release-changes.xml
  Log:
  We have
  
  retrieveByPK(ObjectKey)
  retrieveByPK(ObjectKey, Connection)
  retrieveByPK(nativeType)
  
  in the Peers, but where is
  
  retrieveByPK(nativeType, Connection) ?
  
  There it is.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.5.2.9   +16 -0     db-torque/src/generator/src/templates/om/Peer.vm
  
  Index: Peer.vm
  ===================================================================
  RCS file: /home/cvs/db-torque/src/generator/src/templates/om/Peer.vm,v
  retrieving revision 1.5.2.8
  retrieving revision 1.5.2.9
  diff -u -r1.5.2.8 -r1.5.2.9
  --- Peer.vm	7 Sep 2004 09:45:16 -0000	1.5.2.8
  +++ Peer.vm	10 Sep 2004 09:36:39 -0000	1.5.2.9
  @@ -926,6 +926,22 @@
       {
           return ${retrieveMethod}(SimpleKey.keyFor(pk));
       }
  +
  +    /**
  +     * Retrieve a single object by pk
  +     *
  +     * @param pk the primary key
  +     * @param con the connection to use
  +     * @throws TorqueException Any exceptions caught during processing will be
  +     *         rethrown wrapped into a TorqueException.
  +     * @throws NoRowsException Primary key was not found in database.
  +     * @throws TooManyRowsException Primary key was not found in database.
  +     */
  +    public static $table.JavaName ${retrieveMethod}($pk.JavaNative pk, Connection con)
  +        throws TorqueException, NoRowsException, TooManyRowsException
  +    {
  +        return ${retrieveMethod}(SimpleKey.keyFor(pk), con);
  +    }
     #end
   
       /**
  
  
  
  No                   revision
  No                   revision
  1.3.2.26  +4 -0      db-torque/xdocs/release-changes.xml
  
  Index: release-changes.xml
  ===================================================================
  RCS file: /home/cvs/db-torque/xdocs/release-changes.xml,v
  retrieving revision 1.3.2.25
  retrieving revision 1.3.2.26
  diff -u -r1.3.2.25 -r1.3.2.26
  --- release-changes.xml	6 Sep 2004 11:20:12 -0000	1.3.2.25
  +++ release-changes.xml	10 Sep 2004 09:36:39 -0000	1.3.2.26
  @@ -26,6 +26,10 @@
           directory. The properties reference was updated accordingly (a few 
           missing properties were also documented).
       </li>
  +    <li>
  +        Add missing method <code>retrieveByPK(native type, Connection)</code>
  +        method to the generated peer classes
  +    </li>
     </ul>
   </p>
   </subsection>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message