org.apache.derby.impl.jdbc
Class EmbedPreparedStatement20

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.EmbedPreparedStatement20
All Implemented Interfaces:
java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper, EnginePreparedStatement, EngineStatement
Direct Known Subclasses:
EmbedPreparedStatement30

public abstract class EmbedPreparedStatement20
extends EmbedPreparedStatement

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

Supports

See Also:
EmbedPreparedStatement

Field Summary
 
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
EmbedPreparedStatement20(EmbedConnection conn, java.lang.String sql, boolean forMetaData, int resultSetType, int resultSetConcurrency, int resultSetHoldability, int autoGeneratedKeys, int[] columnIndexes, java.lang.String[] columnNames)
           
 
Method Summary
 void setArray(int i, java.sql.Array x)
          JDBC 2.0 Set an Array parameter.
 void setBigDecimal(int parameterIndex, java.math.BigDecimal x)
          Set a parameter to a java.lang.BigDecimal value.
(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.
 
Methods inherited from class org.apache.derby.impl.jdbc.EmbedPreparedStatement
addBatch, addBatch, clearParameters, closeActions, dataTypeConversion, execute, execute, execute, execute, execute, executeBatchElement, executeQuery, executeQuery, executeStatement, 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, checkRequiresCallableStatement, 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.PreparedStatement
getParameterMetaData, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setRowId, setSQLXML
 
Methods inherited from interface java.sql.Statement
cancel, clearBatch, clearWarnings, close, executeBatch, 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

EmbedPreparedStatement20

public EmbedPreparedStatement20(EmbedConnection conn,
                                java.lang.String sql,
                                boolean forMetaData,
                                int resultSetType,
                                int resultSetConcurrency,
                                int resultSetHoldability,
                                int autoGeneratedKeys,
                                int[] columnIndexes,
                                java.lang.String[] columnNames)
                         throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

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.

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.

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.

Built on Thu 2010-12-23 20:49:13+0000, from revision ???

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