org.apache.derby.impl.jdbc
Class EmbedCallableStatement40
java.lang.Object
org.apache.derby.impl.jdbc.ConnectionChild
org.apache.derby.impl.jdbc.EmbedStatement
org.apache.derby.impl.jdbc.EmbedPreparedStatement
org.apache.derby.impl.jdbc.EmbedCallableStatement
org.apache.derby.impl.jdbc.EmbedCallableStatement20
org.apache.derby.impl.jdbc.EmbedCallableStatement30
org.apache.derby.impl.jdbc.EmbedCallableStatement40
- All Implemented Interfaces:
- java.sql.CallableStatement, java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper, EngineCallableStatement40, EnginePreparedStatement, EngineStatement
public class EmbedCallableStatement40
- extends EmbedCallableStatement30
- implements EngineCallableStatement40
| Fields inherited from class org.apache.derby.impl.jdbc.EmbedStatement |
applicationStatement, batchStatements, isPoolable, lcc, MaxFieldSize, maxRows, results, resultSetConcurrency, resultSetType, SQLText, timeoutMillis, 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 |
|
Constructor Summary |
EmbedCallableStatement40(EmbedConnection conn,
java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
Creates a new instance of EmbedCallableStatement40 |
|
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 parameterName)
|
|
getObject(int parameterIndex,
java.lang.Class<T> type)
|
|
getObject(java.lang.String parameterName,
java.lang.Class<T> type)
|
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 |
isWrapperFor(java.lang.Class<?> interfaces)
Returns false unless interfaces is implemented |
private java.sql.SQLException |
mismatchException(java.lang.String targetTypeName,
int parameterIndex)
|
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(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)
|
void |
setNString(java.lang.String parameterName,
java.lang.String value)
|
void |
setRowId(int parameterIndex,
java.sql.RowId x)
The prepared statement methods |
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.impl.jdbc.EmbedCallableStatement20 |
getArray, getArray, getBigDecimal, getBlob, getBoolean, getByte, getBytes, getCharacterStream, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getObject, getObject, getRef, getRef, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, registerOutParameter, registerOutParameter, registerOutParameter, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBoolean, setByte, setBytes, setCharacterStream, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp |
| Methods inherited from class org.apache.derby.impl.jdbc.EmbedCallableStatement |
addBatch, checkRequiresCallableStatement, executeStatement, getBigDecimal, getBigDecimal, getBlob, getBoolean, getByte, getBytes, getClob, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTime, getTimestamp, getTimestamp, getURL, getURL, registerOutParameter, registerOutParameter, registerOutParameter, setURL, wasNull |
| Methods inherited from class org.apache.derby.impl.jdbc.EmbedPreparedStatement |
addBatch, clearParameters, closeActions, dataTypeConversion, execute, execute, execute, execute, execute, executeBatchElement, executeLargeUpdate, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, finalize, getMetaData, getParameterJDBCType, getParameterSQLType, getParms, getTypes, getVersionCounter, newEmbedResultSetMetaData, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setBrokeredConnectionControl, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL, toString, transferParameters |
| Methods inherited from class org.apache.derby.impl.jdbc.EmbedStatement |
addWarning, cancel, checkExecStatus, checkIfInMiddleOfBatch, checkStatus, clearBatch, clearResultSets, clearWarnings, close, closeMeOnCompletion, closeOnCompletion, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getParameterValueSet, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSQLText, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, processDynamicResult, resultSetClosing, setApplicationStatement, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, transferBatch |
| Methods inherited from class org.apache.derby.impl.jdbc.ConnectionChild |
commitIfAutoCommit, commitIfNeeded, getCal, getConnectionSynchronization, getEmbedConnection, handleException, needCommit, newSQLException, newSQLException, newSQLException, restoreContextStack, restoreIntrFlagIfSeen, setupContextStack |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.derby.iapi.jdbc.EngineStatement |
closeOnCompletion, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, getMoreResults, getResultSetHoldability, isClosed, isCloseOnCompletion, setLargeMaxRows |
| Methods inherited from interface java.sql.CallableStatement |
getArray, getArray, getBigDecimal, getBigDecimal, getBigDecimal, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getClob, getClob, getDate, getDate, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getObject, getObject, getObject, getObject, getRef, getRef, getShort, getShort, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getURL, getURL, registerOutParameter, registerOutParameter, registerOutParameter, 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, wasNull |
| 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, 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, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetType, getUpdateCount, getWarnings, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout |
EmbedCallableStatement40
public EmbedCallableStatement40(EmbedConnection conn,
java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
- Creates a new instance of EmbedCallableStatement40
- Throws:
java.sql.SQLException
getCharacterStream
public java.io.Reader getCharacterStream(java.lang.String parameterName)
throws java.sql.SQLException
- Specified by:
getCharacterStream in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
getNCharacterStream
public java.io.Reader getNCharacterStream(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getNCharacterStream in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
getNCharacterStream
public java.io.Reader getNCharacterStream(java.lang.String parameterName)
throws java.sql.SQLException
- Specified by:
getNCharacterStream in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
getNString
public java.lang.String getNString(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getNString in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
getNString
public java.lang.String getNString(java.lang.String parameterName)
throws java.sql.SQLException
- Specified by:
getNString in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setBlob
public void setBlob(java.lang.String parameterName,
java.sql.Blob x)
throws java.sql.SQLException
- Specified by:
setBlob in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setClob
public void setClob(java.lang.String parameterName,
java.sql.Clob x)
throws java.sql.SQLException
- Specified by:
setClob in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
getRowId
public java.sql.RowId getRowId(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getRowId in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
getRowId
public java.sql.RowId getRowId(java.lang.String parameterName)
throws java.sql.SQLException
- Specified by:
getRowId in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setRowId
public void setRowId(java.lang.String parameterName,
java.sql.RowId x)
throws java.sql.SQLException
- Specified by:
setRowId in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setNString
public void setNString(java.lang.String parameterName,
java.lang.String value)
throws java.sql.SQLException
- Specified by:
setNString in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setNCharacterStream
public void setNCharacterStream(java.lang.String parameterName,
java.io.Reader value,
long length)
throws java.sql.SQLException
- Specified by:
setNCharacterStream in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setNClob
public void setNClob(java.lang.String parameterName,
java.sql.NClob value)
throws java.sql.SQLException
- Specified by:
setNClob in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setClob
public void setClob(java.lang.String parameterName,
java.io.Reader reader,
long length)
throws java.sql.SQLException
- Specified by:
setClob in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setBlob
public void setBlob(java.lang.String parameterName,
java.io.InputStream inputStream,
long length)
throws java.sql.SQLException
- Specified by:
setBlob in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setNClob
public void setNClob(java.lang.String parameterName,
java.io.Reader reader,
long length)
throws java.sql.SQLException
- Specified by:
setNClob in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
getNClob
public java.sql.NClob getNClob(int i)
throws java.sql.SQLException
- Specified by:
getNClob in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
getNClob
public java.sql.NClob getNClob(java.lang.String parameterName)
throws java.sql.SQLException
- Specified by:
getNClob in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setSQLXML
public void setSQLXML(java.lang.String parameterName,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
- Specified by:
setSQLXML in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
getSQLXML
public java.sql.SQLXML getSQLXML(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getSQLXML in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
getSQLXML
public java.sql.SQLXML getSQLXML(java.lang.String parametername)
throws java.sql.SQLException
- Specified by:
getSQLXML in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setRowId
public void setRowId(int parameterIndex,
java.sql.RowId x)
throws java.sql.SQLException
- The prepared statement methods
- Specified by:
setRowId in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNString
public void setNString(int index,
java.lang.String value)
throws java.sql.SQLException
- Specified by:
setNString in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNCharacterStream
public void setNCharacterStream(int parameterIndex,
java.io.Reader value)
throws java.sql.SQLException
- Specified by:
setNCharacterStream in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNCharacterStream
public void setNCharacterStream(int index,
java.io.Reader value,
long length)
throws java.sql.SQLException
- Specified by:
setNCharacterStream in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNClob
public void setNClob(int index,
java.sql.NClob value)
throws java.sql.SQLException
- Specified by:
setNClob in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNClob
public void setNClob(int parameterIndex,
java.io.Reader reader)
throws java.sql.SQLException
- Specified by:
setNClob in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNClob
public void setNClob(int parameterIndex,
java.io.Reader reader,
long length)
throws java.sql.SQLException
- Specified by:
setNClob in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setSQLXML
public void setSQLXML(int parameterIndex,
java.sql.SQLXML xmlObject)
throws java.sql.SQLException
- Specified by:
setSQLXML in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> interfaces)
throws java.sql.SQLException
- Returns false unless
interfaces is implemented
- Specified by:
isWrapperFor in interface java.sql.Wrapper
- Parameters:
interfaces - a Class defining an interface.
- Returns:
- true if this implements the interface or
directly or indirectly wraps an object
that does.
- Throws:
java.sql.SQLException - if an error occurs while determining
whether this is a wrapper for an object
with the given interface.
setAsciiStream
public void setAsciiStream(java.lang.String parameterName,
java.io.InputStream x)
throws java.sql.SQLException
- Specified by:
setAsciiStream in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setBinaryStream
public void setBinaryStream(java.lang.String parameterName,
java.io.InputStream x)
throws java.sql.SQLException
- Specified by:
setBinaryStream in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setBlob
public void setBlob(java.lang.String parameterName,
java.io.InputStream inputStream)
throws java.sql.SQLException
- Specified by:
setBlob in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setCharacterStream
public void setCharacterStream(java.lang.String parameterName,
java.io.Reader reader)
throws java.sql.SQLException
- Specified by:
setCharacterStream in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setClob
public void setClob(java.lang.String parameterName,
java.io.Reader reader)
throws java.sql.SQLException
- Specified by:
setClob in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setNCharacterStream
public void setNCharacterStream(java.lang.String parameterName,
java.io.Reader value)
throws java.sql.SQLException
- Specified by:
setNCharacterStream in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
setNClob
public void setNClob(java.lang.String parameterName,
java.io.Reader reader)
throws java.sql.SQLException
- Specified by:
setNClob in interface java.sql.CallableStatement
- 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
- Specified by:
unwrap in interface java.sql.Wrapper
- Parameters:
interfaces - a Class defining an interface
- Returns:
- an object that implements the interface
- Throws:
java.sql.SQLException - if no object if found that implements the
interface
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.
- Specified by:
setAsciiStream in interface java.sql.CallableStatement
- 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.
- Specified by:
setBinaryStream in interface java.sql.CallableStatement
- 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.
- Specified by:
setCharacterStream in interface java.sql.CallableStatement
- 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.
getObject
public <T> T getObject(int parameterIndex,
java.lang.Class<T> type)
throws java.sql.SQLException
- Specified by:
getObject in interface EngineCallableStatement40
- Throws:
java.sql.SQLException
mismatchException
private java.sql.SQLException mismatchException(java.lang.String targetTypeName,
int parameterIndex)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getObject
public <T> T getObject(java.lang.String parameterName,
java.lang.Class<T> type)
throws java.sql.SQLException
- Specified by:
getObject in interface EngineCallableStatement40
- Throws:
java.sql.SQLException
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.