db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quint...@apache.org
Subject cvs commit: jakarta-turbine-torque/src/templates/om Peer.vm
Date Sat, 25 Jan 2003 17:39:56 GMT
quintonm    2003/01/25 09:39:56

  Modified:    src/templates/om Peer.vm
  Log:
  Removed logic to convert strings to boolean type.  The
  Villiage API will now be used for this.
  
  Revision  Changes    Path
  1.52      +1 -20     jakarta-turbine-torque/src/templates/om/Peer.vm
  
  Index: Peer.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-torque/src/templates/om/Peer.vm,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- Peer.vm	25 Jan 2003 16:46:18 -0000	1.51
  +++ Peer.vm	25 Jan 2003 17:39:56 -0000	1.52
  @@ -371,28 +371,9 @@
           try
           {
           #set ( $n=0 )
  -        #set ( $boolean = "boolean" )
           #foreach ($col in $table.Columns)
  -            #if ($col.isBooleanChar())
  -            $boolean b = "Y".equals(row.getValue(offset + $n).$col.VillageMethod);
  -            #set ( $boolean = "" )
  -                #if ($col.isUsePrimitive())
  -            obj.set${col.JavaName}(b);
  -                #else
  -            obj.set${col.JavaName}(b ? Boolean.TRUE : Boolean.FALSE);
  -                #end
  -            #elseif ($col.isBooleanInt())
  -            $boolean b = (row.getValue(offset + $n).$col.VillageMethod != 0);
  -                #set ( $boolean = "" )
  -                #if ($col.isUsePrimitive())
  -            obj.set${col.JavaName}(b);
  -                #else
  -            obj.set${col.JavaName}(b ? Boolean.TRUE : Boolean.FALSE);
  -                #end
  -            #else
               obj.set${col.JavaName}(row.getValue(offset + $n).$col.VillageMethod);
  -            #end
  -                #set ( $n = $n + 1 )
  +            #set ( $n = $n + 1 )
           #end
           }
           catch (DataSetException e)
  
  
  

Mime
View raw message