Coverage Report - net.admin4j.jdbc.driver.Admin4jJdbcDriverJdk7
 
Classes in this File Line Coverage Branch Coverage Complexity
Admin4jJdbcDriverJdk7
57%
4/7
N/A
2
 
 1  
 /*
 2  
  * This software is licensed under the Apache License, Version 2.0
 3  
  * (the "License") agreement; you may not use this file except in compliance with
 4  
  * the License.  You may obtain a copy of the License at
 5  
  * 
 6  
  *      http://www.apache.org/licenses/LICENSE-2.0
 7  
  * 
 8  
  * Unless required by applicable law or agreed to in writing, software
 9  
  * distributed under the License is distributed on an "AS IS" BASIS,
 10  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 11  
  * See the License for the specific language governing permissions and
 12  
  * limitations under the License.
 13  
  */
 14  
 package net.admin4j.jdbc.driver;
 15  
 
 16  
 import java.sql.DriverManager;
 17  
 import java.sql.SQLException;
 18  
 import java.sql.SQLFeatureNotSupportedException;
 19  
 import java.util.logging.Logger;
 20  
 
 21  
 import net.admin4j.util.annotate.PackageRestrictions;
 22  
 import net.admin4j.util.annotate.Product;
 23  
 import net.admin4j.util.annotate.ProductDependencies;
 24  
 
 25  
 /**
 26  
  * Jdk 7 proxy for JDBC driver that allows view into JDBC connection content.
 27  
  * For install instructions, see Admin4jJdbcDriverJdk5Base.
 28  
  * @author D. Ashmore
 29  
  * @since 1.0.1
 30  
  * @see Admin4jJdbcDriverJdk5Base
 31  
  */
 32  
 @ProductDependencies( {Product.JDBC41} )
 33  
 @PackageRestrictions({"net.admin4j","java","javax"})
 34  16
 public class Admin4jJdbcDriverJdk7 extends Admin4jJdbcDriverJdk5Base {
 35  
     
 36  
     static {
 37  
         try {
 38  
             // Register this with the DriverManager
 39  4
             DriverManager.registerDriver(new Admin4jJdbcDriverJdk7());
 40  0
         } catch (SQLException e) {
 41  0
             e.printStackTrace();
 42  4
         }
 43  4
     }
 44  
 
 45  
     public Logger getParentLogger() throws SQLFeatureNotSupportedException {
 46  0
         throw new SQLFeatureNotSupportedException("This feature isn't yet supported.");
 47  
     }
 48  
 
 49  
 }