Coverage Report - net.admin4j.jdbc.driver.sql.StatementWrapper41Base
 
Classes in this File Line Coverage Branch Coverage Complexity
StatementWrapper41Base
100%
5/5
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.SQLException;
 17  
 import java.sql.Statement;
 18  
 
 19  
 import net.admin4j.util.annotate.PackageRestrictions;
 20  
 import net.admin4j.util.annotate.Product;
 21  
 import net.admin4j.util.annotate.ProductDependencies;
 22  
 
 23  
 /**
 24  
  * Wraps a JDBC V3.0 statement so specifics can be reported to administrators.
 25  
  * @author D. Ashmore
 26  
  * @since 1.0
 27  
  */
 28  
 @ProductDependencies( {Product.JDBC41} )
 29  
 @PackageRestrictions({"net.admin4j","java","javax"})
 30  
 public abstract class StatementWrapper41Base extends StatementWrapper40Base {
 31  
 
 32  
         public StatementWrapper41Base(ConnectionWrapper30Base connection,
 33  
                         Statement statement) {
 34  16
                 super(connection, statement);
 35  16
         }
 36  
         
 37  
          public void closeOnCompletion() throws SQLException {
 38  2
                 this.getUnderlyingStatement().closeOnCompletion();
 39  
 
 40  2
     }
 41  
 
 42  
     public boolean isCloseOnCompletion() throws SQLException {
 43  2
         return this.getUnderlyingStatement().isCloseOnCompletion();
 44  
     }
 45  
 
 46  
 }