org.apache.derby.impl.jdbc
Class EmbedCallableStatement20

java.lang.Object
  extended by org.apache.derby.impl.jdbc.ConnectionChild
      extended by org.apache.derby.impl.jdbc.EmbedStatement
          extended by org.apache.derby.impl.jdbc.EmbedPreparedStatement
              extended by org.apache.derby.impl.jdbc.EmbedCallableStatement
                  extended by org.apache.derby.impl.jdbc.EmbedCallableStatement20
All Implemented Interfaces:
java.sql.CallableStatement, java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper, EnginePreparedStatement, EngineStatement
Direct Known Subclasses:
EmbedCallableStatement30

public abstract class EmbedCallableStatement20
extends EmbedCallableStatement

This class extends the EmbedCallableStatement class in order to support new methods and classes that come with JDBC 2.0.

See Also:
EmbedCallableStatement

Field Summary
 
Fields inherited from class org.apache.derby.impl.jdbc.EmbedCallableStatement
wasNull
 
Fields inherited from class org.apache.derby.impl.jdbc.EmbedPreparedStatement
preparedStatement, rMetaData
 
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 class org.apache.derby.impl.jdbc.ConnectionChild
factory, localConn
 
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
EmbedCallableStatement20(EmbedConnection conn, java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 
Method Summary
 java.sql.Array getArray(int i)
          JDBC 2.0 Get an Array OUT parameter.
 java.sql.Array getArray(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC ARRAY parameter as an Array object in the Java programming language.
 java.math.BigDecimal getBigDecimal(int parameterIndex)
          JDBC 2.0 Get the value of a NUMERIC parameter as a java.math.BigDecimal object.
 java.math.BigDecimal getBigDecimal(int parameterIndex, int scale)
          Deprecated.  
 java.math.BigDecimal getBigDecimal(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC NUMERIC parameter as a java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains
private  java.io.InputStream getBinaryStream(int parameterIndex)
          Get binary stream for a parameter.
 java.sql.Blob getBlob(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC BLOB parameter as a Blob object in the Java programming language.
 boolean getBoolean(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC BIT parameter as a boolean in the Java programming language.
 byte getByte(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC TINYINT parameter as a byte in the Java programming language.
 byte[] getBytes(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.
 java.io.Reader getCharacterStream(int parameterIndex)
          Retrieves the value of the designated parameter as a java.io.Reader object in the Java programming language.
 java.sql.Clob getClob(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC CLOB parameter as a Clob object in the Java programming language.
 java.sql.Date getDate(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC DATE parameter as ajava.sql.Date object
 java.sql.Date getDate(java.lang.String parameterName, java.util.Calendar cal)
          JDBC 3.0 Retrieves the value of a JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date object.
 double getDouble(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC DOUBLE parameter as a double in the Java programming language.
 float getFloat(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC FLOAT parameter as a float in the Java programming language.
 int getInt(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC INTEGER parameter as a int in the Java programming language.
 long getLong(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC BIGINT parameter as a long in the Java programming language.
 java.lang.Object getObject(int i, java.util.Map map)
          JDBC 2.0 Returns an object representing the value of OUT parameter @i.
 java.lang.Object getObject(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a parameter as an Object in the java programming language.
 java.lang.Object getObject(java.lang.String parameterName, java.util.Map map)
          JDBC 3.0 Returns an object representing the value of OUT parameter i and uses map for the custom mapping of the parameter value.
 java.sql.Ref getRef(int i)
          JDBC 2.0 Get a REF(<structured-type>) OUT parameter.
 java.sql.Ref getRef(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC REF (
 short getShort(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC SMALLINT parameter as a short in the Java programming language.
 java.lang.String getString(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC CHAR, VARCHAR, or LONGVARCHAR parameter as a String in the Java programming language.
 java.sql.Time getTime(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC TIME parameter as ajava.sql.Time object
 java.sql.Time getTime(java.lang.String parameterName, java.util.Calendar cal)
          JDBC 3.0 Retrieves the value of a JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time object.
 java.sql.Timestamp getTimestamp(java.lang.String parameterName)
          JDBC 3.0 Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object
 java.sql.Timestamp getTimestamp(java.lang.String parameterName, java.util.Calendar cal)
          JDBC 3.0 Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.
 void registerOutParameter(java.lang.String parameterName, int sqlType)
          JDBC 3.0 Registers the OUT parameter named parameterName to the JDBC type sqlType.
 void registerOutParameter(java.lang.String parameterName, int sqlType, int scale)
          JDBC 3.0 Registers the parameter named parameterName to the JDBC type sqlType.
 void registerOutParameter(java.lang.String parameterName, int sqlType, java.lang.String typeName)
          JDBC 3.0 Registers the designated output parameter.
 void setArray(int i, java.sql.Array x)
          JDBC 2.0 Set an Array parameter.
 void setAsciiStream(java.lang.String parameterName, java.io.InputStream x, int length)
          JDBC 3.0 Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setBigDecimal(int parameterIndex, java.math.BigDecimal x)
          Set a parameter to a java.lang.BigDecimal value.
 void setBigDecimal(java.lang.String parameterName, java.math.BigDecimal x)
          JDBC 3.0 Sets the designated parameter to the given java.math.BigDecimal value.
 void setBinaryStream(java.lang.String parameterName, java.io.InputStream x, int length)
          JDBC 3.0 Sets the designated parameter to the given input stream, which will have the specified number of bytes.
 void setBoolean(java.lang.String parameterName, boolean x)
          JDBC 3.0 Sets the designated parameter to the given Java boolean value.
 void setByte(java.lang.String parameterName, byte x)
          JDBC 3.0 Sets the designated parameter to the given Java byte value.
 void setBytes(java.lang.String parameterName, byte[] x)
          JDBC 3.0 Sets the designated parameter to the given Java array of bytes.
 void setCharacterStream(java.lang.String parameterName, java.io.Reader reader, int length)
          JDBC 3.0 Sets the designated parameter to the given Reader object, which is the given number of characters long.
 void setDate(java.lang.String parameterName, java.sql.Date x)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Date value.
 void setDate(java.lang.String parameterName, java.sql.Date x, java.util.Calendar cal)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Date value, using the given Calendar object.
 void setDouble(java.lang.String parameterName, double x)
          JDBC 3.0 Sets the designated parameter to the given Java double value.
 void setFloat(java.lang.String parameterName, float x)
          JDBC 3.0 Sets the designated parameter to the given Java float value.
 void setInt(java.lang.String parameterName, int x)
          JDBC 3.0 Sets the designated parameter to the given Java int value.
 void setLong(java.lang.String parameterName, long x)
          JDBC 3.0 Sets the designated parameter to the given Java long value.
 void setNull(java.lang.String parameterName, int sqlType)
          JDBC 3.0 Sets the designated parameter to SQL NULL.
 void setNull(java.lang.String parameterName, int sqlType, java.lang.String typeName)
          JDBC 3.0 Sets the designated parameter to SQL NULL.
 void setObject(java.lang.String parameterName, java.lang.Object x)
          JDBC 3.0 Sets the value of the designated parameter with the given object.
 void setObject(java.lang.String parameterName, java.lang.Object x, int targetSqlType)
          JDBC 3.0 Sets the value of the designated parameter with the given object.
 void setObject(java.lang.String parameterName, java.lang.Object x, int targetSqlType, int scale)
          JDBC 3.0 Sets the value of the designated parameter with the given object.
(package private)  boolean setObjectConvert(int parameterIndex, java.lang.Object x)
          Allow explict setObject conversions by sub-classes for classes not supported by this variant.
 void setRef(int i, java.sql.Ref x)
          JDBC 2.0 Set a REF(<structured-type>) parameter.
 void setShort(java.lang.String parameterName, short x)
          JDBC 3.0 Sets the designated parameter to the given Java short value.
 void setString(java.lang.String parameterName, java.lang.String x)
          JDBC 3.0 Sets the designated parameter to the given Java String value.
 void setTime(java.lang.String parameterName, java.sql.Time x)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Time value.
 void setTime(java.lang.String parameterName, java.sql.Time x, java.util.Calendar cal)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Time value using the Calendar object
 void setTimestamp(java.lang.String parameterName, java.sql.Timestamp x)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Timestamp value.
 void setTimestamp(java.lang.String parameterName, java.sql.Timestamp x, java.util.Calendar cal)
          JDBC 3.0 Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object
 
Methods inherited from class org.apache.derby.impl.jdbc.EmbedCallableStatement
addBatch, checkRequiresCallableStatement, executeStatement, 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, executeQuery, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, executeUpdate, finalize, getMetaData, getParameterJDBCType, getParameterSQLType, getParms, getTypes, newEmbedResultSetMetaData, setAsciiStream, setAsciiStream, setAsciiStream, 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, executeBatch, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getParameterValueSet, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getSQLText, getUpdateCount, getWarnings, isClosed, isPoolable, processDynamicResult, resultSetClosing, setApplicationStatement, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, 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, setupContextStack
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.sql.CallableStatement
getCharacterStream, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRowId, getRowId, getSQLXML, getSQLXML, setAsciiStream, setAsciiStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRowId, setSQLXML
 
Methods inherited from interface java.sql.PreparedStatement
clearParameters, execute, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setAsciiStream, setAsciiStream, setAsciiStream, 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, 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, unwrap
 

Constructor Detail

EmbedCallableStatement20

public EmbedCallableStatement20(EmbedConnection conn,
                                java.lang.String sql,
                                int resultSetType,
                                int resultSetConcurrency,
                                int resultSetHoldability)
                         throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

getBigDecimal

public java.math.BigDecimal getBigDecimal(int parameterIndex)
                                   throws java.sql.SQLException
JDBC 2.0 Get the value of a NUMERIC parameter as a java.math.BigDecimal object.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
Returns:
the parameter value (full precision); if the value is SQL NULL, the result is null
Throws:
java.sql.SQLException - if a database-access error occurs.

getObject

public java.lang.Object getObject(int i,
                                  java.util.Map map)
                           throws java.sql.SQLException
JDBC 2.0 Returns an object representing the value of OUT parameter @i. Use the @map to determine the class from which to construct data of SQL structured and distinct types.

Parameters:
i - the first parameter is 1, the second is 2, ...
map - the mapping from SQL type names to Java classes
Returns:
a java.lang.Object holding the OUT parameter value.
Throws:
java.sql.SQLException - if a database-access error occurs.

getRef

public java.sql.Ref getRef(int i)
                    throws java.sql.SQLException
JDBC 2.0 Get a REF(<structured-type>) OUT parameter.

Parameters:
i - the first parameter is 1, the second is 2, ...
Returns:
an object representing data of an SQL REF Type
Throws:
java.sql.SQLException - if a database-access error occurs.

getArray

public java.sql.Array getArray(int i)
                        throws java.sql.SQLException
JDBC 2.0 Get an Array OUT parameter.

Parameters:
i - the first parameter is 1, the second is 2, ...
Returns:
an object representing an SQL array
Throws:
java.sql.SQLException - if a database-access error occurs.

setRef

public void setRef(int i,
                   java.sql.Ref x)
            throws java.sql.SQLException
JDBC 2.0 Set a REF(<structured-type>) parameter.

Parameters:
i - the first parameter is 1, the second is 2, ...
x - an object representing data of an SQL REF Type
Throws:
java.sql.SQLException - Feature not implemented for now.

setArray

public void setArray(int i,
                     java.sql.Array x)
              throws java.sql.SQLException
JDBC 2.0 Set an Array parameter.

Parameters:
i - the first parameter is 1, the second is 2, ...
x - an object representing an SQL array
Throws:
java.sql.SQLException - Feature not implemented for now.

registerOutParameter

public void registerOutParameter(java.lang.String parameterName,
                                 int sqlType)
                          throws java.sql.SQLException
JDBC 3.0 Registers the OUT parameter named parameterName to the JDBC type sqlType. All OUT parameters must be registered before a stored procedure is executed.

Parameters:
parameterName - - the name of the parameter
sqlType - - the JDBC type code defined by java.sql.Types. If the parameter is of JDBC type NUMERIC or DECIMAL, the version of registerOutParameter that accepts a scale value should be used.
Throws:
java.sql.SQLException - Feature not implemented for now.

registerOutParameter

public void registerOutParameter(java.lang.String parameterName,
                                 int sqlType,
                                 java.lang.String typeName)
                          throws java.sql.SQLException
JDBC 3.0 Registers the designated output parameter. This version of the method registerOutParameter should be used for a user-named or REF output parameter.

Parameters:
parameterName - - the name of the parameter
sqlType - - the SQL type code defined by java.sql.Types.
typeName - - the fully-qualified name of an SQL structure type
Throws:
java.sql.SQLException - Feature not implemented for now.

registerOutParameter

public void registerOutParameter(java.lang.String parameterName,
                                 int sqlType,
                                 int scale)
                          throws java.sql.SQLException
JDBC 3.0 Registers the parameter named parameterName to the JDBC type sqlType. This method must be called before a stored procedure is executed.

Parameters:
parameterName - - the name of the parameter
sqlType - - the SQL type code defined by java.sql.Types.
scale - - the desired number of digits to the right of the decimal point. It must be greater than or equal to zero.
Throws:
java.sql.SQLException - Feature not implemented for now.

getRef

public java.sql.Ref getRef(java.lang.String parameterName)
                    throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC REF (
Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value as a Ref object in the Java Programming language. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

getBlob

public java.sql.Blob getBlob(java.lang.String parameterName)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC BLOB parameter as a Blob object in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value as a Blob object in the Java Programming language. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

getClob

public java.sql.Clob getClob(java.lang.String parameterName)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC CLOB parameter as a Clob object in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value as a Clob object in the Java Programming language. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

getArray

public java.sql.Array getArray(java.lang.String parameterName)
                        throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC ARRAY parameter as an Array object in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value as a Array object in the Java Programming language. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

setNull

public void setNull(java.lang.String parameterName,
                    int sqlType)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to SQL NULL.

Parameters:
parameterName - - the name of the parameter
sqlType - - the SQL type code defined in java.sql.Types
Throws:
java.sql.SQLException - Feature not implemented for now.

setNull

public void setNull(java.lang.String parameterName,
                    int sqlType,
                    java.lang.String typeName)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to SQL NULL.

Parameters:
parameterName - - the name of the parameter
sqlType - - the SQL type code defined in java.sql.Types
typeName - - the fully-qualified name of an SQL user-defined type
Throws:
java.sql.SQLException - Feature not implemented for now.

setBoolean

public void setBoolean(java.lang.String parameterName,
                       boolean x)
                throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java boolean value. The driver converts this to an SQL BIT value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getBoolean

public boolean getBoolean(java.lang.String parameterName)
                   throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC BIT parameter as a boolean in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is false.
Throws:
java.sql.SQLException - Feature not implemented for now.

setByte

public void setByte(java.lang.String parameterName,
                    byte x)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java byte value. The driver converts this to an SQL TINYINT value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getByte

public byte getByte(java.lang.String parameterName)
             throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC TINYINT parameter as a byte in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - Feature not implemented for now.

setShort

public void setShort(java.lang.String parameterName,
                     short x)
              throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java short value. The driver converts this to an SQL SMALLINT value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getShort

public short getShort(java.lang.String parameterName)
               throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC SMALLINT parameter as a short in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - Feature not implemented for now.

setInt

public void setInt(java.lang.String parameterName,
                   int x)
            throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java int value. The driver converts this to an SQL INTEGER value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getInt

public int getInt(java.lang.String parameterName)
           throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC INTEGER parameter as a int in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - Feature not implemented for now.

setLong

public void setLong(java.lang.String parameterName,
                    long x)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java long value. The driver converts this to an SQL BIGINT value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getLong

public long getLong(java.lang.String parameterName)
             throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC BIGINT parameter as a long in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - Feature not implemented for now.

setFloat

public void setFloat(java.lang.String parameterName,
                     float x)
              throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java float value. The driver converts this to an SQL FLOAT value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getFloat

public float getFloat(java.lang.String parameterName)
               throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC FLOAT parameter as a float in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - Feature not implemented for now.

setDouble

public void setDouble(java.lang.String parameterName,
                      double x)
               throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java double value. The driver converts this to an SQL DOUBLE value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getDouble

public double getDouble(java.lang.String parameterName)
                 throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC DOUBLE parameter as a double in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - Feature not implemented for now.

setBigDecimal

public void setBigDecimal(java.lang.String parameterName,
                          java.math.BigDecimal x)
                   throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.math.BigDecimal value. The driver converts this to an SQL NUMERIC value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getBigDecimal

public java.math.BigDecimal getBigDecimal(java.lang.String parameterName)
                                   throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC NUMERIC parameter as a java.math.BigDecimal object with as many digits to the right of the decimal point as the value contains

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is 0.
Throws:
java.sql.SQLException - Feature not implemented for now.

setString

public void setString(java.lang.String parameterName,
                      java.lang.String x)
               throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java String value. The driver converts this to an SQL VARCHAR OR LONGVARCHAR value (depending on the argument's size relative the driver's limits on VARCHAR values) when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getString

public java.lang.String getString(java.lang.String parameterName)
                           throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC CHAR, VARCHAR, or LONGVARCHAR parameter as a String in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

setBytes

public void setBytes(java.lang.String parameterName,
                     byte[] x)
              throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Java array of bytes. The driver converts this to an SQL VARBINARY OR LONGVARBINARY (depending on the argument's size relative to the driver's limits on VARBINARY values)when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getBytes

public byte[] getBytes(java.lang.String parameterName)
                throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC BINARY or VARBINARY parameter as an array of byte values in the Java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

setDate

public void setDate(java.lang.String parameterName,
                    java.sql.Date x)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Date value. The driver converts this to an SQL DATE value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

setDate

public void setDate(java.lang.String parameterName,
                    java.sql.Date x,
                    java.util.Calendar cal)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Date value, using the given Calendar object.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
cal - - the Calendar object the driver will use to construct the date
Throws:
java.sql.SQLException - Feature not implemented for now.

getDate

public java.sql.Date getDate(java.lang.String parameterName)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC DATE parameter as ajava.sql.Date object

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

getDate

public java.sql.Date getDate(java.lang.String parameterName,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC DATE parameter as a java.sql.Date object, using the given Calendar object to construct the date object.

Parameters:
parameterName - - the name of the parameter
cal - - the Calendar object the driver will use to construct the date
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

setTime

public void setTime(java.lang.String parameterName,
                    java.sql.Time x)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Time value. The driver converts this to an SQL TIME value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getTime

public java.sql.Time getTime(java.lang.String parameterName)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC TIME parameter as ajava.sql.Time object

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

getTime

public java.sql.Time getTime(java.lang.String parameterName,
                             java.util.Calendar cal)
                      throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC TIME parameter as a java.sql.Time object, using the given Calendar object to construct the time object.

Parameters:
parameterName - - the name of the parameter
cal - - the Calendar object the driver will use to construct the time
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

setTime

public void setTime(java.lang.String parameterName,
                    java.sql.Time x,
                    java.util.Calendar cal)
             throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Time value using the Calendar object

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
cal - - the Calendar object the driver will use to construct the time
Throws:
java.sql.SQLException - Feature not implemented for now.

setTimestamp

public void setTimestamp(java.lang.String parameterName,
                         java.sql.Timestamp x)
                  throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Timestamp value. The driver converts this to an SQL TIMESTAMP value when it sends it to the database.

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

setTimestamp

public void setTimestamp(java.lang.String parameterName,
                         java.sql.Timestamp x,
                         java.util.Calendar cal)
                  throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given java.sql.Timestamp value, using the given Calendar object

Parameters:
parameterName - - the name of the parameter
x - - the parameter value
cal - - the Calendar object the driver will use to construct the timestamp.
Throws:
java.sql.SQLException - Feature not implemented for now.

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String parameterName)
                                throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object

Parameters:
parameterName - - the name of the parameter
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String parameterName,
                                       java.util.Calendar cal)
                                throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object.

Parameters:
parameterName - - the name of the parameter
cal - - the Calendar object the driver will use to construct the Timestamp
Returns:
the parameter value. If the value is SQL NULL, the result is null.
Throws:
java.sql.SQLException - Feature not implemented for now.

setAsciiStream

public void setAsciiStream(java.lang.String parameterName,
                           java.io.InputStream x,
                           int length)
                    throws java.sql.SQLException
JDBC 3.0 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 that contains the ASCII parameter value
length - - the number of bytes in the stream
Throws:
java.sql.SQLException - Feature not implemented for now.

setBinaryStream

public void setBinaryStream(java.lang.String parameterName,
                            java.io.InputStream x,
                            int length)
                     throws java.sql.SQLException
JDBC 3.0 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 that contains the binary parameter value
length - - the number of bytes in the stream
Throws:
java.sql.SQLException - Feature not implemented for now.

setCharacterStream

public void setCharacterStream(java.lang.String parameterName,
                               java.io.Reader reader,
                               int length)
                        throws java.sql.SQLException
JDBC 3.0 Sets the designated parameter to the given Reader object, which is the given number of characters long.

Parameters:
parameterName - - the name of the parameter
reader - - the java.io.Reader object that contains the UNICODE data
length - - the number of characters in the stream
Throws:
java.sql.SQLException - Feature not implemented for now.

setObject

public void setObject(java.lang.String parameterName,
                      java.lang.Object x,
                      int targetSqlType,
                      int scale)
               throws java.sql.SQLException
JDBC 3.0 Sets the value of the designated parameter with the given object. The second argument must be an object type; for integral values, the java.lang equivalent objects should be used.

Parameters:
parameterName - - the name of the parameter
x - - the object containing the input parameter value
targetSqlType - - the SQL type (as defined in java.sql.Types) to be sent to the database. The scale argument may further qualify this type.
scale - - for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types, this is the number of digits after the decimal point. For all other types, this value will be ignored.
Throws:
java.sql.SQLException - Feature not implemented for now.

getObject

public java.lang.Object getObject(java.lang.String parameterName)
                           throws java.sql.SQLException
JDBC 3.0 Retrieves the value of a parameter as an Object in the java programming language.

Parameters:
parameterName - - the name of the parameter
Returns:
a java.lang.Object holding the OUT parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

getObject

public java.lang.Object getObject(java.lang.String parameterName,
                                  java.util.Map map)
                           throws java.sql.SQLException
JDBC 3.0 Returns an object representing the value of OUT parameter i and uses map for the custom mapping of the parameter value.

Parameters:
parameterName - - the name of the parameter
map - - the mapping from SQL type names to Java classes
Returns:
a java.lang.Object holding the OUT parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

setObject

public void setObject(java.lang.String parameterName,
                      java.lang.Object x,
                      int targetSqlType)
               throws java.sql.SQLException
JDBC 3.0 Sets the value of the designated parameter with the given object. This method is like the method setObject above, except that it assumes a scale of zero.

Parameters:
parameterName - - the name of the parameter
x - - the object containing the input parameter value
targetSqlType - - the SQL type (as defined in java.sql.Types) to be sent to the database.
Throws:
java.sql.SQLException - Feature not implemented for now.

setObject

public void setObject(java.lang.String parameterName,
                      java.lang.Object x)
               throws java.sql.SQLException
JDBC 3.0 Sets the value of the designated parameter with the given object. The second parameter must be of type Object; therefore, the java.lang equivalent objects should be used for built-in types.

Parameters:
parameterName - - the name of the parameter
x - - the object containing the input parameter value
Throws:
java.sql.SQLException - Feature not implemented for now.

setBigDecimal

public final void setBigDecimal(int parameterIndex,
                                java.math.BigDecimal x)
                         throws java.sql.SQLException
Set a parameter to a java.lang.BigDecimal value. The driver converts this to a SQL NUMERIC value when it sends it to the database.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
x - the parameter value
Throws:
java.sql.SQLException - thrown on failure.

getBigDecimal

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

Throws:
java.sql.SQLException - NoOutputParameters thrown.
See Also:
CallableStatement.getBigDecimal(int, int)

setObjectConvert

boolean setObjectConvert(int parameterIndex,
                         java.lang.Object x)
                   throws java.sql.SQLException
Allow explict setObject conversions by sub-classes for classes not supported by this variant. In this case handle BigDecimal.

Overrides:
setObjectConvert in class EmbedPreparedStatement
Returns:
true if the object was set successfully, false if no valid conversion exists.
Throws:
java.sql.SQLException - value could not be set.

getCharacterStream

public java.io.Reader getCharacterStream(int parameterIndex)
                                  throws java.sql.SQLException
Retrieves the value of the designated parameter as a java.io.Reader object in the Java programming language. Introduced in JDBC 4.0.

Parameters:
parameterIndex - the first parameter is 1, the second is 2, ...
Returns:
a java.io.Reader object that contains the parameter value; if the value is SQL NULL, the value returned is null in the Java programming language.
Throws:
java.sql.SQLException - if a database access error occurs or this method is called on a closed CallableStatement

getBinaryStream

private java.io.InputStream getBinaryStream(int parameterIndex)
                                     throws java.sql.SQLException
Get binary stream for a parameter.

Parameters:
parameterIndex - first parameter is 1, second is 2 etc.
Returns:
a stream for the binary parameter, or null.
Throws:
java.sql.SQLException - if a database access error occurs.

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

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