db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: svn commit: r750198 - in /db/torque: runtime/trunk/src/java/org/apache/torque/util/BasePeer.java site/trunk/xdocs/changes.xml
Date Thu, 05 Mar 2009 07:58:16 GMT
Would you mind to commit that also to the Torque 4 trunk ?

http://svn.apache.org/viewvc/db/torque/torque4/trunk/ 

   Thanks a lot,

     Thomas

> URL: http://svn.apache.org/viewvc?rev=750198&view=rev
> Log:
> Changed the exception type thrown by doSelect calls when 
> Criteria.isSingleRecord() true and more than one record is found. A 
> TooManyRecordsException (ToqueException subclass) is now returned 
> instead of a TorqueException.
> 
> Modified:
> db/torque/runtime/trunk/src/java/org/apache/torque/util/BasePeer.java
>     db/torque/site/trunk/xdocs/changes.xml
> 
> Modified: db/torque/runtime/trunk/src/java/org/apache/torque/util/
> BasePeer.java
> URL: http://svn.apache.org/viewvc/db/torque/runtime/trunk/src/java/
> 
org/apache/torque/util/BasePeer.java?rev=750198&r1=750197&r2=750198&view=diff
> 
==============================================================================
> --- db/torque/runtime/trunk/src/java/org/apache/torque/util/
> BasePeer.java (original)
> +++ db/torque/runtime/trunk/src/java/org/apache/torque/util/
> BasePeer.java Wed Mar  4 22:34:43 2009
> @@ -36,6 +36,7 @@
>  import org.apache.commons.logging.Log;
>  import org.apache.commons.logging.LogFactory;
>  import org.apache.torque.Database;
> +import org.apache.torque.TooManyRowsException;
>  import org.apache.torque.Torque;
>  import org.apache.torque.TorqueException;
>  import org.apache.torque.adapter.DB;
> @@ -1365,12 +1366,12 @@
>       * needed.
>       *
>       * @param ds The DataSet which contains multiple records.
> -     * @exception TorqueException Couldn't handle multiple records.
> +     * @exception TooManyRowsException Couldn't handle multiple 
records.
>       */
>      protected static void handleMultipleRecords(DataSet ds)
> -        throws TorqueException
> +        throws TooManyRowsException
>      {
> -        throw new TorqueException("Criteria expected single Record and 
"
> +        throw new TooManyRowsException("Criteria expected single Record 
and "
>                  + "Multiple Records were selected");
>      }
> 
> 
> Modified: db/torque/site/trunk/xdocs/changes.xml
> URL: http://svn.apache.org/viewvc/db/torque/site/trunk/xdocs/
> changes.xml?rev=750198&r1=750197&r2=750198&view=diff
> 
==============================================================================
> --- db/torque/site/trunk/xdocs/changes.xml (original)
> +++ db/torque/site/trunk/xdocs/changes.xml Wed Mar  4 22:34:43 2009
> @@ -31,6 +31,19 @@
> 
>    <body>
>    <release version="3.4-dev" date="in SVN">
> +    <action type="update" dev="gmonroe">
> +      Changed the exception type thrown by doSelect calls when
> +      Criteria.isSingleRecord() true and more than one record is found.
> +      A TooManyRecordsException (ToqueException subclass) is now 
returned
> +      instead of a TorqueException.
> +    </action>
> +    <action type="add" dev="gmonroe">
> +      Added support for DB Adaptor specific SQL functions.
> +    </action>
> +    <action type="add" dev="gmonroe">
> +      Add a SummaryHelper class which supports aggregate queries.  E.g. 

> +      Select Sum(x) from table.
> +    </action>
>    </release>
>    <release version="3.3" date="2008-02-29">
>    </release>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message