⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 brokeredcallablestatement.java

📁 derby database source code.good for you.
💻 JAVA
字号:
/*   Derby - Class org.apache.derby.iapi.jdbc.BrokeredCallableStatement   Copyright 2003, 2004 The Apache Software Foundation or its licensors, as applicable.   Licensed 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 class BrokeredCallableStatement extends BrokeredPreparedStatement          implements CallableStatement{	public BrokeredCallableStatement(BrokeredStatementControl control, int jdbcLevel, String sql) throws SQLException {		super(control, jdbcLevel, 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);    }    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;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -