com.metamatrix.jdbc
Class MMPreparedStatement

java.lang.Object
  extended by com.metamatrix.jdbc.WrapperImpl
      extended by com.metamatrix.jdbc.MMStatement
          extended by com.metamatrix.jdbc.MMPreparedStatement
All Implemented Interfaces:
java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper
Direct Known Subclasses:
MMCallableStatement

public class MMPreparedStatement
extends MMStatement
implements java.sql.PreparedStatement

Instances of PreparedStatement contain a SQL statement that has already been compiled. The SQL statement contained in a PreparedStatement object may have one or more IN parameters. An IN parameter is a parameter whose value is not specified when a SQL statement is created. Instead the statement has a placeholder for each IN parameter.

The MMPreparedStatement object wraps the server's PreparedStatement object. The methods in this class are used to set the IN parameters on a server's preparedstatement object.


Field Summary
protected  java.util.List<java.util.List<java.lang.Object>> batchParameterList
           
protected  java.lang.String prepareSql
           
 
Fields inherited from class com.metamatrix.jdbc.MMStatement
CANCELLED, commandStatus, currentRequestID, NO_TIMEOUT, outParamIndexMap, queryTimeout, resultSet, TIMED_OUT, updateCounts
 
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
 void addBatch()
          Adds a set of parameters to this PreparedStatement object's list of commands to be sent to the database for execution as a batch.
 void addBatch(java.lang.String sql)
          Adds sql to this statement object's current list of commands.
 void clearBatch()
          Makes the set of commands in the current batch empty.
 void clearParameters()
          Clears the values set for the PreparedStatement object's IN parameters and releases the resources used by those values.
protected  RequestMessage createRequestMessage(java.lang.String[] commands, boolean isBatchedCommand, java.lang.Boolean requiresResultSet)
           
 boolean execute()
           
 boolean execute(java.lang.String sql)
           
 int[] executeBatch()
           
 java.sql.ResultSet executeQuery()
           
 java.sql.ResultSet executeQuery(java.lang.String sql)
           
 int executeUpdate()
           
 int executeUpdate(java.lang.String sql)
           
 java.sql.ResultSetMetaData getMetaData()
          Retreives a ResultSetMetaData object with information about the numbers, types, and properties of columns in the ResultSet object that will be returned when this preparedstatement object is executed.
 java.sql.ParameterMetaData getParameterMetaData()
           
 void setArray(int parameterIndex, java.sql.Array x)
           
 void setAsciiStream(int parameterIndex, java.io.InputStream x)
           
 void setAsciiStream(int parameterIndex, java.io.InputStream in, int length)
          Sets the parameter in position parameterIndex to the input stream object fin, from which length bytes will be read and sent to metamatrix.
 void setAsciiStream(int parameterIndex, java.io.InputStream x, long length)
           
 void setBigDecimal(int parameterIndex, java.math.BigDecimal value)
          Sets the IN parameter at paramaterIndex to a BigDecimal object.
 void setBinaryStream(int parameterIndex, java.io.InputStream x)
           
 void setBinaryStream(int parameterIndex, java.io.InputStream in, int length)
          Sets the parameter in position parameterIndex to the input stream object fin, from which length bytes will be read and sent to metamatrix.
 void setBinaryStream(int parameterIndex, java.io.InputStream x, long length)
           
 void setBlob(int parameterIndex, java.sql.Blob x)
          Sets the parameter in position parameterIndex to a Blob object.
 void setBlob(int parameterIndex, java.io.InputStream inputStream)
           
 void setBlob(int parameterIndex, java.io.InputStream inputStream, long length)
           
 void setBoolean(int parameterIndex, boolean value)
          Sets parameter number parameterIndex to b, a Java boolean value.
 void setByte(int parameterIndex, byte value)
          Sets parameter number parameterIndex to x, a Java byte value.
 void setBytes(int parameterIndex, byte[] bytes)
          Sets parameter number parameterIndex to x[], a Java array of bytes.
 void setCharacterStream(int parameterIndex, java.io.Reader reader)
           
 void setCharacterStream(int parameterIndex, java.io.Reader reader, int length)
           
 void setCharacterStream(int parameterIndex, java.io.Reader reader, long length)
           
 void setClob(int parameterIndex, java.sql.Clob x)
          Sets the parameter in position parameterIndex to a Clob object.
 void setClob(int parameterIndex, java.io.Reader reader)
           
 void setClob(int parameterIndex, java.io.Reader reader, long length)
           
 void setDate(int parameterIndex, java.sql.Date value)
          Sets parameter number parameterIndex to x, a java.sql.Date object.
 void setDate(int parameterIndex, java.sql.Date x, java.util.Calendar cal)
          Sets parameter number parameterIndex to x, a java.sql.Date object.
 void setDouble(int parameterIndex, double value)
          Sets parameter number parameterIndex to x, a double value.
 void setFloat(int parameterIndex, float value)
          Sets parameter number parameterIndex to value, a float value.
 void setInt(int parameterIndex, int value)
          Sets parameter number parameterIndex to value, a int value.
 void setLong(int parameterIndex, long value)
          Sets parameter number parameterIndex to x, a long value.
 void setNCharacterStream(int parameterIndex, java.io.Reader value)
           
 void setNCharacterStream(int parameterIndex, java.io.Reader value, long length)
           
 void setNClob(int parameterIndex, java.sql.NClob value)
           
 void setNClob(int parameterIndex, java.io.Reader reader)
           
 void setNClob(int parameterIndex, java.io.Reader reader, long length)
           
 void setNString(int parameterIndex, java.lang.String value)
           
 void setNull(int parameterIndex, int jdbcType)
          Sets parameter number parameterIndex to a null value.
 void setNull(int parameterIndex, int jdbcType, java.lang.String typeName)
          Sets parameter number parameterIndex to a null value.
 void setObject(int parameterIndex, java.lang.Object value)
          Sets parameter number parameterIndex to an object value
 void setObject(int parameterIndex, java.lang.Object value, int targetJdbcType)
           
 void setObject(int parameterIndex, java.lang.Object value, int targetJdbcType, int scale)
          Sets parameter number parameterIndex to an object value
 void setRef(int parameterIndex, java.sql.Ref x)
           
 void setRowId(int parameterIndex, java.sql.RowId x)
           
 void setShort(int parameterIndex, short value)
          Sets parameter number parameterIndex to x, a short value.
 void setSQLXML(int parameterIndex, java.sql.SQLXML xmlObject)
           
 void setString(int parameterIndex, java.lang.String value)
          Sets parameter number parameterIndex to x, a String value.
 void setTime(int parameterIndex, java.sql.Time value)
          Sets parameter number parameterIndex to x, a java.sql.Time object.
 void setTime(int parameterIndex, java.sql.Time x, java.util.Calendar cal)
          Sets parameter number parameterIndex to x, a java.sql.Time object.
 void setTimestamp(int parameterIndex, java.sql.Timestamp value)
          Sets parameter number parameterIndex to x, a java.sql.Timestamp object.
 void setTimestamp(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal)
          Sets parameter number parameterIndex to x, a java.sql.Timestamp object.
 void setUnicodeStream(int parameterIndex, java.io.InputStream x, int length)
           
 void setURL(int parameterIndex, java.net.URL x)
          Sets the designated parameter to the given java.net.URL value.
 
Methods inherited from class com.metamatrix.jdbc.MMStatement
accumulateWarnings, attachStylesheet, cancel, cancelRequest, checkStatement, clearStylesheet, clearWarnings, close, copyPropertiesToRequest, createResultSet, execute, execute, execute, executeSql, executeUpdate, executeUpdate, executeUpdate, getAnnotations, getConnection, getConnectionProperties, getDebugLog, getDQP, getExecutionProperty, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMMConnection, getMoreResults, getMoreResults, getPlanDescription, getQueryTimeout, getRequestIdentifier, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getServerTimeZone, getUpdateCount, getWarnings, hasResultSet, isClosed, isPoolable, resetExecutionState, sendRequestMessageAndWait, setAnalysisInfo, setCursorName, setEscapeProcessing, setExecutionProperty, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPartialResults, setPayload, setPoolable, setQueryTimeout, timeoutOccurred
 
Methods inherited from class com.metamatrix.jdbc.WrapperImpl
isWrapperFor, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Statement
cancel, clearWarnings, close, execute, execute, execute, 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
 

Field Detail

prepareSql

protected java.lang.String prepareSql

batchParameterList

protected java.util.List<java.util.List<java.lang.Object>> batchParameterList
Method Detail

addBatch

public void addBatch()
              throws java.sql.SQLException

Adds a set of parameters to this PreparedStatement object's list of commands to be sent to the database for execution as a batch.

Specified by:
addBatch in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException - if there is an error

clearBatch

public void clearBatch()
                throws java.sql.SQLException
Makes the set of commands in the current batch empty.

Specified by:
clearBatch in interface java.sql.Statement
Overrides:
clearBatch in class MMStatement
Throws:
java.sql.SQLException - if a database access error occurs or the driver does not support batch statements

clearParameters

public void clearParameters()
                     throws java.sql.SQLException

Clears the values set for the PreparedStatement object's IN parameters and releases the resources used by those values. In general, parameter values remain in force for repeated use of statement.

Specified by:
clearParameters in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException - if there is an error while clearing params

execute

public boolean execute(java.lang.String sql)
                throws java.sql.SQLException
Specified by:
execute in interface java.sql.Statement
Overrides:
execute in class MMStatement
Throws:
java.sql.SQLException

executeQuery

public java.sql.ResultSet executeQuery(java.lang.String sql)
                                throws java.sql.SQLException
Specified by:
executeQuery in interface java.sql.Statement
Overrides:
executeQuery in class MMStatement
Throws:
java.sql.SQLException

executeUpdate

public int executeUpdate(java.lang.String sql)
                  throws java.sql.SQLException
Specified by:
executeUpdate in interface java.sql.Statement
Overrides:
executeUpdate in class MMStatement
Throws:
java.sql.SQLException

addBatch

public void addBatch(java.lang.String sql)
              throws java.sql.SQLException
Description copied from class: MMStatement
Adds sql to this statement object's current list of commands.

Specified by:
addBatch in interface java.sql.Statement
Overrides:
addBatch in class MMStatement
Parameters:
sql - statement to be added to the batch
Throws:
java.sql.SQLException

execute

public boolean execute()
                throws java.sql.SQLException
Specified by:
execute in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

executeBatch

public int[] executeBatch()
                   throws java.sql.SQLException
Specified by:
executeBatch in interface java.sql.Statement
Overrides:
executeBatch in class MMStatement
Throws:
java.sql.SQLException

executeQuery

public java.sql.ResultSet executeQuery()
                                throws java.sql.SQLException
Specified by:
executeQuery in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

executeUpdate

public int executeUpdate()
                  throws java.sql.SQLException
Specified by:
executeUpdate in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

createRequestMessage

protected RequestMessage createRequestMessage(java.lang.String[] commands,
                                              boolean isBatchedCommand,
                                              java.lang.Boolean requiresResultSet)
Overrides:
createRequestMessage in class MMStatement

getMetaData

public java.sql.ResultSetMetaData getMetaData()
                                       throws java.sql.SQLException

Retreives a ResultSetMetaData object with information about the numbers, types, and properties of columns in the ResultSet object that will be returned when this preparedstatement object is executed.

Specified by:
getMetaData in interface java.sql.PreparedStatement
Returns:
ResultSetMetaData object
Throws:
SQLException, - currently there is no means of getting results metadata before getting results.
java.sql.SQLException

setAsciiStream

public void setAsciiStream(int parameterIndex,
                           java.io.InputStream in,
                           int length)
                    throws java.sql.SQLException

Sets the parameter in position parameterIndex to the input stream object fin, from which length bytes will be read and sent to metamatrix.

Specified by:
setAsciiStream in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
in - input stream in ASCII to which the parameter value is to be set.
length, - number of bytes to read from the stream
Throws:
java.sql.SQLException

setBigDecimal

public void setBigDecimal(int parameterIndex,
                          java.math.BigDecimal value)
                   throws java.sql.SQLException

Sets the IN parameter at paramaterIndex to a BigDecimal object. The parameter type is set to NUMERIC

Specified by:
setBigDecimal in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
BigDecimal - object to which the parameter value is to be set.
Throws:
SQLException, - should not occur
java.sql.SQLException

setBinaryStream

public void setBinaryStream(int parameterIndex,
                            java.io.InputStream in,
                            int length)
                     throws java.sql.SQLException

Sets the parameter in position parameterIndex to the input stream object fin, from which length bytes will be read and sent to metamatrix.

Specified by:
setBinaryStream in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
input - stream in binary to which the parameter value is to be set.
length, - number of bytes to read from the stream
Throws:
java.sql.SQLException

setBlob

public void setBlob(int parameterIndex,
                    java.sql.Blob x)
             throws java.sql.SQLException

Sets the parameter in position parameterIndex to a Blob object.

Specified by:
setBlob in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
Blob - object to which the parameter value is to be set.
Throws:
java.sql.SQLException - if parameter type/datatype do not match

setBoolean

public void setBoolean(int parameterIndex,
                       boolean value)
                throws java.sql.SQLException

Sets parameter number parameterIndex to b, a Java boolean value. The parameter type is set to BIT

Specified by:
setBoolean in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
boolean - value to which the parameter value is to be set.
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setByte

public void setByte(int parameterIndex,
                    byte value)
             throws java.sql.SQLException

Sets parameter number parameterIndex to x, a Java byte value. The parameter type is set to TINYINT

Specified by:
setByte in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
byte - value to which the parameter value is to be set.
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setBytes

public void setBytes(int parameterIndex,
                     byte[] bytes)
              throws java.sql.SQLException

Sets parameter number parameterIndex to x[], a Java array of bytes.

Specified by:
setBytes in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
bytes - array to which the parameter value is to be set.
Throws:
java.sql.SQLException

setCharacterStream

public void setCharacterStream(int parameterIndex,
                               java.io.Reader reader,
                               int length)
                        throws java.sql.SQLException
Specified by:
setCharacterStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setClob

public void setClob(int parameterIndex,
                    java.sql.Clob x)
             throws java.sql.SQLException

Sets the parameter in position parameterIndex to a Clob object.

Specified by:
setClob in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
Clob - object to which the parameter value is to be set.
Throws:
java.sql.SQLException - if parameter type/datatype do not match.

setDate

public void setDate(int parameterIndex,
                    java.sql.Date value)
             throws java.sql.SQLException

Sets parameter number parameterIndex to x, a java.sql.Date object. The parameter type is set to DATE

Specified by:
setDate in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
Date - object to which the parameter value is to be set.
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setDate

public void setDate(int parameterIndex,
                    java.sql.Date x,
                    java.util.Calendar cal)
             throws java.sql.SQLException

Sets parameter number parameterIndex to x, a java.sql.Date object. The parameter type is set to DATE

Specified by:
setDate in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
Date - object to which the parameter value is to be set.
Calendar - object to constrct date(useful to get include timezone info)
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setDouble

public void setDouble(int parameterIndex,
                      double value)
               throws java.sql.SQLException

Sets parameter number parameterIndex to x, a double value. The parameter type is set to DOUBLE

Specified by:
setDouble in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
double - value to which the parameter value is to be set.
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setFloat

public void setFloat(int parameterIndex,
                     float value)
              throws java.sql.SQLException

Sets parameter number parameterIndex to value, a float value. The parameter type is set to FLOAT

Specified by:
setFloat in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
float - value to which the parameter value is to be set.
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setInt

public void setInt(int parameterIndex,
                   int value)
            throws java.sql.SQLException

Sets parameter number parameterIndex to value, a int value. The parameter type is set to INTEGER

Specified by:
setInt in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
int - value to which the parameter value is to be set.
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setLong

public void setLong(int parameterIndex,
                    long value)
             throws java.sql.SQLException

Sets parameter number parameterIndex to x, a long value. The parameter type is set to BIGINT

Specified by:
setLong in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
long - value to which the parameter value is to be set.
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setNull

public void setNull(int parameterIndex,
                    int jdbcType)
             throws java.sql.SQLException

Sets parameter number parameterIndex to a null value.

Specified by:
setNull in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
jdbc - type of the parameter whose value is to be set to null
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setNull

public void setNull(int parameterIndex,
                    int jdbcType,
                    java.lang.String typeName)
             throws java.sql.SQLException

Sets parameter number parameterIndex to a null value.

Specified by:
setNull in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
jdbc - type of the parameter whose value is to be set to null
fully - qualifies typename of the parameter being set.
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setObject

public void setObject(int parameterIndex,
                      java.lang.Object value,
                      int targetJdbcType,
                      int scale)
               throws java.sql.SQLException

Sets parameter number parameterIndex to an object value

Specified by:
setObject in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
an - object value to which the parameter value is to be set.
int - value giving the JDBC type to conver the object to
int - value giving the scale to be set if the type is DECIMAL or NUMERIC
Throws:
SQLException, - if there is an error setting the parameter value
java.sql.SQLException

setObject

public void setObject(int parameterIndex,
                      java.lang.Object value,
                      int targetJdbcType)
               throws java.sql.SQLException
Specified by:
setObject in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setObject

public void setObject(int parameterIndex,
                      java.lang.Object value)
               throws java.sql.SQLException

Sets parameter number parameterIndex to an object value

Specified by:
setObject in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
an - object value to which the parameter value is to be set.
Throws:
SQLException, - if there is an error setting the parameter value
java.sql.SQLException

setShort

public void setShort(int parameterIndex,
                     short value)
              throws java.sql.SQLException

Sets parameter number parameterIndex to x, a short value. The parameter type is set to TINYINT

Specified by:
setShort in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
short - value to which the parameter value is to be set.
Throws:
SQLException, - if there is an error setting the parameter value
java.sql.SQLException

setString

public void setString(int parameterIndex,
                      java.lang.String value)
               throws java.sql.SQLException

Sets parameter number parameterIndex to x, a String value. The parameter type is set to VARCHAR

Specified by:
setString in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
String - object to which the parameter value is to be set.
Throws:
java.sql.SQLException

setTime

public void setTime(int parameterIndex,
                    java.sql.Time value)
             throws java.sql.SQLException

Sets parameter number parameterIndex to x, a java.sql.Time object. The parameter type is set to TIME

Specified by:
setTime in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
Time - object to which the parameter value is to be set.
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setTime

public void setTime(int parameterIndex,
                    java.sql.Time x,
                    java.util.Calendar cal)
             throws java.sql.SQLException

Sets parameter number parameterIndex to x, a java.sql.Time object. The parameter type is set to TIME

Specified by:
setTime in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
Time - object to which the parameter value is to be set.
Calendar - object to constrct Time(useful to get include timezone info)
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setTimestamp

public void setTimestamp(int parameterIndex,
                         java.sql.Timestamp value)
                  throws java.sql.SQLException

Sets parameter number parameterIndex to x, a java.sql.Timestamp object. The parameter type is set to TIMESTAMP

Specified by:
setTimestamp in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
Timestamp - object to which the parameter value is to be set.
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setTimestamp

public void setTimestamp(int parameterIndex,
                         java.sql.Timestamp x,
                         java.util.Calendar cal)
                  throws java.sql.SQLException

Sets parameter number parameterIndex to x, a java.sql.Timestamp object. The parameter type is set to TIMESTAMP

Specified by:
setTimestamp in interface java.sql.PreparedStatement
Parameters:
parameterIndex - of the parameter whose value is to be set
Timestamp - object to which the parameter value is to be set.
Calendar - object to constrct timestamp(useful to get include timezone info)
Throws:
SQLException, - if parameter type/datatype do not match
java.sql.SQLException

setURL

public void setURL(int parameterIndex,
                   java.net.URL x)
            throws java.sql.SQLException
Sets the designated parameter to the given java.net.URL value. The driver converts this to an SQL DATALINK value when it sends it to the database.

Specified by:
setURL in interface java.sql.PreparedStatement
Parameters:
parameter - int index
x - URL to be set
Throws:
java.sql.SQLException

getParameterMetaData

public java.sql.ParameterMetaData getParameterMetaData()
                                                throws java.sql.SQLException
Specified by:
getParameterMetaData 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

setArray

public void setArray(int parameterIndex,
                     java.sql.Array x)
              throws java.sql.SQLException
Specified by:
setArray in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setAsciiStream

public void setAsciiStream(int parameterIndex,
                           java.io.InputStream x)
                    throws java.sql.SQLException
Specified by:
setAsciiStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setAsciiStream

public void setAsciiStream(int parameterIndex,
                           java.io.InputStream x,
                           long length)
                    throws java.sql.SQLException
Specified by:
setAsciiStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setBinaryStream

public void setBinaryStream(int parameterIndex,
                            java.io.InputStream x)
                     throws java.sql.SQLException
Specified by:
setBinaryStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setBinaryStream

public void setBinaryStream(int parameterIndex,
                            java.io.InputStream x,
                            long length)
                     throws java.sql.SQLException
Specified by:
setBinaryStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setBlob

public void setBlob(int parameterIndex,
                    java.io.InputStream inputStream)
             throws java.sql.SQLException
Specified by:
setBlob in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setBlob

public void setBlob(int parameterIndex,
                    java.io.InputStream inputStream,
                    long length)
             throws java.sql.SQLException
Specified by:
setBlob in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setCharacterStream

public void setCharacterStream(int parameterIndex,
                               java.io.Reader reader)
                        throws java.sql.SQLException
Specified by:
setCharacterStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setCharacterStream

public void setCharacterStream(int parameterIndex,
                               java.io.Reader reader,
                               long length)
                        throws java.sql.SQLException
Specified by:
setCharacterStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setClob

public void setClob(int parameterIndex,
                    java.io.Reader reader)
             throws java.sql.SQLException
Specified by:
setClob in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setClob

public void setClob(int parameterIndex,
                    java.io.Reader reader,
                    long length)
             throws java.sql.SQLException
Specified by:
setClob 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 parameterIndex,
                                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 parameterIndex,
                     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

setNString

public void setNString(int parameterIndex,
                       java.lang.String value)
                throws java.sql.SQLException
Specified by:
setNString in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setRef

public void setRef(int parameterIndex,
                   java.sql.Ref x)
            throws java.sql.SQLException
Specified by:
setRef in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setRowId

public void setRowId(int parameterIndex,
                     java.sql.RowId x)
              throws java.sql.SQLException
Specified by:
setRowId in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

setUnicodeStream

public void setUnicodeStream(int parameterIndex,
                             java.io.InputStream x,
                             int length)
                      throws java.sql.SQLException
Specified by:
setUnicodeStream in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException


Copyright © 2009. All Rights Reserved.