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/pooling ByPassConnection.java
Date Wed, 08 Sep 2004 22:13:00 GMT
arminw      2004/09/08 15:13:00

  Modified:    src/java/org/apache/ojb/broker/util/pooling Tag:
                        OJB_1_0_RELEASE ByPassConnection.java
  Log:
  update javadoc
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.9.2.1   +9 -2      db-ojb/src/java/org/apache/ojb/broker/util/pooling/ByPassConnection.java
  
  Index: ByPassConnection.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/pooling/ByPassConnection.java,v
  retrieving revision 1.9
  retrieving revision 1.9.2.1
  diff -u -r1.9 -r1.9.2.1
  --- ByPassConnection.java	4 Apr 2004 23:53:38 -0000	1.9
  +++ ByPassConnection.java	8 Sep 2004 22:13:00 -0000	1.9.2.1
  @@ -21,6 +21,13 @@
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
  +
  +/**
  + * Simple wrapper for connections that make some methods to no-op for
  + * use in managed environments.
  + *
  + * @author <a href="mailto:arminw@apache.org">Armin Waibel</a>
  + */
   public class ByPassConnection extends WrappedConnection
   {
       private Logger log = LoggerFactory.getLogger(ByPassConnection.class);
  @@ -65,7 +72,7 @@
       }
   
       /**
  -     * rollback the wrapped connection
  +     * no-op
        */
       public void rollback() throws SQLException
       {
  @@ -75,6 +82,6 @@
           so we ignore this call too. in beans user should use ctx.setRollbackOnly
           method
           */
  -        // super.rollback();
  +        if (log.isDebugEnabled()) log.debug("** we ignore rollback, done by server");
       }
   }
  
  
  

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