BrokeredCallableStatement.java
| Index Score | ||
|---|---|---|
![]() |
![]() |
org.apache.derby.iapi.jdbc |
![]() |
![]() |
Apache Derby |
View: Reasons, Metrics, Source Code
These are the metrics that contribute to the Enerjy Score for this file, ranked by impact. So the metrics listed at the top influence the score to a greater extent that the metrics listed at the bottom.
/*
Derby - Class org.apache.derby.iapi.jdbc.BrokeredCallableStatement
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package org.apache.derby.iapi.jdbc;
import java.sql.*;
import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Map;
/**
JDBC 2 brokered CallableStatement
*/
public abstract class BrokeredCallableStatement extends BrokeredPreparedStatement
implements CallableStatement
{
public BrokeredCallableStatement(BrokeredStatementControl control, String sql) throws SQLException {
super(control,sql);
}
public final void registerOutParameter(int parameterIndex,
int sqlType)
throws SQLException
{
getCallableStatement().registerOutParameter( parameterIndex, sqlType);
}
public final void registerOutParameter(int parameterIndex,
int sqlType,
int scale)
throws SQLException
{
getCallableStatement().registerOutParameter( parameterIndex, sqlType, scale);
}
public final boolean wasNull()
throws SQLException
{
return getCallableStatement().wasNull();
}
public final String getString(int parameterIndex)
throws SQLException
{
return getCallableStatement().getString( parameterIndex);
}
public final boolean getBoolean(int parameterIndex)
throws SQLException
{
return getCallableStatement().getBoolean( parameterIndex);
}
public final byte getByte(int parameterIndex)
throws SQLException
{
return getCallableStatement().getByte( parameterIndex);
}
public final short getShort(int parameterIndex)
throws SQLException
{
return getCallableStatement().getShort( parameterIndex);
}
public final int getInt(int parameterIndex)
throws SQLException
{
return getCallableStatement().getInt( parameterIndex);
}
public final long getLong(int parameterIndex)
throws SQLException
{
return getCallableStatement().getLong( parameterIndex);
}
public final float getFloat(int parameterIndex)
throws SQLException
{
return getCallableStatement().getFloat( parameterIndex);
}
public final double getDouble(int parameterIndex)
throws SQLException
{
return getCallableStatement().getDouble( parameterIndex);
}
/** @deprecated */
public final BigDecimal getBigDecimal(int parameterIndex,
int scale)
throws SQLException
{
return getCallableStatement().getBigDecimal( parameterIndex, scale);
}
public final byte[] getBytes(int parameterIndex)
throws SQLException
{
return getCallableStatement().getBytes( parameterIndex);
}
public final Date getDate(int parameterIndex)
throws SQLException
{
return getCallableStatement().getDate( parameterIndex);
}
public final Date getDate(int parameterIndex,
Calendar cal)
throws SQLException
{
return getCallableStatement().getDate( parameterIndex, cal);
}
public final Time getTime(int parameterIndex)
throws SQLException
{
return getCallableStatement().getTime( parameterIndex);
}
public final Timestamp getTimestamp(int parameterIndex)
throws SQLException
{
return getCallableStatement().getTimestamp( parameterIndex);
}
public final Object getObject(int parameterIndex)
throws SQLException
{
return getCallableStatement().getObject( parameterIndex);
}
public final BigDecimal getBigDecimal(int parameterIndex)
throws SQLException
{
return getCallableStatement().getBigDecimal( parameterIndex);
}
public final Object getObject(int i,
Map map)
throws SQLException
{
return getCallableStatement().getObject( i, map);
}
public final Ref getRef(int i)
throws SQLException
{
return getCallableStatement().getRef( i);
}
public final Blob getBlob(int i)
throws SQLException
{
return getCallableStatement().getBlob( i);
}
public final Clob getClob(int i)
throws SQLException
{
return getCallableStatement().getClob( i);
}
public final Array getArray(int i)
throws SQLException
{
return getCallableStatement().getArray( i);
}
public final Time getTime(int parameterIndex,
Calendar cal)
throws SQLException
{
return getCallableStatement().getTime( parameterIndex, cal);
}
public final Timestamp getTimestamp(int parameterIndex,
Calendar cal)
throws SQLException
{
return getCallableStatement().getTimestamp( parameterIndex, cal);
}
public final void registerOutParameter(int paramIndex,
int sqlType,
String typeName)
throws SQLException
{
getCallableStatement().registerOutParameter( paramIndex, sqlType, typeName);
}
/*
** Control methods
*/
/**
* Access the underlying CallableStatement. This method
* is package protected to restrict access to the underlying
* object to the brokered objects. Allowing the application to
* access the underlying object thtough a public method would
*
*/
final CallableStatement getCallableStatement() throws SQLException {
return control.getRealCallableStatement();
}
/**
* Access the underlying PreparedStatement. This method
* is package protected to restrict access to the underlying
* object to the brokered objects. Allowing the application to
* access the underlying object thtough a public method would
*
*/
final PreparedStatement getPreparedStatement() throws SQLException {
return getCallableStatement();
}
/**
Create a duplicate CalableStatement to this, including state, from the passed in Connection.
*/
public CallableStatement createDuplicateStatement(Connection conn, CallableStatement oldStatement) throws SQLException {
CallableStatement newStatement = conn.prepareCall(sql, resultSetType, resultSetConcurrency);
setStatementState(oldStatement, newStatement);
return newStatement;
}
}
The table below shows all metrics for BrokeredCallableStatement.java.




