org.apache.derby.client.am
Class CallableStatement40
java.lang.Object
org.apache.derby.client.am.Statement
org.apache.derby.client.am.PreparedStatement
org.apache.derby.client.am.CallableStatement
org.apache.derby.client.am.CallableStatement40
- All Implemented Interfaces:
- java.sql.CallableStatement, java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper, PreparedStatementCallbackInterface, StatementCallbackInterface, UnitOfWorkListener
public class CallableStatement40
- extends CallableStatement
Fields inherited from class org.apache.derby.client.am.Statement |
agent_, autoGeneratedKeys_, batch_, cachedCursor_, cachedSingletonRowData_, CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, connection_, cursorAttributesToSendOnPrepare_, cursorName_, doWriteTimeout, executeMethod__, executeQueryMethod__, executeUpdateMethod__, fetchDirection_, fetchSize_, generatedKeysColumnIndexes_, generatedKeysColumnNames_, generatedKeysResultSet_, indexOfCurrentResultSet_, isAutoCommittableStatement_, isCall__, isCatalogQuery_, isCommitSql__, isDeleteSql__, isInsertSql__, isPoolable, isPositionedUpdateDeleteSql__, isPreparedStatement_, isQuery__, isRollbackSql__, isUpdate__, isUpdateSql__, KEEP_CURRENT_RESULT, materialStatement_, maxFieldSize_, maxRows_, numInvisibleRS_, openOnClient_, openOnServer_, preparedStatementForAutoGeneratedKeys_, resultSet_, resultSetConcurrency_, resultSetHoldability_, resultSetList_, resultSetMetaData_, resultSetType_, returnValueFromProcedure_, section_, singletonRowData_, sqlMode_, sqlUpdateMode_, timeout_, TIMEOUT_STATEMENT, timeoutArrayList, updateCount_ |
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 |
Method Summary |
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 parameterIndex)
|
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)
|
void |
setAsciiStream(java.lang.String parameterName,
java.io.InputStream x)
End of methods from PreparedStatement for JDBC 4.0 |
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(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(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(java.lang.String parameterName,
java.io.Reader reader)
|
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(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)
The methods from PreparedStatement for JDBC 4.0 |
void |
setNString(java.lang.String parameterName,
java.lang.String value)
|
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)
|
|
unwrap(java.lang.Class<T> interfaces)
Returns this if this class implements the interface |
Methods inherited from class org.apache.derby.client.am.CallableStatement |
clearParameters, finalize, getArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getBytesX, getCharacterStream, getClob, getClob, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntX, getJdbcStatementInterfaceName, getLong, getLong, getLongX, getObject, getObject, getObject, getObject, getRef, getRef, getShort, getShort, getString, getString, getStringX, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getURL, getURL, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameter, registerOutParameterX, reset, resetCallableStatement, resetCallableStatement, resetCallableStatement, 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, wasNull |
Methods inherited from class org.apache.derby.client.am.PreparedStatement |
addBatch, checkForValidParameterIndex, checkForValidScale, checkScaleForINOUTDecimal, completeDescribeInput, completeDescribeOutput, completeLocalCommit, completeLocalRollback, completePrepareDescribe, execute, execute, execute, execute, execute, executeBatch, executeBatchX, executeQuery, executeQuery, executeQueryX, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeX, flowPrepareDescribeInputOutput, getMetaData, getParameterMetaData, initResetPreparedStatement, listenToUnitOfWork, markClosed, prepare, readDescribeInput, readDescribeOutput, readExecute, readPrepareDescribeInput, readPrepareDescribeInputOutput, resetForReuse, resetPreparedStatement, resetPreparedStatement, resetPreparedStatement, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBinaryStreamX, setBlob, setBlob, setBlob, setBlobX, setBoolean, setByte, setBytes, setBytesX, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setClobX, setDate, setDate, setDouble, setFloat, setInput, setInt, setIntX, setLong, setLongX, setNull, setNull, setNullX, setObject, setObject, setObject, setRef, setShort, setShortX, setString, setStringX, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL, writeDescribeInput, writeDescribeOutput, writeExecute, writePrepareDescribeInput, writePrepareDescribeInputOutput, writePrepareDescribeInputOutput |
Methods inherited from class org.apache.derby.client.am.Statement |
accumulateWarning, addBatch, cacheCursorAttributesToSendOnPrepare, cancel, checkAutoGeneratedKeysParameters, checkForAppropriateSqlMode, checkForClosedStatement, checkForDuplicateCursorName, checkForInvalidBatchedSql, checkForStoredProcResultSetCount, clearBatch, clearWarnings, clearWarningsX, close, closeX, completeExecute, completeExecuteCall, completeExecuteCall, completeExecuteCallOpenQuery, completeExecuteImmediate, completeExecuteSetStatement, completeOpenQuery, completePrepare, completePrepareDescribeOutput, completeSqlca, escape, executeX, extractCursorNameFromWhereCurrentOf, flowExecuteBatch, getConnection, getConnectionCallbackInterface, getFetchDirection, getFetchSize, getGeneratedKeys, getGuessedResultSetMetaData, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getOwner, getPreparedStatementForAutoGeneratedKeys, getProcedureName, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSqlWarnings, getUpdateCount, getWarnings, isClosed, isPoolable, isQueryMode, isWrapperFor, jdbc3FeatureNotSupported, jdbc3FeatureNotSupported, mapCursorNameToResultSet, markAutoCommitted, markClosed, markClosedOnServer, markPreparedStatementForAutoGeneratedKeysClosed, markResultSetsClosed, markResultSetsClosed, parseSqlAndSetSqlModes, parseStorProcReturnedScrollableRowset, prepareAutoGeneratedKeysStatement, readClose, readCloseResultSets, readCloseResultSets, readExecuteCall, readExecuteImmediate, readExecuteImmediateForBatch, readOpenQuery, readPrepare, readPrepareAutoGeneratedKeysStatement, readPrepareDescribeOutput, readSetSpecialRegister, removeClientCursorNameFromCache, resetCursorNameAndRemoveFromWhereCurrentOfMappings, resetStatement, resetStatement, resultSetCommitting, resultSetCommitting, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setOwner, setPoolable, setQueryTimeout, setupCursorNameCacheAndMappings, setUpdateCount, substituteClientCursorNameWithServerCursorName, upperCaseProcedureName, writeClose, writeCloseResultSets, writeCloseResultSets, writeExecuteCall, writeExecuteImmediate, writeOpenQuery, writePrepare, writePrepareDescribeOutput, writeSetSpecialRegister |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.sql.PreparedStatement |
addBatch, 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, 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, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout |
Methods inherited from interface java.sql.Wrapper |
isWrapperFor |
Methods inherited from interface org.apache.derby.client.am.StatementCallbackInterface |
accumulateWarning, completeExecute, completeExecuteCall, completeExecuteCall, completeExecuteCallOpenQuery, completeExecuteImmediate, completeExecuteSetStatement, completeOpenQuery, completePrepare, completePrepareDescribeOutput, completeSqlca, getConnectionCallbackInterface, getGuessedResultSetMetaData |
CallableStatement40
public CallableStatement40(Agent agent,
Connection connection,
java.lang.String sql,
int type,
int concurrency,
int holdability,
ClientPooledConnection cpc)
throws SqlException
- Calls the superclass constructor and passes the parameters
- Parameters:
agent
- The instance of NetAgent associated with this
CallableStatement object.connection
- The connection object associated with this
PreparedStatement Object.sql
- A String object that is the SQL statement to be sent
to the database.type
- One of the ResultSet type constantsconcurrency
- One of the ResultSet concurrency constantsholdability
- One of the ResultSet holdability constantscpc
- The PooledConnection object that will be used to
notify the PooledConnection reference of the Error
Occurred and the Close events.
- Throws:
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 parameterIndex)
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 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 void setClob(java.lang.String parameterName,
java.io.Reader reader,
long length)
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 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
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
- The methods from PreparedStatement for JDBC 4.0. *
These are added here because we can't inherit *
PreparedStatement40.java. Instead of moving the non-implemented *
classes to PreparedStatement.java, we duplicate them here. *
- 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
setNClob
public 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
setAsciiStream
public void setAsciiStream(java.lang.String parameterName,
java.io.InputStream x)
throws java.sql.SQLException
- End of methods from PreparedStatement for JDBC 4.0. *
- Throws:
java.sql.SQLException
setBinaryStream
public void setBinaryStream(java.lang.String parameterName,
java.io.InputStream x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setBlob
public void setBlob(java.lang.String parameterName,
java.io.InputStream inputStream)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setCharacterStream
public void setCharacterStream(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)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setNCharacterStream
public void setNCharacterStream(java.lang.String parameterName,
java.io.Reader value)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setNClob
public void setNClob(java.lang.String parameterName,
java.io.Reader reader)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
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
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 first parameterx
- the java input stream which contains the ASCII parameter valuelength
- 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,
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 first parameterx
- the java input stream which contains the binary parameter valuelength
- 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,
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 first parameterx
- the java Reader which contains the UNICODE valuelength
- the number of bytes in the stream
- Throws:
java.sql.SQLException
- thrown on failure.
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.