You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2002/02/21 17:58:19 UTC

cvs commit: jakarta-turbine-torque/src/java/org/apache/torque/adapter DB.java

dlr         02/02/21 08:58:19

  Modified:    src/java/org/apache/torque/adapter DB.java
  Log:
  Deprecated objectDataNeedsTrans().  Rhys Dixon <rh...@dyxn.net> tells
  me that handling of object data no longer needs to be wrapped in a
  transaction when the Postgres bytea type is used instead of the oid
  hack for the JDBC type VARBINARY.  Postgres was the only RDBMS using
  the objectDataNeedsTrans() method.
  
  Revision  Changes    Path
  1.18      +4 -1      jakarta-turbine-torque/src/java/org/apache/torque/adapter/DB.java
  
  Index: DB.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/adapter/DB.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -u -r1.17 -r1.18
  --- DB.java	24 Nov 2001 17:44:36 -0000	1.17
  +++ DB.java	21 Feb 2002 16:58:19 -0000	1.18
  @@ -90,7 +90,7 @@
    * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
    * @author <a href="mailto:bmclaugh@algx.net">Brett McLaughlin</a>
    * @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
  - * @version $Id: DB.java,v 1.17 2001/11/24 17:44:36 mpoeschl Exp $
  + * @version $Id: DB.java,v 1.18 2002/02/21 16:58:19 dlr Exp $
    */
   public abstract class DB implements Serializable, IDMethod
   {
  @@ -320,6 +320,9 @@
        * return true.
        *
        * @return True if writing large objects to the DB requires a transaction.
  +     * @deprecated The hack involving an oid mapping for VARBINARY
  +     * which necessitated use of this method for Postgres has been
  +     * obviated by use of the Postgres bytea data type.
        */
       public boolean objectDataNeedsTrans()
       {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>