Coverage Report - net.admin4j.jdbc.driver.sql.CallableStatementWrapper41Base
 
Classes in this File Line Coverage Branch Coverage Complexity
CallableStatementWrapper41Base
100%
7/7
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.CallableStatement;
 17  
 import java.sql.SQLException;
 18  
 
 19  
 /**
 20  
  * Wraps a JDBC V4.1 callable statement so specifics can be reported to administrators.
 21  
  * @author D. Ashmore
 22  
  * @since 1.0
 23  
  */
 24  
 public abstract class CallableStatementWrapper41Base extends
 25  
                 CallableStatementWrapper40Base {
 26  
 
 27  
         public CallableStatementWrapper41Base(ConnectionWrapper30Base connection,
 28  
                         CallableStatement statement) {
 29  40008
                 super(connection, statement);
 30  40008
         }
 31  
         
 32  
         public <T> T getObject(int parameterIndex, Class<T> type)
 33  
                     throws SQLException {
 34  2
         return this.getUnderlyingCallableStatement().getObject(parameterIndex, type);
 35  
     }
 36  
 
 37  
     public <T> T getObject(String parameterName, Class<T> type)
 38  
             throws SQLException {
 39  2
         return this.getUnderlyingCallableStatement().getObject(parameterName, type);
 40  
     }
 41  
 
 42  
     public void closeOnCompletion() throws SQLException {
 43  2
         this.getUnderlyingCallableStatement().closeOnCompletion();
 44  
 
 45  2
     }
 46  
 
 47  
     public boolean isCloseOnCompletion() throws SQLException {
 48  2
         return this.getUnderlyingCallableStatement().isCloseOnCompletion();
 49  
     }
 50  
 
 51  
 }