|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vortex.sql.vortexStatement vortex.sql.vortexPreparedStatement
public class vortexPreparedStatement
A SQL statement is pre-compiled and stored in a PreparedStatement object. This object can then be used to efficiently execute this statement multiple times.
Note: The setXXX methods for setting IN parameter values must specify types that are compatible with the defined SQL type of the input parameter. For instance, if the IN parameter has SQL type Integer then setInt should be used.
If arbitrary parameter type conversions are required then the setObject method should be used with a target SQL type.
Connection.prepareStatement(java.lang.String)
,
ResultSet
Field Summary |
---|
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()
Not supported by VORTEXjdbc. |
void |
clearParameters()
In general parameter values remain in force for repeated use of a Statement. |
boolean |
execute()
Some prepared statements return multiple results; the execute method handles these complex statements as well as the simpler form of statements handled by executeQuery and executeUpdate. |
java.sql.ResultSet |
executeQuery()
A prepared SQL query is executed and its ResultSet is returned. |
int |
executeUpdate()
Execute a SQL INSERT, UPDATE or DELETE statement. |
java.sql.ResultSetMetaData |
getMetaData()
Gets the number, types and properties of a ResultSet's columns. |
java.sql.ParameterMetaData |
getParameterMetaData()
Retrieves the number, types and properties of this PreparedStatement's parameters. |
void |
setArray(int paramIndex,
java.sql.Array x)
Not supported by VORTEXjdbc. |
void |
setAsciiStream(int paramIndex,
java.io.InputStream x)
Not supported by VORTEXjdbc. |
void |
setAsciiStream(int paramIndex,
java.io.InputStream x,
int len)
When a very large ASCII value is input to a LONGVARCHAR parameter it may be more practical to send it via a java.io.InputStream. |
void |
setAsciiStream(int paramIndex,
java.io.InputStream x,
long len)
Not supported by VORTEXjdbc. |
void |
setBigDecimal(int paramIndex,
java.math.BigDecimal x)
Set a parameter to a java.sql.Numeric value. |
void |
setBinaryStream(int paramIndex,
java.io.InputStream x)
Not supported by VORTEXjdbc. |
void |
setBinaryStream(int paramIndex,
java.io.InputStream x,
int len)
When a very large binary value is input to a LONGVARBINARY parameter it may be more practical to send it via a java.io.InputStream. |
void |
setBinaryStream(int paramIndex,
java.io.InputStream x,
long len)
Not supported by VORTEXjdbc. |
void |
setBinaryStream(int paramIndex,
java.io.Reader x)
Not supported by VORTEXjdbc. |
void |
setBlob(int paramIndex,
java.sql.Blob x)
Sets a BLOB parameter. |
void |
setBlob(int paramIndex,
java.io.InputStream x)
Not supported by VORTEXjdbc. |
void |
setBlob(int paramIndex,
java.io.InputStream x,
long len)
Not supported by VORTEXjdbc. |
void |
setBoolean(int paramIndex,
boolean x)
Set a parameter to a Java boolean value. |
void |
setByte(int paramIndex,
byte x)
Set a parameter to a Java byte value. |
void |
setBytes(int paramIndex,
byte[] x)
Set a parameter to a Java array of bytes. |
void |
setCharacterStream(int paramIndex,
java.io.Reader x)
Not supported by VORTEXjdbc. |
void |
setCharacterStream(int paramIndex,
java.io.Reader reader,
int len)
Not supported by VORTEXjdbc. |
void |
setCharacterStream(int paramIndex,
java.io.Reader reader,
long len)
Not supported by VORTEXjdbc. |
void |
setClob(int paramIndex,
java.sql.Clob x)
Sets a CLOB parameter. |
void |
setClob(int paramIndex,
java.io.Reader x)
Not supported by VORTEXjdbc. |
void |
setClob(int paramIndex,
java.io.Reader x,
long len)
Not supported by VORTEXjdbc. |
void |
setDate(int paramIndex,
java.sql.Date x)
Set a parameter to a java.sql.Date value. |
void |
setDate(int paramIndex,
java.sql.Date x,
java.util.Calendar cal)
Not supported by VORTEXjdbc. |
void |
setDouble(int paramIndex,
double x)
Set a parameter to a Java double value. |
void |
setFloat(int paramIndex,
float x)
Set a parameter to a Java float value. |
void |
setInt(int paramIndex,
int x)
Set a parameter to a Java int value. |
void |
setLong(int paramIndex,
long x)
Set a parameter to a Java long value. |
void |
setNCharacterStream(int paramIndex,
java.io.Reader x)
Not supported by VORTEXjdbc. |
void |
setNCharacterStream(int paramIndex,
java.io.Reader x,
long len)
Not supported by VORTEXjdbc. |
void |
setNClob(int paramIndex,
java.sql.NClob x)
Not supported by VORTEXjdbc. |
void |
setNClob(int paramIndex,
java.io.Reader x)
Not supported by VORTEXjdbc. |
void |
setNClob(int paramIndex,
java.io.Reader x,
long len)
Not supported by VORTEXjdbc. |
void |
setNString(int paramIndex,
java.lang.String x)
Not supported by VORTEXjdbc. |
void |
setNull(int paramIndex,
int sqlType)
Set a parameter to SQL NULL. |
void |
setNull(int paramIndex,
int sqlType,
java.lang.String typeName)
Not supported by VORTEXjdbc. |
void |
setObject(int paramIndex,
java.lang.Object x)
Set the value of a parameter using an object; use the java.lang equivalent objects for integral values. |
void |
setObject(int paramIndex,
java.lang.Object x,
int targetSqlType)
This method is like setObject above, but assumes scale of zero. |
void |
setObject(int paramIndex,
java.lang.Object x,
int targetSqlType,
int scale)
Set the value of a parameter using an object; use the java.lang equivalent objects for integral values. |
void |
setRef(int paramIndex,
java.sql.Ref x)
Not supported by VORTEXjdbc. |
void |
setRowId(int paramIndex,
java.sql.RowId x)
Not supported by VORTEXjdbc. |
void |
setShort(int paramIndex,
short x)
Set a parameter to a Java short value. |
void |
setSQLXML(int paramIndex,
java.sql.SQLXML x)
Not supported by VORTEXjdbc. |
void |
setString(int paramIndex,
java.lang.String x)
Set a parameter to a Java String value. |
void |
setTime(int paramIndex,
java.sql.Time x)
Set a parameter to a java.sql.Time value. |
void |
setTime(int paramIndex,
java.sql.Time x,
java.util.Calendar cal)
Not supported by VORTEXjdbc. |
void |
setTimestamp(int paramIndex,
java.sql.Timestamp x)
Set a parameter to a java.sql.Timestamp value. |
void |
setTimestamp(int paramIndex,
java.sql.Timestamp x,
java.util.Calendar cal)
Not supported by VORTEXjdbc. |
void |
setUnicodeStream(int paramIndex,
java.io.InputStream x,
int len)
When a very large UNICODE value is input to a LONGVARCHAR parameter it may be more practical to send it via a java.io.InputStream. |
void |
setURL(int paramIndex,
java.net.URL x)
Not supported by VORTEXjdbc. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Method Detail |
---|
public java.sql.ResultSet executeQuery() throws java.sql.SQLException
executeQuery
in interface java.sql.PreparedStatement
java.sql.SQLException
- Not usepublic int executeUpdate() throws java.sql.SQLException
executeUpdate
in interface java.sql.PreparedStatement
java.sql.SQLException
- thrown if DB actions fail.public void setNull(int paramIndex, int sqlType) throws java.sql.SQLException
Note: You must specify the parameter's SQL type.
setNull
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...sqlType
- SQL type code defined by java.sql.Types
java.sql.SQLException
- thrown if paramIndex out of rangepublic void setBoolean(int paramIndex, boolean x) throws java.sql.SQLException
setBoolean
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setByte(int paramIndex, byte x) throws java.sql.SQLException
setByte
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setShort(int paramIndex, short x) throws java.sql.SQLException
setShort
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setInt(int paramIndex, int x) throws java.sql.SQLException
setInt
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setLong(int paramIndex, long x) throws java.sql.SQLException
setLong
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setFloat(int paramIndex, float x) throws java.sql.SQLException
setFloat
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setDouble(int paramIndex, double x) throws java.sql.SQLException
setDouble
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setBigDecimal(int paramIndex, java.math.BigDecimal x) throws java.sql.SQLException
setBigDecimal
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setString(int paramIndex, java.lang.String x) throws java.sql.SQLException
setString
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setBytes(int paramIndex, byte[] x) throws java.sql.SQLException
setBytes
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setDate(int paramIndex, java.sql.Date x) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setTime(int paramIndex, java.sql.Time x) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setTimestamp(int paramIndex, java.sql.Timestamp x) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setAsciiStream(int paramIndex, java.io.InputStream x, int len) throws java.sql.SQLException
Note: this stream object can either be a standard Java stream object, or your own subclass that implements the standard interface.
setAsciiStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the java input stream which contains the ASCII parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setUnicodeStream(int paramIndex, java.io.InputStream x, int len) throws java.sql.SQLException
Note: this stream object can either be a standard Java stream object, or your own subclass that implements the standard interface.
setUnicodeStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the java input stream which contains the
UNICODE parameter value @param len the number of bytes in
the stream
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void setBinaryStream(int paramIndex, java.io.InputStream x, int len) throws java.sql.SQLException
Note: this stream object can either be a standard Java stream object, or your own subclass that implements the standard interface.
setBinaryStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the java input stream which contains the binary parameter valuelen
- the number of bytes in the stream
java.sql.SQLException
- thrown if paramIndex out of range or unable to
bind parameterpublic void clearParameters() throws java.sql.SQLException
clearParameters
in interface java.sql.PreparedStatement
java.sql.SQLException
- thrown if paramIndex out of rangepublic void setObject(int paramIndex, java.lang.Object x, int targetSqlType, int scale) throws java.sql.SQLException
The given Java object will be converted to the targetSqlType before being sent to the database.
Note that this method may be used to pass datatabase specific abstract data types, by using a Driver specific Java type and using a targetSqlType of java.sql.types.OTHER.
setObject
in interface java.sql.PreparedStatement
paramIndex
- The first parameter is 1, the second is 2, ...x
- The object containing the input parameter valuetargetSqlType
- 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. For all other
types this value will be ignored,
java.sql.SQLException
- if object is not supportedTypes
public void setObject(int paramIndex, java.lang.Object x, int targetSqlType) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
paramIndex
- The first parameter is 1, the second is 2, ...x
- The object containing the input parameter valuetargetSqlType
- The SQL type (as defined in java.sql.Types) to be
sent to the database.
java.sql.SQLException
- if object not supportedpublic void setObject(int paramIndex, java.lang.Object x) throws java.sql.SQLException
The JDBC specification specifies a standard mapping from Java Object types to SQL types. The given argument java object will be converted to the corresponding SQL type before being sent to the database.
Note that this method may be used to pass database specific abstract data types, by using a Driver specific Java type.
setObject
in interface java.sql.PreparedStatement
paramIndex
- The first parameter is 1, the second is 2, ...x
- The object containing the input parameter value
java.sql.SQLException
- if object is not supportedpublic boolean execute() throws java.sql.SQLException
execute
in interface java.sql.PreparedStatement
java.sql.SQLException
- thrown on database errorsStatement.execute(java.lang.String)
public void addBatch() throws java.sql.SQLException
Not supported by VORTEXjdbc. Adds a set of parameters to the batch.
addBatch
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ParameterMetaData getParameterMetaData() throws java.sql.SQLException
getParameterMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int paramIndex, java.io.Reader reader, int len) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...reader
- the java reader which contains the UNICODE datalen
- the number of characters in the stream
java.sql.SQLException
public void setRef(int paramIndex, java.sql.Ref x) throws java.sql.SQLException
setRef
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- an object representing data of an SQL REF Type
java.sql.SQLException
public void setBlob(int paramIndex, java.sql.Blob x) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- an object representing a BLOB
java.sql.SQLException
public void setClob(int paramIndex, java.sql.Clob x) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- an object representing a CLOB
java.sql.SQLException
public void setArray(int paramIndex, java.sql.Array x) throws java.sql.SQLException
setArray
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- an object representing an SQL array
java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDate(int paramIndex, java.sql.Date x, java.util.Calendar cal) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuecal
- the Calendar object the driver will use to construct the date
java.sql.SQLException
public void setTime(int paramIndex, java.sql.Time x, java.util.Calendar cal) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuecal
- the Calendar object the driver will use to construct the time
java.sql.SQLException
public void setTimestamp(int paramIndex, java.sql.Timestamp x, java.util.Calendar cal) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuecal
- the Calendar object the driver will use to construct the
timestamp
java.sql.SQLException
public void setNull(int paramIndex, int sqlType, java.lang.String typeName) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...sqlType
- a value from java.sql.TypestypeName
- the fully-qualified name of an SQL user-named type, ignored
if the parameter is not a user-named type or REF
java.sql.SQLException
public void setURL(int paramIndex, java.net.URL x) throws java.sql.SQLException
setURL
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- URL value
java.sql.SQLException
public void setNClob(int paramIndex, java.sql.NClob x) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
paramIndex
- - of the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- - if paramIndex does not correspond to a parameter marker in the SQL statement; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs; or this method is called on a closed PreparedStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setNClob(int paramIndex, java.io.Reader x) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
paramIndex
- - of the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- - if paramIndex does not correspond to a parameter marker in the SQL statement; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs; or this method is called on a closed PreparedStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setNClob(int paramIndex, java.io.Reader x, long len) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
paramIndex
- - of the first parameter is 1, the second is 2, ...x
- the parameter valuelen
- the number of characters in the stream
java.sql.SQLException
- - if paramIndex does not correspond to a parameter marker in the SQL statement; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs; or this method is called on a closed PreparedStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setBlob(int paramIndex, java.io.InputStream x, long len) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
paramIndex
- - index of the first parameter is 1, the second is 2, ...x
- An InputStream object that contains the data.len
- the number of bytes in the parameter data.
java.sql.SQLException
- - if paramIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs; this method is called on a closed PreparedStatement; if the length specified is less than zero or if the number of bytes in the inputstream does not match the specfied length.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setBlob(int paramIndex, java.io.InputStream x) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
paramIndex
- - index of the first parameter is 1, the second is 2, ...x
- An InputStream object that contains the data.
java.sql.SQLException
- - if paramIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs; this method is called on a closed PreparedStatement; if the length specified is less than zero or if the number of bytes in the inputstream does not match the specfied length.SQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setClob(int paramIndex, java.io.Reader x) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
paramIndex
- - of the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- - if paramIndex does not correspond to a parameter marker in the SQL statement; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs; or this method is called on a closed PreparedStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setClob(int paramIndex, java.io.Reader x, long len) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
paramIndex
- - of the first parameter is 1, the second is 2, ...x
- the parameter valuelen
- the number of bytes in the parameter data.
java.sql.SQLException
- - if paramIndex does not correspond to a parameter marker in the SQL statement; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs; or this method is called on a closed PreparedStatementSQLFeatureNotSupportedException - if the JDBC driver does not support this methodpublic void setNCharacterStream(int paramIndex, java.io.Reader x) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
public void setNCharacterStream(int paramIndex, java.io.Reader x, long len) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuelen
- the number of bytes in the parameter data.
java.sql.SQLException
public void setCharacterStream(int paramIndex, java.io.Reader x) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
public void setBinaryStream(int paramIndex, java.io.Reader x) throws java.sql.SQLException
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
public void setBinaryStream(int paramIndex, java.io.InputStream x) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
public void setBinaryStream(int paramIndex, java.io.InputStream x, long len) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuelen
- the number of bytes in the parameter data.
java.sql.SQLException
public void setAsciiStream(int paramIndex, java.io.InputStream x) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
public void setAsciiStream(int paramIndex, java.io.InputStream x, long len) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuelen
- the number of bytes in the parameter data.
java.sql.SQLException
public void setCharacterStream(int paramIndex, java.io.Reader reader, long len) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
paramIndex
- the first parameter is 1, the second is 2, ...reader
- the java reader which contains the UNICODE datalen
- the number of characters in the stream
java.sql.SQLException
public void setSQLXML(int paramIndex, java.sql.SQLXML x) throws java.sql.SQLException
setSQLXML
in interface java.sql.PreparedStatement
paramIndex
- index of the first parameter is 1, the second is 2, ...x
- a SQLXML object that maps an SQL XML value
java.sql.SQLException
- if paramIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs; this method is called on a closed PreparedStatement or the java.xml.transform.Result, Writer or OutputStream has not been closed for the SQLXML object
java.sql.SQLFeatureNotSupportedException
- if the JDBC driver does not support this methodpublic void setNString(int paramIndex, java.lang.String x) throws java.sql.SQLException
setNString
in interface java.sql.PreparedStatement
paramIndex
- index of the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- - if paramIndex does not correspond to a parameter marker in the SQL statement; if the driver does not support national character sets; if the driver can detect that a data conversion error could occur; if a database access error occurs; or this method is called on a closed PreparedStatement
java.sql.SQLFeatureNotSupportedException
- if the JDBC driver does not support this methodpublic void setRowId(int paramIndex, java.sql.RowId x) throws java.sql.SQLException
setRowId
in interface java.sql.PreparedStatement
paramIndex
- index of the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- - if paramIndex does not correspond to a parameter marker in the SQL statement; if the driver can detect that a data conversion error could occur; if a database access error occurs; or this method is called on a closed PreparedStatement
java.sql.SQLFeatureNotSupportedException
- if the JDBC driver does not support this method
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |