db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer RowReaderDefaultImpl.java
Date Tue, 25 Oct 2005 23:50:27 GMT
arminw      2005/10/25 16:50:27

  Modified:    src/java/org/apache/ojb/broker/accesslayer
                        RowReaderDefaultImpl.java
  Log:
  allow field conversion for discriminator column
  
  Revision  Changes    Path
  1.44      +4 -3      db-ojb/src/java/org/apache/ojb/broker/accesslayer/RowReaderDefaultImpl.java
  
  Index: RowReaderDefaultImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/RowReaderDefaultImpl.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- RowReaderDefaultImpl.java	10 Oct 2005 18:22:00 -0000	1.43
  +++ RowReaderDefaultImpl.java	25 Oct 2005 23:50:27 -0000	1.44
  @@ -356,8 +356,9 @@
           }
           try
           {
  -            String result = (String) discriminatorFD.getJdbcType().getObjectFromColumn(rs,
  -                    discriminatorFD.getColumnName());
  +            Object tmp = discriminatorFD.getJdbcType().getObjectFromColumn(rs, discriminatorFD.getColumnName());
  +            // allow field-conversion for discriminator column too
  +            String result = (String) discriminatorFD.getFieldConversion().sqlToJava(tmp);
               result = result != null ? result.trim() : null;
               if (result == null || result.length() == 0)
               {
  
  
  

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


Mime
View raw message