cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject cvs commit: xml-cocoon2/src/blocks/databases/java/org/apache/cocoon/util JDBCTypeConversions.java
Date Mon, 28 Oct 2002 15:02:08 GMT
tcurdt      2002/10/28 07:02:08

  Modified:    src/blocks/databases/java/org/apache/cocoon/util
                        JDBCTypeConversions.java
  Log:
  fixed jdk 1.2 complience, removed some unused imports, javadoc fixes
  
  Revision  Changes    Path
  1.3       +1 -9      xml-cocoon2/src/blocks/databases/java/org/apache/cocoon/util/JDBCTypeConversions.java
  
  Index: JDBCTypeConversions.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/blocks/databases/java/org/apache/cocoon/util/JDBCTypeConversions.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JDBCTypeConversions.java	28 Oct 2002 13:52:01 -0000	1.2
  +++ JDBCTypeConversions.java	28 Oct 2002 15:02:08 -0000	1.3
  @@ -52,7 +52,6 @@
   
   import java.io.*;
   import java.sql.PreparedStatement;
  -import java.sql.Statement;
   import java.sql.ResultSet;
   import java.sql.SQLException;
   import java.sql.Timestamp;
  @@ -67,10 +66,7 @@
   import java.util.Calendar;
   import java.util.HashMap;
   import java.util.Collections;
  -import java.text.DateFormat;
  -import java.text.SimpleDateFormat;
   import org.apache.avalon.framework.configuration.Configuration;
  -import org.apache.avalon.framework.configuration.ConfigurationException;
   import org.apache.excalibur.source.Source;
   
   
  @@ -232,11 +228,7 @@
        *
        * @param statement the prepared statement
        * @param position the position of the column
  -     * @param request the request
  -     * @param entry the configuration object
  -     * @param param the name of the request parameter
        * @param value the value of the column
  -     * @param rowIndex the index of the current row for manyrows inserts
        */
       public static void setColumn(PreparedStatement statement, int position, Object value,
Integer typeObject) throws Exception {
           if (value instanceof String) {
  @@ -325,7 +317,7 @@
                   } else if (value instanceof java.util.Date) {
                       d = new Date(((java.util.Date) value).getTime());
                   } else if (value instanceof Calendar) {
  -                    d = new Date(((Calendar) value).getTimeInMillis());
  +                    d = new Date(((Calendar) value).getTime().getTime());
                   }
   
                   statement.setDate(position, d);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message