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/util WrappedConnection.java
Date Mon, 05 Jul 2004 11:45:21 GMT
arminw      2004/07/05 04:45:21

  Modified:    src/java/org/apache/ojb/broker/util WrappedConnection.java
  Log:
  override toString
  
  Revision  Changes    Path
  1.5       +10 -0     db-ojb/src/java/org/apache/ojb/broker/util/WrappedConnection.java
  
  Index: WrappedConnection.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/WrappedConnection.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- WrappedConnection.java	4 Apr 2004 23:53:37 -0000	1.4
  +++ WrappedConnection.java	5 Jul 2004 11:45:21 -0000	1.5
  @@ -24,6 +24,9 @@
   import java.sql.Statement;
   import java.util.Map;
   
  +import org.apache.commons.lang.builder.ToStringBuilder;
  +import org.apache.commons.lang.builder.ToStringStyle;
  +
   /**
    * Wrapper class for connections.
    * Simplified version of {@link org.apache.commons.dbcp.DelegatingConnection}
  @@ -112,6 +115,13 @@
           {
               ((WrappedConnection) _conn).passivateConnection();
           }
  +    }
  +
  +    public String toString()
  +    {
  +        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
  +                .append("wrapped connection", (_conn != null ? _conn.toString() : null))
  +                .toString();
       }
   
       /**
  
  
  

---------------------------------------------------------------------
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