Coverage Report - net.admin4j.jdbc.driver.sql.StatementWrapper40Base
 
Classes in this File Line Coverage Branch Coverage Complexity
StatementWrapper40Base
100%
8/8
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.JDBC40} )
 29  
 @PackageRestrictions({"net.admin4j","java","javax"})
 30  
 public abstract class StatementWrapper40Base extends StatementWrapper30Base {
 31  
 
 32  
     public StatementWrapper40Base(ConnectionWrapper30Base connection,
 33  
             Statement statement) {
 34  24
         super(connection, statement);
 35  24
     }
 36  
     
 37  
     public boolean isClosed() throws SQLException {
 38  3
         return this.getUnderlyingStatement().isClosed();
 39  
     }
 40  
 
 41  
     public boolean isPoolable() throws SQLException {
 42  3
         return this.getUnderlyingStatement().isPoolable();
 43  
     }
 44  
     
 45  
     public boolean isWrapperFor(Class<?> iface) throws SQLException {
 46  3
         return this.getUnderlyingStatement().isWrapperFor(iface);
 47  
     }
 48  
 
 49  
     public <T> T unwrap(Class<T> iface) throws SQLException {
 50  3
         return this.getUnderlyingStatement().unwrap(iface);
 51  
     }
 52  
     
 53  
     public void setPoolable(boolean poolable) throws SQLException {
 54  3
        this.getUnderlyingStatement().setPoolable(poolable);
 55  
 
 56  3
     }
 57  
 
 58  
 }