Coverage report

  %line %branch
net.sf.infrared.aspects.jdbc.p6spy.InfraREDP6DatabaseMetaData
0% 
0% 

 1  
 /* 
 2  
  * Copyright 2005 Tavant Technologies and Contributors
 3  
  * 
 4  
  * Licensed under the Apache License, Version 2.0 (the "License")
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  *     http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  * 
 16  
  *
 17  
  *
 18  
  * Original Author:  prashant.nair (Tavant Technologies)
 19  
  * Contributor(s):   -;
 20  
  * 
 21  
  */
 22  
 package net.sf.infrared.aspects.jdbc.p6spy;
 23  
 
 24  
 import java.sql.Connection;
 25  
 import java.sql.DatabaseMetaData;
 26  
 import java.sql.SQLException;
 27  
 
 28  
 import com.p6spy.engine.spy.P6Connection;
 29  
 import com.p6spy.engine.spy.P6DatabaseMetaData;
 30  
 import com.p6spy.engine.spy.P6Factory;
 31  
 
 32  
 /**
 33  
  * 
 34  
  * @author prashant.nair
 35  
  */
 36  
 public class InfraREDP6DatabaseMetaData extends P6DatabaseMetaData {
 37  0
     private Connection underlyingConnection = null;
 38  
 
 39  
     public InfraREDP6DatabaseMetaData(P6Factory factory, DatabaseMetaData dbMetaData,
 40  
             P6Connection connection) {
 41  0
         super(factory, dbMetaData, connection);
 42  0
         underlyingConnection = connection.getJDBC();
 43  0
     }
 44  
 
 45  
     /**
 46  
      * Return the underlying JDBC connection. A hook to get hold of the
 47  
      * underlying connection if required.
 48  
      */
 49  
     public Connection getConnection() throws SQLException {
 50  0
         return underlyingConnection;
 51  
     }
 52  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.