org.apache.derby.impl.jdbc
Class EmbedCallableStatement
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
- All Implemented Interfaces:
- java.sql.CallableStatement, java.sql.PreparedStatement, java.sql.Statement
- Direct Known Subclasses:
- EmbedCallableStatement20
- public abstract class EmbedCallableStatement
- extends EmbedPreparedStatement
- implements java.sql.CallableStatement
Local implementation.
- Author:
- ames
Fields inherited from class org.apache.derby.impl.jdbc.EmbedStatement |
active, batchStatements, cursorName, forMetaData, lcc, MaxFieldSize, maxRows, results, resultSetConcurrency, resultSetHoldability, resultSetType, SQLText, 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 |
Methods inherited from class org.apache.derby.impl.jdbc.EmbedPreparedStatement |
addBatch, clearParameters, closeActions, dataTypeConversion, execute, execute, execute, execute, execute, executeBatchElement, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, finalize, getEmbedParameterSetMetaData, getMetaData, getParameterJDBCType, getParms, getTypes, newEmbedResultSetMetaData, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStreamInternal, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStreamInternal, 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 |
cancel, checkExecStatus, checkIfInMiddleOfBatch, checkStatus, clearBatch, clearResultSets, clearWarnings, close, execute, executeBatch, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getParameterValueSet, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSQLText, getUpdateCount, getWarnings, getWarnings, resultSetClosing, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout, transferBatch |
Methods inherited from class org.apache.derby.impl.jdbc.ConnectionChild |
commitIfAutoCommit, commitIfNeeded, getCal, getConnectionSynchronization, getContextManager, getDatabase, getEmbedConnection, handleException, handleException, needCommit, newSQLException, newSQLException, newSQLException, restoreContextStack, setupContextStack |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.sql.CallableStatement |
getArray, getArray, getBigDecimal, getBigDecimal, getBlob, getBlob, getBoolean, getByte, getBytes, getClob, getClob, getDate, getDate, getDate, getDouble, getFloat, getInt, getLong, getObject, getObject, getObject, getRef, getRef, getShort, getString, getTime, getTime, getTime, getTimestamp, 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 |
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 |
hasReturnOutputParameter
private boolean hasReturnOutputParameter
wasNull
protected boolean wasNull
EmbedCallableStatement
public EmbedCallableStatement(EmbedConnection conn,
java.lang.String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
- thrown on failure
checkRequiresCallableStatement
protected void checkRequiresCallableStatement(Activation activation)
- Description copied from class:
EmbedStatement
- Check to see if a statement requires to be executed via a callable statement.
- Overrides:
checkRequiresCallableStatement
in class EmbedStatement
executeStatement
protected final boolean executeStatement(Activation a,
boolean executeQuery,
boolean executeUpdate)
throws java.sql.SQLException
- Description copied from class:
EmbedStatement
- Execute the current statement.
- Overrides:
executeStatement
in class EmbedPreparedStatement
- Throws:
java.sql.SQLException
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
- NoOutputParameters thrown.- See Also:
CallableStatement.registerOutParameter(int, int)
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
- NoOutputParameters thrown.- See Also:
CallableStatement.registerOutParameter(int, int)
registerOutParameter
public void registerOutParameter(int parameterIndex,
int sqlType,
java.lang.String typeName)
throws java.sql.SQLException
- JDBC 2.0
Registers the designated output parameter
- Specified by:
registerOutParameter
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- if a database-access error occurs.
wasNull
public boolean wasNull()
throws java.sql.SQLException
- Specified by:
wasNull
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.wasNull()
getString
public java.lang.String getString(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getString
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getString(int)
getBoolean
public boolean getBoolean(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getBoolean
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getBoolean(int)
getByte
public byte getByte(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getByte
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getByte(int)
getShort
public short getShort(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getShort
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getShort(int)
getInt
public int getInt(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getInt
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getInt(int)
getLong
public long getLong(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getLong
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getLong(int)
getFloat
public float getFloat(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getFloat
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getFloat(int)
getDouble
public double getDouble(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getDouble
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getDouble(int)
getBigDecimal
public java.math.BigDecimal getBigDecimal(int parameterIndex,
int scale)
throws java.sql.SQLException
- Specified by:
getBigDecimal
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getBigDecimal(int)
getBytes
public byte[] getBytes(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getBytes
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getBytes(int)
getDate
public java.sql.Date getDate(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getDate
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getDate(int)
getTime
public java.sql.Time getTime(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getTime
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getTime(int)
getTimestamp
public java.sql.Timestamp getTimestamp(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getTimestamp
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getTimestamp(int)
getObject
public java.lang.Object getObject(int parameterIndex)
throws java.sql.SQLException
- Specified by:
getObject
in interface java.sql.CallableStatement
- Throws:
java.sql.SQLException
- NoOutputParameters thrown.- See Also:
CallableStatement.getObject(int)
addBatch
public void addBatch()
throws java.sql.SQLException
- Description copied from class:
EmbedPreparedStatement
- JDBC 2.0
Add a set of parameters to the batch.
- Specified by:
addBatch
in interface java.sql.PreparedStatement
- Overrides:
addBatch
in class EmbedPreparedStatement
- Throws:
java.sql.SQLException
- if a database-access error occurs.
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.