You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/11/06 00:51:25 UTC

cvs commit: jakarta-avalon-excalibur/datasource/src/java/org/apache/avalon/excalibur/datasource AbstractJdbcConnection.java

donaldp     2002/11/05 15:51:25

  Modified:    datasource/src/java/org/apache/avalon/excalibur/datasource
                        AbstractJdbcConnection.java
  Log:
  Fixed compile errors.
  
  Submitted By: Jenny Brown <je...@bigbrother.net>, Jeremias Maerki <de...@greenmail.ch>
  
  Revision  Changes    Path
  1.18      +4 -11     jakarta-avalon-excalibur/datasource/src/java/org/apache/avalon/excalibur/datasource/AbstractJdbcConnection.java
  
  Index: AbstractJdbcConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/datasource/src/java/org/apache/avalon/excalibur/datasource/AbstractJdbcConnection.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- AbstractJdbcConnection.java	5 Nov 2002 04:34:02 -0000	1.17
  +++ AbstractJdbcConnection.java	5 Nov 2002 23:51:25 -0000	1.18
  @@ -7,12 +7,13 @@
    */
   package org.apache.avalon.excalibur.datasource;
   
  -import java.sql.CallableStatement;
   import java.sql.Connection;
   import java.sql.PreparedStatement;
   import java.sql.ResultSet;
   import java.sql.SQLException;
   import java.sql.Statement;
  +import java.util.Iterator;
  +import java.util.Map;
   import org.apache.avalon.excalibur.pool.Pool;
   import org.apache.avalon.excalibur.pool.Recyclable;
   import org.apache.avalon.framework.activity.Disposable;
  @@ -45,14 +46,6 @@
       protected Map m_statements;
   
       /**
  -     * Private default constructor so that it cannot be instantiated any
  -     * other way than we desire.
  -     */
  -    private AbstractJdbcConnection()
  -    {
  -    }
  -
  -    /**
        * @deprecated Use the version with keepAlive specified
        */
       public AbstractJdbcConnection( final Connection connection, final boolean oradb )
  @@ -123,7 +116,7 @@
           {
               m_connection.clearWarnings();
   
  -            Iterator it = m_statements.getKeySet().iterator();
  +            Iterator it = m_statements.keySet().iterator();
               while (it.hasNext())
               {
                   Object key = it.next();
  
  
  

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


Re: cvs commit: jakarta-avalon-excalibur/datasource/src/java/org/apache/avalon/excalibur/datasource AbstractJdbcConnection.java

Posted by Peter Donald <pe...@apache.org>.
On Wed, 6 Nov 2002 18:53, Jeremias Maerki wrote:
> Hi Peter
>
> Why did you remove the import of CallableStatement? The file in CVS
> still doesn't compile.

Sorry about that. I had optimize imports on and IDEA removed it ;) Anyways I 
think it should work now.

-- 
Cheers,

Peter Donald
---------------------------------------------------
Murphy's law - "Anything that can go wrong, will." 
(Actually, this is Finagle's law, which in itself 
shows that Finagle was right.)
---------------------------------------------------


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


Re: cvs commit: jakarta-avalon-excalibur/datasource/src/java/org/apache/avalon/excalibur/datasource AbstractJdbcConnection.java

Posted by Jeremias Maerki <de...@greenmail.ch>.
Hi Peter

Why did you remove the import of CallableStatement? The file in CVS
still doesn't compile.

Ant output:
    [javac] D:\apache.org\jakarta-avalon-excalibur\datasource\build\src\org\apache\avalon\excalibur\datasource\AbstractJdbcConnection.java:226: cannot resolve symbol
    [javac] symbol  : class CallableStatement
    [javac] location: class org.apache.avalon.excalibur.datasource.AbstractJdbcConnection
    [javac]     public abstract CallableStatement prepareCall( String sql,

On 5 Nov 2002 23:51:25 -0000 donaldp wrote:
> donaldp     2002/11/05 15:51:25
> 
>   Modified:    datasource/src/java/org/apache/avalon/excalibur/datasource
>                         AbstractJdbcConnection.java
>   Log:
>   Fixed compile errors.

<snip/>

>   --- AbstractJdbcConnection.java	5 Nov 2002 04:34:02 -0000	1.17
>   +++ AbstractJdbcConnection.java	5 Nov 2002 23:51:25 -0000	1.18
>   @@ -7,12 +7,13 @@
>     */
>    package org.apache.avalon.excalibur.datasource;
>    
>   -import java.sql.CallableStatement;
>    import java.sql.Connection;
>    import java.sql.PreparedStatement;
>    import java.sql.ResultSet;
>    import java.sql.SQLException;
>    import java.sql.Statement;
>   +import java.util.Iterator;
>   +import java.util.Map;
>    import org.apache.avalon.excalibur.pool.Pool;
>    import org.apache.avalon.excalibur.pool.Recyclable;
>    import org.apache.avalon.framework.activity.Disposable;
>   @@ -45,14 +46,6 @@
>        protected Map m_statements;
>    
>        /**
>   -     * Private default constructor so that it cannot be instantiated any
>   -     * other way than we desire.
>   -     */
>   -    private AbstractJdbcConnection()
>   -    {
>   -    }
>   -
>   -    /**
>         * @deprecated Use the version with keepAlive specified
>         */
>        public AbstractJdbcConnection( final Connection connection, final boolean oradb )
>   @@ -123,7 +116,7 @@
>            {
>                m_connection.clearWarnings();
>    
>   -            Iterator it = m_statements.getKeySet().iterator();
>   +            Iterator it = m_statements.keySet().iterator();
>                while (it.hasNext())
>                {
>                    Object key = it.next();
>   


Jeremias Maerki


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