org.apache.derby.iapi.jdbc
Class BrokeredCallableStatement40

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
              extended by org.apache.derby.iapi.jdbc.BrokeredCallableStatement30
                  extended by org.apache.derby.iapi.jdbc.BrokeredCallableStatement40
All Implemented Interfaces:
java.sql.CallableStatement, java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper, EnginePreparedStatement, EngineStatement

public class BrokeredCallableStatement40
extends BrokeredCallableStatement30


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
BrokeredCallableStatement40(BrokeredStatementControl control, java.lang.String sql)
           
 
Method Summary
 java.io.Reader getCharacterStream(int parameterIndex)
           
 java.io.Reader getCharacterStream(java.lang.String parameterName)
           
 java.io.Reader getNCharacterStream(int parameterIndex)
           
 java.io.Reader getNCharacterStream(java.lang.String parameterName)
           
 java.sql.NClob getNClob(int i)
           
 java.sql.NClob getNClob(java.lang.String parameterName)
           
 java.lang.String getNString(int parameterIndex)
           
 java.lang.String getNString(java.lang.String parameterName)
           
 java.sql.RowId getRowId(int parameterIndex)
           
 java.sql.RowId getRowId(java.lang.String parameterName)
           
 java.sql.SQLXML getSQLXML(int parameterIndex)
           
 java.sql.SQLXML getSQLXML(java.lang.String parametername)
           
 boolean isClosed()
          Checks if the statement is closed.
 boolean isPoolable()
          Forwards to the real CallableStatement.
 void setAsciiStream(int parameterIndex, java.io.InputStream x)
          Sets the designated parameter to the given input stream.
 void setAsciiStream(int parameterIndex, java.io.InputStream x, long length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setAsciiStream(java.lang.String parameterName, java.io.InputStream x)
           
 void setAsciiStream(java.lang.String parameterName, java.io.InputStream x, long length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setBinaryStream(int parameterIndex, java.io.InputStream x)
          Sets the designated parameter to the given input stream.
 void setBinaryStream(int parameterIndex, java.io.InputStream x, long length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setBinaryStream(java.lang.String parameterName, java.io.InputStream x)
           
 void setBinaryStream(java.lang.String parameterName, java.io.InputStream x, long length)
          Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setBlob(int parameterIndex, java.io.InputStream inputStream)
          Sets the designated parameter to a InputStream object.
 void setBlob(int parameterIndex, java.io.InputStream inputStream, long length)
           
 void setBlob(java.lang.String parameterName, java.sql.Blob x)
           
 void setBlob(java.lang.String parameterName, java.io.InputStream inputStream)
           
 void setBlob(java.lang.String parameterName, java.io.InputStream inputStream, long length)
           
 void setCharacterStream(int parameterIndex, java.io.Reader reader)
          Sets the designated parameter to the given Reader object.
 void setCharacterStream(int parameterIndex, java.io.Reader x, long length)
          Sets the designated parameter to the given Reader, which will have the specified number of bytes.
 void setCharacterStream(java.lang.String parameterName, java.io.Reader x)
           
 void setCharacterStream(java.lang.String parameterName, java.io.Reader x, long length)
          Sets the designated parameter to the given Reader, which will have the specified number of bytes.
 void setClob(int parameterIndex, java.io.Reader reader)
          Sets the designated parameter to a Reader object.
 void setClob(int parameterIndex, java.io.Reader reader, long length)
           
 void setClob(java.lang.String parameterName, java.sql.Clob x)
           
 void setClob(java.lang.String parameterName, java.io.Reader reader)
           
 void setClob(java.lang.String parameterName, java.io.Reader reader, long length)
           
 void setNCharacterStream(int parameterIndex, java.io.Reader value)
           
 void setNCharacterStream(int index, java.io.Reader value, long length)
           
 void setNCharacterStream(java.lang.String parameterName, java.io.Reader value)
           
 void setNCharacterStream(java.lang.String parameterName, java.io.Reader value, long length)
           
 void setNClob(int index, java.sql.NClob value)
           
 void setNClob(int parameterIndex, java.io.Reader reader)
           
 void setNClob(int parameterIndex, java.io.Reader reader, long length)
           
 void setNClob(java.lang.String parameterName, java.sql.NClob value)
           
 void setNClob(java.lang.String parameterName, java.io.Reader reader)
           
 void setNClob(java.lang.String parameterName, java.io.Reader reader, long length)
           
 void setNString(int index, java.lang.String value)
           
 void setNString(java.lang.String parameterName, java.lang.String value)
           
 void setPoolable(boolean poolable)
          Forwards to the real CallableStatement.
 void setRowId(int parameterIndex, java.sql.RowId x)
           
 void setRowId(java.lang.String parameterName, java.sql.RowId x)
           
 void setSQLXML(int parameterIndex, java.sql.SQLXML xmlObject)
           
 void setSQLXML(java.lang.String parameterName, java.sql.SQLXML xmlObject)
           
<T> T
unwrap(java.lang.Class<T> interfaces)
          Returns this if this class implements the interface
 
Methods inherited from class org.apache.derby.iapi.jdbc.BrokeredCallableStatement30
createDuplicateStatement, getArray, getBigDecimal, getBlob, getBoolean, getByte, getBytes, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getObject, getParameterMetaData, 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, setURL
 
Methods inherited from class org.apache.derby.iapi.jdbc.BrokeredCallableStatement
close, getArray, getBigDecimal, getBigDecimal, getBlob, getBoolean, getByte, getBytes, getCallableStatement, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getObject, getPreparedStatement, getRef, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, registerOutParameter, registerOutParameter, registerOutParameter, wasNull
 
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, 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, 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.PreparedStatement
addBatch, clearParameters, execute, executeQuery, executeUpdate, getMetaData, 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 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, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor
 

Constructor Detail

BrokeredCallableStatement40

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

getCharacterStream

public java.io.Reader getCharacterStream(int parameterIndex)
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getCharacterStream

public java.io.Reader getCharacterStream(java.lang.String parameterName)
                                  throws java.sql.SQLException
Throws:
java.sql.SQLException

getNCharacterStream

public java.io.Reader getNCharacterStream(int parameterIndex)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getNCharacterStream

public java.io.Reader getNCharacterStream(java.lang.String parameterName)
                                   throws java.sql.SQLException
Throws:
java.sql.SQLException

getNString

public java.lang.String getNString(int parameterIndex)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

getNString

public java.lang.String getNString(java.lang.String parameterName)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

getRowId

public java.sql.RowId getRowId(int parameterIndex)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getRowId

public java.sql.RowId getRowId(java.lang.String parameterName)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

setRowId

public void setRowId(java.lang.String parameterName,
                     java.sql.RowId x)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

setBlob

public void setBlob(java.lang.String parameterName,
                    java.sql.Blob x)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

setClob

public void setClob(java.lang.String parameterName,
                    java.sql.Clob x)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

setNString

public void setNString(java.lang.String parameterName,
                       java.lang.String value)
                throws java.sql.SQLException
Throws:
java.sql.SQLException

setNCharacterStream

public final void setNCharacterStream(java.lang.String parameterName,
                                      java.io.Reader value)
                               throws java.sql.SQLException
Throws:
java.sql.SQLException

setNCharacterStream

public void setNCharacterStream(java.lang.String parameterName,
                                java.io.Reader value,
                                long length)
                         throws java.sql.SQLException
Throws:
java.sql.SQLException

setNClob

public void setNClob(java.lang.String parameterName,
                     java.sql.NClob value)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

setClob

public final void setClob(java.lang.String parameterName,
                          java.io.Reader reader)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

setClob

public void setClob(java.lang.String parameterName,
                    java.io.Reader reader,
                    long length)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

setBlob

public final void setBlob(java.lang.String parameterName,
                          java.io.InputStream inputStream)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

setBlob

public void setBlob(java.lang.String parameterName,
                    java.io.InputStream inputStream,
                    long length)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

setNClob

public final void setNClob(java.lang.String parameterName,
                           java.io.Reader reader)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

setNClob

public void setNClob(java.lang.String parameterName,
                     java.io.Reader reader,
                     long length)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

getNClob

public java.sql.NClob getNClob(int i)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

getNClob

public java.sql.NClob getNClob(java.lang.String parameterName)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

setSQLXML

public void setSQLXML(java.lang.String parameterName,
                      java.sql.SQLXML xmlObject)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getSQLXML

public java.sql.SQLXML getSQLXML(int parameterIndex)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

getSQLXML

public java.sql.SQLXML getSQLXML(java.lang.String parametername)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

setAsciiStream

public final void setAsciiStream(int parameterIndex,
                                 java.io.InputStream x)
                          throws java.sql.SQLException
Sets the designated parameter to the given input stream.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the Java input stream that contains the ASCII parameter value
Throws:
java.sql.SQLException - if a database access error occurs or this method is called on a closed PreparedStatement

setBinaryStream

public final void setBinaryStream(int parameterIndex,
                                  java.io.InputStream x)
                           throws java.sql.SQLException
Sets the designated parameter to the given input stream.

Specified by:
setBinaryStream in interface java.sql.PreparedStatement
Specified by:
setBinaryStream in interface EnginePreparedStatement
Overrides:
setBinaryStream in class BrokeredPreparedStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the java input stream which contains the binary parameter value
Throws:
java.sql.SQLException - if a database access error occurs or this method is called on a closed PreparedStatement

setCharacterStream

public final void setCharacterStream(int parameterIndex,
                                     java.io.Reader reader)
                              throws java.sql.SQLException
Sets the designated parameter to the given Reader object.

Specified by:
setCharacterStream in interface java.sql.PreparedStatement
Specified by:
setCharacterStream in interface EnginePreparedStatement
Overrides:
setCharacterStream in class BrokeredPreparedStatement
Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
reader - the java.io.Reader object that contains the Unicode data
Throws:
java.sql.SQLException - if a database access error occurs or this method is called on a closed PreparedStatement

setRowId

public void setRowId(int parameterIndex,
                     java.sql.RowId x)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

setNString

public void setNString(int index,
                       java.lang.String value)
                throws java.sql.SQLException
Throws:
java.sql.SQLException

setNCharacterStream

public void setNCharacterStream(int parameterIndex,
                                java.io.Reader value)
                         throws java.sql.SQLException
Throws:
java.sql.SQLException

setNCharacterStream

public void setNCharacterStream(int index,
                                java.io.Reader value,
                                long length)
                         throws java.sql.SQLException
Throws:
java.sql.SQLException

setNClob

public void setNClob(int index,
                     java.sql.NClob value)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

setClob

public final void setClob(int parameterIndex,
                          java.io.Reader reader)
                   throws java.sql.SQLException
Sets the designated parameter to a Reader object. This method differs from the setCharacterStream(int,Reader) method because it informs the driver that the parameter value should be sent to the server as a CLOB.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
reader - an object that contains the data to set the parameter value to.
Throws:
java.sql.SQLException - if a database access error occurs, this method is called on a closed PreparedStatement

setClob

public void setClob(int parameterIndex,
                    java.io.Reader reader,
                    long length)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

setBlob

public final void setBlob(int parameterIndex,
                          java.io.InputStream inputStream)
                   throws java.sql.SQLException
Sets the designated parameter to a InputStream object. This method differs from the setBinaryStream(int, InputStream) method because it informs the driver that the parameter value should be sent to the server as a BLOB.

Parameters:
inputStream - an object that contains the data to set the parameter value to.
Throws:
java.sql.SQLException - if a database access error occurs, this method is called on a closed PreparedStatement

setBlob

public void setBlob(int parameterIndex,
                    java.io.InputStream inputStream,
                    long length)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

setNClob

public final void setNClob(int parameterIndex,
                           java.io.Reader reader)
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

setNClob

public void setNClob(int parameterIndex,
                     java.io.Reader reader,
                     long length)
              throws java.sql.SQLException
Throws:
java.sql.SQLException

setSQLXML

public void setSQLXML(int parameterIndex,
                      java.sql.SQLXML xmlObject)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

isClosed

public final boolean isClosed()
                       throws java.sql.SQLException
Checks if the statement is closed.

Specified by:
isClosed in interface java.sql.Statement
Overrides:
isClosed in class BrokeredStatement
Returns:
true if the statement is closed, false otherwise
Throws:
java.sql.SQLException - if an error occurs

unwrap

public <T> T unwrap(java.lang.Class<T> interfaces)
         throws java.sql.SQLException
Returns this if this class implements the interface

Parameters:
interfaces - a Class defining an interface
Returns:
an object that implements the interface
Throws:
java.sql.SQLExption - if no object if found that implements the interface
java.sql.SQLException

isPoolable

public boolean isPoolable()
                   throws java.sql.SQLException
Forwards to the real CallableStatement.

Returns:
true if the underlying CallableStatement is poolable, false otherwise.
Throws:
java.sql.SQLException - if the forwarding call fails.

setPoolable

public void setPoolable(boolean poolable)
                 throws java.sql.SQLException
Forwards to the real CallableStatement.

Parameters:
poolable - new value for the poolable hint.
Throws:
java.sql.SQLException - if the forwarding call fails.

setAsciiStream

public final void setAsciiStream(int parameterIndex,
                                 java.io.InputStream x,
                                 long length)
                          throws java.sql.SQLException
Sets the designated parameter to the given input stream, which will have the specified number of bytes.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the java input stream which contains the ASCII parameter value
length - the number of bytes in the stream
Throws:
java.sql.SQLException - thrown on failure.

setBinaryStream

public final void setBinaryStream(int parameterIndex,
                                  java.io.InputStream x,
                                  long length)
                           throws java.sql.SQLException
Sets the designated parameter to the given input stream, which will have the specified number of bytes.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the java input stream which contains the binary parameter value
length - the number of bytes in the stream
Throws:
java.sql.SQLException - thrown on failure.

setCharacterStream

public final void setCharacterStream(int parameterIndex,
                                     java.io.Reader x,
                                     long length)
                              throws java.sql.SQLException
Sets the designated parameter to the given Reader, which will have the specified number of bytes.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the java Reader which contains the UNICODE value
length - the number of bytes in the stream
Throws:
java.sql.SQLException - thrown on failure.

setAsciiStream

public final void setAsciiStream(java.lang.String parameterName,
                                 java.io.InputStream x)
                          throws java.sql.SQLException
Throws:
java.sql.SQLException

setAsciiStream

public final void setAsciiStream(java.lang.String parameterName,
                                 java.io.InputStream x,
                                 long length)
                          throws java.sql.SQLException
Sets the designated parameter to the given input stream, which will have the specified number of bytes.

Parameters:
parameterName - the name of the parameter
x - the java input stream which contains the ASCII parameter value
length - the number of bytes in the stream
Throws:
java.sql.SQLException - thrown on failure.

setBinaryStream

public final void setBinaryStream(java.lang.String parameterName,
                                  java.io.InputStream x)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

setBinaryStream

public final void setBinaryStream(java.lang.String parameterName,
                                  java.io.InputStream x,
                                  long length)
                           throws java.sql.SQLException
Sets the designated parameter to the given input stream, which will have the specified number of bytes.

Parameters:
parameterName - the name of the parameter
x - the java input stream which contains the binary parameter value
length - the number of bytes in the stream
Throws:
java.sql.SQLException - thrown on failure.

setCharacterStream

public final void setCharacterStream(java.lang.String parameterName,
                                     java.io.Reader x)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

setCharacterStream

public final void setCharacterStream(java.lang.String parameterName,
                                     java.io.Reader x,
                                     long length)
                              throws java.sql.SQLException
Sets the designated parameter to the given Reader, which will have the specified number of bytes.

Parameters:
parameterName - the name of the parameter
x - the java Reader which contains the UNICODE value
length - the number of bytes in the stream
Throws:
java.sql.SQLException - thrown on failure.

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.