commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John McNally <jmcna...@collab.net>
Subject Re: cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp DelegatingConnection.java
Date Mon, 01 Jul 2002 22:08:54 GMT
What does this accomplish?

john mcnally

On Sat, 2002-06-29 at 09:45, glenn@apache.org wrote:
> glenn       2002/06/29 09:45:08
> 
>   Modified:    dbcp/src/java/org/apache/commons/dbcp
>                         DelegatingConnection.java
>   Log:
>   Fix logic of Connection.isClosed()
>   
>   Revision  Changes    Path
>   1.6       +12 -5     jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/DelegatingConnection.java
>   
>   Index: DelegatingConnection.java
>   ===================================================================
>   RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/DelegatingConnection.java,v
>   retrieving revision 1.5
>   retrieving revision 1.6
>   diff -u -r1.5 -r1.6
>   --- DelegatingConnection.java	28 Jun 2002 15:28:20 -0000	1.5
>   +++ DelegatingConnection.java	29 Jun 2002 16:45:08 -0000	1.6
>   @@ -223,7 +223,14 @@
>        public int getTransactionIsolation() throws SQLException { checkOpen(); return
_conn.getTransactionIsolation();}
>        public Map getTypeMap() throws SQLException { checkOpen(); return _conn.getTypeMap();}
>        public SQLWarning getWarnings() throws SQLException { checkOpen(); return _conn.getWarnings();}
>   -    public boolean isClosed() throws SQLException { return _closed || _conn.isClosed();}
>   +
>   +    public boolean isClosed() throws SQLException {
>   +         if(_closed || _conn.isClosed()) {
>   +             return true;
>   +         }
>   +         return false;
>   +    }
>   +
>        public boolean isReadOnly() throws SQLException { checkOpen(); return _conn.isReadOnly();}
>        public String nativeSQL(String sql) throws SQLException { checkOpen(); return
_conn.nativeSQL(sql);}
>        public void rollback() throws SQLException { checkOpen(); _conn.rollback();}
>   
>   
>   
> 
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message