Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derby.iapi.jdbc
Class BrokeredCallableStatement  view BrokeredCallableStatement download BrokeredCallableStatement.java

java.lang.Object
  extended byorg.apache.derby.iapi.jdbc.BrokeredStatement
      extended byorg.apache.derby.iapi.jdbc.BrokeredPreparedStatement
          extended byorg.apache.derby.iapi.jdbc.BrokeredCallableStatement
All Implemented Interfaces:
java.sql.CallableStatement, java.sql.PreparedStatement, java.sql.Statement
Direct Known Subclasses:
BrokeredCallableStatement30

public class BrokeredCallableStatement
extends BrokeredPreparedStatement
implements java.sql.CallableStatement

JDBC 2 brokered CallableStatement


Field Summary
 
Fields inherited from class org.apache.derby.iapi.jdbc.BrokeredPreparedStatement
sql
 
Fields inherited from class org.apache.derby.iapi.jdbc.BrokeredStatement
control, jdbcLevel, resultSetConcurrency, resultSetHoldability, resultSetType
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Constructor Summary
BrokeredCallableStatement(BrokeredStatementControl control, int jdbcLevel, java.lang.String sql)
           
 
Method Summary
 java.sql.CallableStatement createDuplicateStatement(java.sql.Connection conn, java.sql.CallableStatement oldStatement)
          Create a duplicate CalableStatement to this, including state, from the passed in Connection.
 java.sql.Array getArray(int i)
          This method returns the value of the specified parameter as a Java Array.
 java.math.BigDecimal getBigDecimal(int parameterIndex)
          This method returns the value of the specified parameter as a Java BigDecimal.
 java.math.BigDecimal getBigDecimal(int parameterIndex, int scale)
          This method returns the value of the specified parameter as a Java BigDecimal.
 java.sql.Blob getBlob(int i)
          This method returns the value of the specified parameter as a Java Blob.
 boolean getBoolean(int parameterIndex)
          This method returns the value of the specified parameter as a Java boolean.
 byte getByte(int parameterIndex)
          This method returns the value of the specified parameter as a Java byte.
 byte[] getBytes(int parameterIndex)
          This method returns the value of the specified parameter as a Java byte array.
protected  java.sql.CallableStatement getCallableStatement()
           
 java.sql.Clob getClob(int i)
          This method returns the value of the specified parameter as a Java Clob.
 java.sql.Date getDate(int parameterIndex)
          This method returns the value of the specified parameter as a Java java.sql.Date.
 java.sql.Date getDate(int parameterIndex, java.util.Calendar cal)
          This method returns the value of the specified parameter as a Java java.sql.Date.
 double getDouble(int parameterIndex)
          This method returns the value of the specified parameter as a Java double.
 float getFloat(int parameterIndex)
          This method returns the value of the specified parameter as a Java float.
 int getInt(int parameterIndex)
          This method returns the value of the specified parameter as a Java int.
 long getLong(int parameterIndex)
          This method returns the value of the specified parameter as a Java long.
 java.lang.Object getObject(int parameterIndex)
          This method returns the value of the specified parameter as a Java Object.
 java.lang.Object getObject(int i, java.util.Map map)
          This method returns the value of the specified parameter as a Java Object.
 java.sql.PreparedStatement getPreparedStatement()
           
 java.sql.Ref getRef(int i)
          This method returns the value of the specified parameter as a Java Ref.
 short getShort(int parameterIndex)
          This method returns the value of the specified parameter as a Java short.
 java.lang.String getString(int parameterIndex)
          This method returns the value of the specified parameter as a Java String.
 java.sql.Time getTime(int parameterIndex)
          This method returns the value of the specified parameter as a Java java.sql.Time.
 java.sql.Time getTime(int parameterIndex, java.util.Calendar cal)
          This method returns the value of the specified parameter as a Java java.sql.Time.
 java.sql.Timestamp getTimestamp(int parameterIndex)
          This method returns the value of the specified parameter as a Java java.sql.Timestamp.
 java.sql.Timestamp getTimestamp(int parameterIndex, java.util.Calendar cal)
          This method returns the value of the specified parameter as a Java java.sql.Timestamp.
 void registerOutParameter(int parameterIndex, int sqlType)
          This method registers the specified parameter as an output parameter of the specified SQL type.
 void registerOutParameter(int parameterIndex, int sqlType, int scale)
          This method registers the specified parameter as an output parameter of the specified SQL type and scale.
 void registerOutParameter(int paramIndex, int sqlType, java.lang.String typeName)
          This method registers the specified parameter as an output parameter of the specified SQL type.
 boolean wasNull()
          This method tests whether the value of the last parameter that was fetched was actually a SQL NULL value.
 
Methods inherited from class org.apache.derby.iapi.jdbc.BrokeredPreparedStatement
addBatch, clearParameters, createDuplicateStatement, execute, executeQuery, executeUpdate, getMetaData, getStatement, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream
 
Methods inherited from class org.apache.derby.iapi.jdbc.BrokeredStatement
addBatch, cancel, clearBatch, clearWarnings, close, controlCheck, createDuplicateStatement, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout, setStatementState, wrapResultSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.CallableStatement
getArray, getBigDecimal, getBlob, getBoolean, getByte, getBytes, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getObject, getRef, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, getURL, getURL, registerOutParameter, registerOutParameter, registerOutParameter, setAsciiStream, setBigDecimal, setBinaryStream, setBoolean, setByte, setBytes, setCharacterStream, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setURL
 
Methods inherited from interface java.sql.PreparedStatement
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
 
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
 

Constructor Detail

BrokeredCallableStatement

public BrokeredCallableStatement(BrokeredStatementControl control,
                                 int jdbcLevel,
                                 java.lang.String sql)
                          throws java.sql.SQLException
Method Detail

registerOutParameter

public final void registerOutParameter(int parameterIndex,
                                       int sqlType)
                                throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method registers the specified parameter as an output parameter of the specified SQL type.

Specified by:
registerOutParameter in interface java.sql.CallableStatement

registerOutParameter

public final void registerOutParameter(int parameterIndex,
                                       int sqlType,
                                       int scale)
                                throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method registers the specified parameter as an output parameter of the specified SQL type and scale.

Specified by:
registerOutParameter in interface java.sql.CallableStatement

wasNull

public final boolean wasNull()
                      throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method tests whether the value of the last parameter that was fetched was actually a SQL NULL value.

Specified by:
wasNull in interface java.sql.CallableStatement

getString

public final java.lang.String getString(int parameterIndex)
                                 throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java String.

Specified by:
getString in interface java.sql.CallableStatement

getBoolean

public final boolean getBoolean(int parameterIndex)
                         throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java boolean.

Specified by:
getBoolean in interface java.sql.CallableStatement

getByte

public final byte getByte(int parameterIndex)
                   throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java byte.

Specified by:
getByte in interface java.sql.CallableStatement

getShort

public final short getShort(int parameterIndex)
                     throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java short.

Specified by:
getShort in interface java.sql.CallableStatement

getInt

public final int getInt(int parameterIndex)
                 throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java int.

Specified by:
getInt in interface java.sql.CallableStatement

getLong

public final long getLong(int parameterIndex)
                   throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java long.

Specified by:
getLong in interface java.sql.CallableStatement

getFloat

public final float getFloat(int parameterIndex)
                     throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java float.

Specified by:
getFloat in interface java.sql.CallableStatement

getDouble

public final double getDouble(int parameterIndex)
                       throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java double.

Specified by:
getDouble in interface java.sql.CallableStatement

getBigDecimal

public final java.math.BigDecimal getBigDecimal(int parameterIndex,
                                                int scale)
                                         throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java BigDecimal.

Specified by:
getBigDecimal in interface java.sql.CallableStatement

getBytes

public final byte[] getBytes(int parameterIndex)
                      throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java byte array.

Specified by:
getBytes in interface java.sql.CallableStatement

getDate

public final java.sql.Date getDate(int parameterIndex)
                            throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java java.sql.Date.

Specified by:
getDate in interface java.sql.CallableStatement

getDate

public final java.sql.Date getDate(int parameterIndex,
                                   java.util.Calendar cal)
                            throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java java.sql.Date.

Specified by:
getDate in interface java.sql.CallableStatement

getTime

public final java.sql.Time getTime(int parameterIndex)
                            throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java java.sql.Time.

Specified by:
getTime in interface java.sql.CallableStatement

getTimestamp

public final java.sql.Timestamp getTimestamp(int parameterIndex)
                                      throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java java.sql.Timestamp.

Specified by:
getTimestamp in interface java.sql.CallableStatement

getObject

public final java.lang.Object getObject(int parameterIndex)
                                 throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java Object.

Specified by:
getObject in interface java.sql.CallableStatement

getBigDecimal

public final java.math.BigDecimal getBigDecimal(int parameterIndex)
                                         throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java BigDecimal.

Specified by:
getBigDecimal in interface java.sql.CallableStatement

getObject

public final java.lang.Object getObject(int i,
                                        java.util.Map map)
                                 throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java Object.

Specified by:
getObject in interface java.sql.CallableStatement

getRef

public final java.sql.Ref getRef(int i)
                          throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java Ref.

Specified by:
getRef in interface java.sql.CallableStatement

getBlob

public final java.sql.Blob getBlob(int i)
                            throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java Blob.

Specified by:
getBlob in interface java.sql.CallableStatement

getClob

public final java.sql.Clob getClob(int i)
                            throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java Clob.

Specified by:
getClob in interface java.sql.CallableStatement

getArray

public final java.sql.Array getArray(int i)
                              throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java Array.

Specified by:
getArray in interface java.sql.CallableStatement

getTime

public final java.sql.Time getTime(int parameterIndex,
                                   java.util.Calendar cal)
                            throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java java.sql.Time.

Specified by:
getTime in interface java.sql.CallableStatement

getTimestamp

public final java.sql.Timestamp getTimestamp(int parameterIndex,
                                             java.util.Calendar cal)
                                      throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method returns the value of the specified parameter as a Java java.sql.Timestamp.

Specified by:
getTimestamp in interface java.sql.CallableStatement

registerOutParameter

public final void registerOutParameter(int paramIndex,
                                       int sqlType,
                                       java.lang.String typeName)
                                throws java.sql.SQLException
Description copied from interface: java.sql.CallableStatement
This method registers the specified parameter as an output parameter of the specified SQL type.

Specified by:
registerOutParameter in interface java.sql.CallableStatement

getCallableStatement

protected final java.sql.CallableStatement getCallableStatement()
                                                         throws java.sql.SQLException

getPreparedStatement

public final java.sql.PreparedStatement getPreparedStatement()
                                                      throws java.sql.SQLException
Overrides:
getPreparedStatement in class BrokeredPreparedStatement

createDuplicateStatement

public java.sql.CallableStatement createDuplicateStatement(java.sql.Connection conn,
                                                           java.sql.CallableStatement oldStatement)
                                                    throws java.sql.SQLException
Create a duplicate CalableStatement to this, including state, from the passed in Connection.