org.apache.derby.iapi.jdbc
Class BrokeredCallableStatement

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

public abstract 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, 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, java.lang.String sql)
           
 
Method Summary
 void close()
          In many cases, it is desirable to immediately release a Statements's database and JDBC resources instead of waiting for this to happen when it is automatically closed; the close method provides this immediate release.
 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)
           
 java.math.BigDecimal getBigDecimal(int parameterIndex)
           
 java.math.BigDecimal getBigDecimal(int parameterIndex, int scale)
          Deprecated.  
 java.sql.Blob getBlob(int i)
           
 boolean getBoolean(int parameterIndex)
           
 byte getByte(int parameterIndex)
           
 byte[] getBytes(int parameterIndex)
           
(package private)  java.sql.CallableStatement getCallableStatement()
          Access the underlying CallableStatement.
 java.sql.Clob getClob(int i)
           
 java.sql.Date getDate(int parameterIndex)
           
 java.sql.Date getDate(int parameterIndex, java.util.Calendar cal)
           
 double getDouble(int parameterIndex)
           
 float getFloat(int parameterIndex)
           
 int getInt(int parameterIndex)
           
 long getLong(int parameterIndex)
           
 java.lang.Object getObject(int parameterIndex)
           
 java.lang.Object getObject(int i, java.util.Map map)
           
(package private)  java.sql.PreparedStatement getPreparedStatement()
          Access the underlying PreparedStatement.
 java.sql.Ref getRef(int i)
           
 short getShort(int parameterIndex)
           
 java.lang.String getString(int parameterIndex)
           
 java.sql.Time getTime(int parameterIndex)
           
 java.sql.Time getTime(int parameterIndex, java.util.Calendar cal)
           
 java.sql.Timestamp getTimestamp(int parameterIndex)
           
 java.sql.Timestamp getTimestamp(int parameterIndex, java.util.Calendar cal)
           
 void registerOutParameter(int parameterIndex, int sqlType)
           
 void registerOutParameter(int parameterIndex, int sqlType, int scale)
           
 void registerOutParameter(int paramIndex, int sqlType, java.lang.String typeName)
           
 boolean wasNull()
           
 
Methods inherited from class org.apache.derby.iapi.jdbc.BrokeredPreparedStatement
addBatch, clearParameters, createDuplicateStatement, execute, executeQuery, executeUpdate, getMetaData, getStatement, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, 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, checkIfClosed, clearBatch, clearWarnings, 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, isClosed, isWrapperFor, 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, getCharacterStream, getCharacterStream, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getRef, getRowId, getRowId, getShort, getSQLXML, getSQLXML, getString, getTime, getTime, getTimestamp, getTimestamp, getURL, getURL, registerOutParameter, registerOutParameter, registerOutParameter, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setURL
 
Methods inherited from interface java.sql.PreparedStatement
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
 
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, 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, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

BrokeredCallableStatement

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

registerOutParameter

public final void registerOutParameter(int parameterIndex,
                                       int sqlType)
                                throws java.sql.SQLException
Specified by:
registerOutParameter in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

registerOutParameter

public final void registerOutParameter(int parameterIndex,
                                       int sqlType,
                                       int scale)
                                throws java.sql.SQLException
Specified by:
registerOutParameter in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

wasNull

public final boolean wasNull()
                      throws java.sql.SQLException
Specified by:
wasNull in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

close

public final void close()
                 throws java.sql.SQLException
Description copied from class: BrokeredStatement
In many cases, it is desirable to immediately release a Statements's database and JDBC resources instead of waiting for this to happen when it is automatically closed; the close method provides this immediate release.

Note: A Statement is automatically closed when it is garbage collected. When a Statement is closed its current ResultSet, if one exists, is also closed.

Specified by:
close in interface java.sql.Statement
Overrides:
close in class BrokeredPreparedStatement
Throws:
java.sql.SQLException - thrown on failure.

getString

public final java.lang.String getString(int parameterIndex)
                                 throws java.sql.SQLException
Specified by:
getString in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getBoolean

public final boolean getBoolean(int parameterIndex)
                         throws java.sql.SQLException
Specified by:
getBoolean in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getByte

public final byte getByte(int parameterIndex)
                   throws java.sql.SQLException
Specified by:
getByte in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getShort

public final short getShort(int parameterIndex)
                     throws java.sql.SQLException
Specified by:
getShort in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getInt

public final int getInt(int parameterIndex)
                 throws java.sql.SQLException
Specified by:
getInt in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getLong

public final long getLong(int parameterIndex)
                   throws java.sql.SQLException
Specified by:
getLong in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getFloat

public final float getFloat(int parameterIndex)
                     throws java.sql.SQLException
Specified by:
getFloat in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getDouble

public final double getDouble(int parameterIndex)
                       throws java.sql.SQLException
Specified by:
getDouble in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getBigDecimal

public final java.math.BigDecimal getBigDecimal(int parameterIndex,
                                                int scale)
                                         throws java.sql.SQLException
Deprecated. 

Specified by:
getBigDecimal in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getBytes

public final byte[] getBytes(int parameterIndex)
                      throws java.sql.SQLException
Specified by:
getBytes in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getDate

public final java.sql.Date getDate(int parameterIndex)
                            throws java.sql.SQLException
Specified by:
getDate in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getDate

public final java.sql.Date getDate(int parameterIndex,
                                   java.util.Calendar cal)
                            throws java.sql.SQLException
Specified by:
getDate in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getTime

public final java.sql.Time getTime(int parameterIndex)
                            throws java.sql.SQLException
Specified by:
getTime in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getTimestamp

public final java.sql.Timestamp getTimestamp(int parameterIndex)
                                      throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getObject

public final java.lang.Object getObject(int parameterIndex)
                                 throws java.sql.SQLException
Specified by:
getObject in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getBigDecimal

public final java.math.BigDecimal getBigDecimal(int parameterIndex)
                                         throws java.sql.SQLException
Specified by:
getBigDecimal in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getObject

public final java.lang.Object getObject(int i,
                                        java.util.Map map)
                                 throws java.sql.SQLException
Specified by:
getObject in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getRef

public final java.sql.Ref getRef(int i)
                          throws java.sql.SQLException
Specified by:
getRef in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getBlob

public final java.sql.Blob getBlob(int i)
                            throws java.sql.SQLException
Specified by:
getBlob in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getClob

public final java.sql.Clob getClob(int i)
                            throws java.sql.SQLException
Specified by:
getClob in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getArray

public final java.sql.Array getArray(int i)
                              throws java.sql.SQLException
Specified by:
getArray in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getTime

public final java.sql.Time getTime(int parameterIndex,
                                   java.util.Calendar cal)
                            throws java.sql.SQLException
Specified by:
getTime in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getTimestamp

public final java.sql.Timestamp getTimestamp(int parameterIndex,
                                             java.util.Calendar cal)
                                      throws java.sql.SQLException
Specified by:
getTimestamp in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

registerOutParameter

public final void registerOutParameter(int paramIndex,
                                       int sqlType,
                                       java.lang.String typeName)
                                throws java.sql.SQLException
Specified by:
registerOutParameter in interface java.sql.CallableStatement
Throws:
java.sql.SQLException

getCallableStatement

final java.sql.CallableStatement getCallableStatement()
                                               throws java.sql.SQLException
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

Throws:
java.sql.SQLException

getPreparedStatement

final java.sql.PreparedStatement getPreparedStatement()
                                               throws java.sql.SQLException
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

Overrides:
getPreparedStatement in class BrokeredPreparedStatement
Throws:
java.sql.SQLException

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.

Throws:
java.sql.SQLException

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.