Coverage Report - net.admin4j.jdbc.driver.sql.ConnectionWrapper41Base
 
Classes in this File Line Coverage Branch Coverage Complexity
ConnectionWrapper41Base
100%
10/10
N/A
1
 
 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.sql;
 15  
 
 16  
 import java.sql.Connection;
 17  
 import java.sql.SQLException;
 18  
 import java.util.concurrent.Executor;
 19  
 
 20  
 /**
 21  
  * Wraps a JDBC V4.1 connection so specifics can be reported to administrators.
 22  
  * @author D. Ashmore
 23  
  * @since 1.0.3
 24  
  */
 25  
 public abstract class ConnectionWrapper41Base extends ConnectionWrapper40Base {
 26  
 
 27  
         public ConnectionWrapper41Base(Connection conn) {
 28  12
                 super(conn);
 29  12
         }
 30  
         
 31  
         public void setSchema(String schema) throws SQLException {
 32  2
         this.getConnection().setSchema(schema);
 33  
 
 34  2
     }
 35  
 
 36  
     public String getSchema() throws SQLException {
 37  2
         return this.getConnection().getSchema();
 38  
     }
 39  
 
 40  
     public void abort(Executor executor) throws SQLException {
 41  2
         this.getConnection().abort(executor);
 42  
 
 43  2
     }
 44  
 
 45  
     public void setNetworkTimeout(Executor executor, int milliseconds)
 46  
             throws SQLException {
 47  2
         this.getConnection().setNetworkTimeout(executor, milliseconds);
 48  
 
 49  2
     }
 50  
 
 51  
     public int getNetworkTimeout() throws SQLException {
 52  2
         return this.getConnection().getNetworkTimeout();
 53  
     }
 54  
 
 55  
 }