Coverage Report - net.admin4j.jdbc.driver.sql.CallableStatementWrapper30Base
 
Classes in this File Line Coverage Branch Coverage Complexity
CallableStatementWrapper30Base
93%
106/113
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.io.InputStream;
 17  
 import java.io.Reader;
 18  
 import java.math.BigDecimal;
 19  
 import java.net.URL;
 20  
 import java.sql.Array;
 21  
 import java.sql.Blob;
 22  
 import java.sql.CallableStatement;
 23  
 import java.sql.Clob;
 24  
 import java.sql.Date;
 25  
 import java.sql.PreparedStatement;
 26  
 import java.sql.Ref;
 27  
 import java.sql.SQLException;
 28  
 import java.sql.Time;
 29  
 import java.sql.Timestamp;
 30  
 import java.util.Calendar;
 31  
 import java.util.Map;
 32  
 
 33  
 import net.admin4j.util.annotate.PackageRestrictions;
 34  
 
 35  
 /**
 36  
  * Wraps a JDBC V2.0 callable statement so specifics can be reported to administrators.
 37  
  * @author D. Ashmore
 38  
  * @since 1.0
 39  
  */
 40  
 @PackageRestrictions({"net.admin4j","java","javax"})
 41  
 public abstract class CallableStatementWrapper30Base extends PreparedStatementWrapper30Base
 42  
         implements CallableStatement {
 43  
 
 44  
     public CallableStatementWrapper30Base(ConnectionWrapper30Base connection,
 45  
             PreparedStatement statement) {
 46  60012
         super(connection, statement);
 47  60012
     }
 48  
     
 49  
     protected CallableStatement getUnderlyingCallableStatement() {
 50  0
         return (CallableStatement)this.getUnderlyingStatement();
 51  
     }
 52  
 
 53  
     public Array getArray(int parameterIndex) throws SQLException {
 54  3
         return this.getUnderlyingCallableStatement().getArray(parameterIndex);
 55  
     }
 56  
 
 57  
     public Array getArray(String parameterName) throws SQLException {
 58  3
         return this.getUnderlyingCallableStatement().getArray(parameterName);
 59  
     }
 60  
 
 61  
     public BigDecimal getBigDecimal(int parameterIndex) throws SQLException {
 62  3
         return this.getUnderlyingCallableStatement().getBigDecimal(parameterIndex);
 63  
     }
 64  
 
 65  
     public BigDecimal getBigDecimal(String parameterName) throws SQLException {
 66  3
         return this.getUnderlyingCallableStatement().getBigDecimal(parameterName);
 67  
     }
 68  
 
 69  
     @SuppressWarnings("deprecation")
 70  
     public BigDecimal getBigDecimal(int parameterIndex, int scale)
 71  
             throws SQLException {
 72  3
         return this.getUnderlyingCallableStatement().getBigDecimal(parameterIndex, scale);
 73  
     }
 74  
 
 75  
     public Blob getBlob(int parameterIndex) throws SQLException {
 76  3
         return this.getUnderlyingCallableStatement().getBlob(parameterIndex);
 77  
     }
 78  
 
 79  
     public Blob getBlob(String parameterName) throws SQLException {
 80  3
         return this.getUnderlyingCallableStatement().getBlob(parameterName);
 81  
     }
 82  
 
 83  
     public boolean getBoolean(int parameterIndex) throws SQLException {
 84  3
         return this.getUnderlyingCallableStatement().getBoolean(parameterIndex);
 85  
     }
 86  
 
 87  
     public boolean getBoolean(String parameterName) throws SQLException {
 88  3
         return this.getUnderlyingCallableStatement().getBoolean(parameterName);
 89  
     }
 90  
 
 91  
     public byte getByte(int parameterIndex) throws SQLException {
 92  3
         return this.getUnderlyingCallableStatement().getByte(parameterIndex);
 93  
     }
 94  
 
 95  
     public byte getByte(String parameterName) throws SQLException {
 96  3
         return this.getUnderlyingCallableStatement().getByte(parameterName);
 97  
     }
 98  
 
 99  
     public byte[] getBytes(int parameterIndex) throws SQLException {
 100  3
         return this.getUnderlyingCallableStatement().getBytes(parameterIndex);
 101  
     }
 102  
 
 103  
     public byte[] getBytes(String parameterName) throws SQLException {
 104  3
         return this.getUnderlyingCallableStatement().getBytes(parameterName);
 105  
     }
 106  
 
 107  
     public Clob getClob(int parameterIndex) throws SQLException {
 108  3
         return this.getUnderlyingCallableStatement().getClob(parameterIndex);
 109  
     }
 110  
 
 111  
     public Clob getClob(String parameterName) throws SQLException {
 112  3
         return this.getUnderlyingCallableStatement().getClob(parameterName);
 113  
     }
 114  
 
 115  
     public Date getDate(int parameterIndex) throws SQLException {
 116  3
         return this.getUnderlyingCallableStatement().getDate(parameterIndex);
 117  
     }
 118  
 
 119  
     public Date getDate(String parameterName) throws SQLException {
 120  3
         return this.getUnderlyingCallableStatement().getDate(parameterName);
 121  
     }
 122  
 
 123  
     public Date getDate(int parameterIndex, Calendar cal) throws SQLException {
 124  3
         return this.getUnderlyingCallableStatement().getDate(parameterIndex, cal);
 125  
     }
 126  
 
 127  
     public Date getDate(String parameterName, Calendar cal) throws SQLException {
 128  3
         return this.getUnderlyingCallableStatement().getDate(parameterName, cal);
 129  
     }
 130  
 
 131  
     public double getDouble(int parameterIndex) throws SQLException {
 132  3
         return this.getUnderlyingCallableStatement().getDouble(parameterIndex);
 133  
     }
 134  
 
 135  
     public double getDouble(String parameterName) throws SQLException {
 136  3
         return this.getUnderlyingCallableStatement().getDouble(parameterName);
 137  
     }
 138  
 
 139  
     public float getFloat(int parameterIndex) throws SQLException {
 140  3
         return this.getUnderlyingCallableStatement().getFloat(parameterIndex);
 141  
     }
 142  
 
 143  
     public float getFloat(String parameterName) throws SQLException {
 144  3
         return this.getUnderlyingCallableStatement().getFloat(parameterName);
 145  
     }
 146  
 
 147  
     public int getInt(int parameterIndex) throws SQLException {
 148  3
         return this.getUnderlyingCallableStatement().getInt(parameterIndex);
 149  
     }
 150  
 
 151  
     public int getInt(String parameterName) throws SQLException {
 152  3
         return this.getUnderlyingCallableStatement().getInt(parameterName);
 153  
     }
 154  
 
 155  
     public long getLong(int parameterIndex) throws SQLException {
 156  3
         return this.getUnderlyingCallableStatement().getLong(parameterIndex);
 157  
     }
 158  
 
 159  
     public long getLong(String parameterName) throws SQLException {
 160  3
         return this.getUnderlyingCallableStatement().getLong(parameterName);
 161  
     }
 162  
 
 163  
     public Object getObject(int parameterIndex) throws SQLException {
 164  3
         return this.getUnderlyingCallableStatement().getObject(parameterIndex);
 165  
     }
 166  
 
 167  
     public Object getObject(String parameterName) throws SQLException {
 168  3
         return this.getUnderlyingCallableStatement().getObject(parameterName);
 169  
     }
 170  
 
 171  
     public Object getObject(int parameterIndex, Map<String, Class<?>> map)
 172  
             throws SQLException {
 173  3
         return this.getUnderlyingCallableStatement().getObject(parameterIndex, map);
 174  
     }
 175  
 
 176  
     public Object getObject(String parameterName, Map<String, Class<?>> map)
 177  
             throws SQLException {
 178  3
         return this.getUnderlyingCallableStatement().getObject(parameterName, map);
 179  
     }
 180  
 
 181  
     public Ref getRef(int parameterIndex) throws SQLException {
 182  3
         return this.getUnderlyingCallableStatement().getRef(parameterIndex);
 183  
     }
 184  
 
 185  
     public Ref getRef(String parameterName) throws SQLException {
 186  3
         return this.getUnderlyingCallableStatement().getRef(parameterName);
 187  
     }
 188  
 
 189  
     public short getShort(int parameterIndex) throws SQLException {
 190  3
         return this.getUnderlyingCallableStatement().getShort(parameterIndex);
 191  
     }
 192  
 
 193  
     public short getShort(String parameterName) throws SQLException {
 194  3
         return this.getUnderlyingCallableStatement().getShort(parameterName);
 195  
     }
 196  
 
 197  
     public String getString(int parameterIndex) throws SQLException {
 198  3
         return this.getUnderlyingCallableStatement().getString(parameterIndex);
 199  
     }
 200  
 
 201  
     public String getString(String parameterName) throws SQLException {
 202  3
         return this.getUnderlyingCallableStatement().getString(parameterName);
 203  
     }
 204  
 
 205  
     public Time getTime(int parameterIndex) throws SQLException {
 206  3
         return this.getUnderlyingCallableStatement().getTime(parameterIndex);
 207  
     }
 208  
 
 209  
     public Time getTime(String parameterName) throws SQLException {
 210  3
         return this.getUnderlyingCallableStatement().getTime(parameterName);
 211  
     }
 212  
 
 213  
     public Time getTime(int parameterIndex, Calendar cal) throws SQLException {
 214  3
         return this.getUnderlyingCallableStatement().getTime(parameterIndex, cal);
 215  
     }
 216  
 
 217  
     public Time getTime(String parameterName, Calendar cal) throws SQLException {
 218  3
         return this.getUnderlyingCallableStatement().getTime(parameterName, cal);
 219  
     }
 220  
 
 221  
     public Timestamp getTimestamp(int parameterIndex) throws SQLException {
 222  3
         return this.getUnderlyingCallableStatement().getTimestamp(parameterIndex);
 223  
     }
 224  
 
 225  
     public Timestamp getTimestamp(String parameterName) throws SQLException {
 226  3
         return this.getUnderlyingCallableStatement().getTimestamp(parameterName);
 227  
     }
 228  
 
 229  
     public Timestamp getTimestamp(int parameterIndex, Calendar cal)
 230  
             throws SQLException {
 231  3
         return this.getUnderlyingCallableStatement().getTimestamp(parameterIndex, cal);
 232  
     }
 233  
 
 234  
     public Timestamp getTimestamp(String parameterName, Calendar cal)
 235  
             throws SQLException {
 236  3
         return this.getUnderlyingCallableStatement().getTimestamp(parameterName, cal);
 237  
     }
 238  
 
 239  
     public URL getURL(int parameterIndex) throws SQLException {
 240  3
         return this.getUnderlyingCallableStatement().getURL(parameterIndex);
 241  
     }
 242  
 
 243  
     public URL getURL(String parameterName) throws SQLException {
 244  3
         return this.getUnderlyingCallableStatement().getURL(parameterName);
 245  
     }
 246  
 
 247  
     public void registerOutParameter(int parameterIndex, int sqlType)
 248  
             throws SQLException {
 249  3
         this.getUnderlyingCallableStatement().registerOutParameter(parameterIndex, sqlType);
 250  
 
 251  3
     }
 252  
 
 253  
     public void registerOutParameter(String parameterName, int sqlType)
 254  
             throws SQLException {
 255  3
         this.getUnderlyingCallableStatement().registerOutParameter(parameterName, sqlType);
 256  
 
 257  3
     }
 258  
 
 259  
     public void registerOutParameter(int parameterIndex, int sqlType, int scale)
 260  
             throws SQLException {
 261  3
         this.getUnderlyingCallableStatement().registerOutParameter(parameterIndex, sqlType, scale);
 262  
 
 263  3
     }
 264  
 
 265  
     public void registerOutParameter(int parameterIndex, int sqlType,
 266  
             String typeName) throws SQLException {
 267  3
         this.getUnderlyingCallableStatement().registerOutParameter(parameterIndex, sqlType, typeName);
 268  
 
 269  3
     }
 270  
 
 271  
     public void registerOutParameter(String parameterName, int sqlType,
 272  
             int scale) throws SQLException {
 273  3
         this.getUnderlyingCallableStatement().registerOutParameter(parameterName, sqlType, scale);
 274  
 
 275  3
     }
 276  
 
 277  
     public void registerOutParameter(String parameterName, int sqlType,
 278  
             String typeName) throws SQLException {
 279  3
         this.getUnderlyingCallableStatement().registerOutParameter(parameterName, sqlType, typeName);
 280  
 
 281  3
     }
 282  
 
 283  
     public void setBigDecimal(String parameterName, BigDecimal x)
 284  
             throws SQLException {
 285  3
         this.getUnderlyingCallableStatement().setBigDecimal(parameterName, x);
 286  
 
 287  3
     }
 288  
 
 289  
     public void setBoolean(String parameterName, boolean x) throws SQLException {
 290  3
         this.getUnderlyingCallableStatement().setBoolean(parameterName, x);
 291  
 
 292  3
     }
 293  
 
 294  
     public void setByte(String parameterName, byte x) throws SQLException {
 295  3
         this.getUnderlyingCallableStatement().setByte(parameterName, x);
 296  
 
 297  3
     }
 298  
 
 299  
     public void setBytes(String parameterName, byte[] x) throws SQLException {
 300  3
         this.getUnderlyingCallableStatement().setBytes(parameterName, x);
 301  
 
 302  3
     }
 303  
 
 304  
     public void setDate(String parameterName, Date x) throws SQLException {
 305  3
         this.getUnderlyingCallableStatement().setDate(parameterName, x);
 306  
 
 307  3
     }
 308  
 
 309  
     public void setDate(String parameterName, Date x, Calendar cal)
 310  
             throws SQLException {
 311  3
         this.getUnderlyingCallableStatement().setDate(parameterName, x, cal);
 312  
 
 313  3
     }
 314  
 
 315  
     public void setDouble(String parameterName, double x) throws SQLException {
 316  3
         this.getUnderlyingCallableStatement().setDouble(parameterName, x);
 317  
 
 318  3
     }
 319  
 
 320  
     public void setFloat(String parameterName, float x) throws SQLException {
 321  3
         this.getUnderlyingCallableStatement().setFloat(parameterName, x);
 322  
 
 323  3
     }
 324  
 
 325  
     public void setInt(String parameterName, int x) throws SQLException {
 326  3
         this.getUnderlyingCallableStatement().setInt(parameterName, x);
 327  
 
 328  3
     }
 329  
 
 330  
     public void setLong(String parameterName, long x) throws SQLException {
 331  3
         this.getUnderlyingCallableStatement().setLong(parameterName, x);
 332  
 
 333  3
     }
 334  
 
 335  
     public void setNull(String parameterName, int sqlType) throws SQLException {
 336  3
         this.getUnderlyingCallableStatement().setNull(parameterName, sqlType);
 337  
 
 338  3
     }
 339  
 
 340  
     public void setNull(String parameterName, int sqlType, String typeName)
 341  
             throws SQLException {
 342  3
         this.getUnderlyingCallableStatement().setNull(parameterName, sqlType, typeName);
 343  
 
 344  3
     }
 345  
 
 346  
     public void setObject(String parameterName, Object x) throws SQLException {
 347  3
         this.getUnderlyingCallableStatement().setObject(parameterName, x);
 348  
 
 349  3
     }
 350  
 
 351  
     public void setObject(String parameterName, Object x, int targetSqlType)
 352  
             throws SQLException {
 353  3
         this.getUnderlyingCallableStatement().setObject(parameterName, x, targetSqlType);
 354  
 
 355  3
     }
 356  
 
 357  
     public void setObject(String parameterName, Object x, int targetSqlType,
 358  
             int scale) throws SQLException {
 359  3
         this.getUnderlyingCallableStatement().setObject(parameterName, x, targetSqlType, scale);
 360  
 
 361  3
     }
 362  
 
 363  
     public void setShort(String parameterName, short x) throws SQLException {
 364  3
         this.getUnderlyingCallableStatement().setShort(parameterName, x);
 365  
 
 366  3
     }
 367  
 
 368  
     public void setString(String parameterName, String x) throws SQLException {
 369  3
         this.getUnderlyingCallableStatement().setString(parameterName, x);
 370  
 
 371  3
     }
 372  
 
 373  
     public void setTime(String parameterName, Time x) throws SQLException {
 374  3
         this.getUnderlyingCallableStatement().setTime(parameterName, x);
 375  
 
 376  3
     }
 377  
 
 378  
     public void setTime(String parameterName, Time x, Calendar cal)
 379  
             throws SQLException {
 380  3
         this.getUnderlyingCallableStatement().setTime(parameterName, x, cal);
 381  
 
 382  3
     }
 383  
 
 384  
     public void setTimestamp(String parameterName, Timestamp x)
 385  
             throws SQLException {
 386  3
         this.getUnderlyingCallableStatement().setTimestamp(parameterName, x);
 387  
 
 388  3
     }
 389  
 
 390  
     public void setTimestamp(String parameterName, Timestamp x, Calendar cal)
 391  
             throws SQLException {
 392  3
         this.getUnderlyingCallableStatement().setTimestamp(parameterName, x, cal);
 393  
 
 394  3
     }
 395  
 
 396  
     public void setURL(String parameterName, URL val) throws SQLException {
 397  3
         this.getUnderlyingCallableStatement().setURL(parameterName, val);
 398  
 
 399  3
     }
 400  
 
 401  
     public boolean wasNull() throws SQLException {
 402  3
         return this.getUnderlyingCallableStatement().wasNull();
 403  
     }
 404  
     
 405  
     public void setCharacterStream(String parameterName, Reader reader,
 406  
         int length) throws SQLException {
 407  0
         this.getUnderlyingCallableStatement().setCharacterStream(parameterName, reader, length);
 408  
     
 409  0
     }
 410  
     
 411  
     public void setBinaryStream(String parameterName, InputStream x, int length)
 412  
         throws SQLException {
 413  0
         this.getUnderlyingCallableStatement().setBinaryStream(parameterName, x, length);
 414  
     
 415  0
     }
 416  
     
 417  
     public void setAsciiStream(String parameterName, InputStream x, int length)
 418  
         throws SQLException {
 419  0
         this.getUnderlyingCallableStatement().setAsciiStream(parameterName, x, length);
 420  
     
 421  0
     }
 422  
 
 423  
 }