public class BrokeredPreparedStatement40 extends BrokeredPreparedStatement30
sql
control, resultSetConcurrency, resultSetHoldability, resultSetType
Constructor and Description |
---|
BrokeredPreparedStatement40(BrokeredStatementControl control,
java.lang.String sql,
java.lang.Object generatedKeys) |
Modifier and Type | Method and Description |
---|---|
boolean |
isPoolable()
Forwards to the real PreparedStatement.
|
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x)
Sets the designated parameter to the given input stream.
|
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x,
long length)
Sets the designated parameter to the given input stream, which will have
the specified number of bytes.
|
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x,
long length)
Sets the designated parameter to the given input stream, which will have
the specified number of bytes.
|
void |
setBlob(int parameterIndex,
java.io.InputStream inputStream)
Sets the designated parameter to a
InputStream object. |
void |
setBlob(int parameterIndex,
java.io.InputStream inputStream,
long length) |
void |
setCharacterStream(int parameterIndex,
java.io.Reader x,
long length)
Sets the designated parameter to the given Reader, which will have
the specified number of bytes.
|
void |
setClob(int parameterIndex,
java.io.Reader reader)
Sets the designated parameter to a
Reader object. |
void |
setClob(int parameterIndex,
java.io.Reader reader,
long length) |
void |
setNCharacterStream(int parameterIndex,
java.io.Reader value) |
void |
setNCharacterStream(int index,
java.io.Reader value,
long length) |
void |
setNClob(int index,
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 index,
java.lang.String value) |
void |
setPoolable(boolean poolable)
Forwards to the real PreparedStatement.
|
void |
setRowId(int parameterIndex,
java.sql.RowId x) |
void |
setSQLXML(int parameterIndex,
java.sql.SQLXML xmlObject) |
<T> T |
unwrap(java.lang.Class<T> interfaces)
Returns
this if this class implements the interface |
createDuplicateStatement, getParameterMetaData, setURL
addBatch, clearParameters, close, execute, executeQuery, executeUpdate, getMetaData, getPreparedStatement, getStatement, getVersionCounter, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setObject, setObject, setObject, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream
addBatch, cancel, checkIfClosed, clearBatch, clearWarnings, closeOnCompletion, controlCheck, createDuplicateStatement, 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, isCloseOnCompletion, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout, setStatementState, unableToUnwrap, wrapResultSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeLargeUpdate, setObject, setObject
addBatch, cancel, clearBatch, clearWarnings, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setQueryTimeout
public BrokeredPreparedStatement40(BrokeredStatementControl control, java.lang.String sql, java.lang.Object generatedKeys) throws java.sql.SQLException
java.sql.SQLException
public void setRowId(int parameterIndex, java.sql.RowId x) throws java.sql.SQLException
setRowId
in interface java.sql.PreparedStatement
setRowId
in class BrokeredPreparedStatement
java.sql.SQLException
public void setNString(int index, java.lang.String value) throws java.sql.SQLException
setNString
in interface java.sql.PreparedStatement
setNString
in class BrokeredPreparedStatement
java.sql.SQLException
public void setNCharacterStream(int parameterIndex, java.io.Reader value) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.PreparedStatement
setNCharacterStream
in class BrokeredPreparedStatement
java.sql.SQLException
public void setNCharacterStream(int index, java.io.Reader value, long length) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.PreparedStatement
setNCharacterStream
in class BrokeredPreparedStatement
java.sql.SQLException
public void setNClob(int index, java.sql.NClob value) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
setNClob
in class BrokeredPreparedStatement
java.sql.SQLException
public void setClob(int parameterIndex, java.io.Reader reader, long length) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
setClob
in class BrokeredPreparedStatement
java.sql.SQLException
public void setBlob(int parameterIndex, java.io.InputStream inputStream, long length) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
setBlob
in class BrokeredPreparedStatement
java.sql.SQLException
public final void setNClob(int parameterIndex, java.io.Reader reader) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
setNClob
in class BrokeredPreparedStatement
java.sql.SQLException
public void setNClob(int parameterIndex, java.io.Reader reader, long length) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
setNClob
in class BrokeredPreparedStatement
java.sql.SQLException
public void setSQLXML(int parameterIndex, java.sql.SQLXML xmlObject) throws java.sql.SQLException
setSQLXML
in interface java.sql.PreparedStatement
setSQLXML
in class BrokeredPreparedStatement
java.sql.SQLException
public <T> T unwrap(java.lang.Class<T> interfaces) throws java.sql.SQLException
this
if this class implements the interfaceunwrap
in interface java.sql.Wrapper
unwrap
in class BrokeredStatement
interfaces
- a Class defining an interfacejava.sql.SQLExption
- if no object if found that implements the
interfacejava.sql.SQLException
public boolean isPoolable() throws java.sql.SQLException
isPoolable
in interface java.sql.Statement
isPoolable
in class BrokeredStatement
java.sql.SQLException
- if the forwarding call fails.public void setPoolable(boolean poolable) throws java.sql.SQLException
setPoolable
in interface java.sql.Statement
setPoolable
in class BrokeredStatement
poolable
- the new value for the poolable hint.java.sql.SQLException
- if the forwarding call fails.public final void setAsciiStream(int parameterIndex, java.io.InputStream x) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
setAsciiStream
in class BrokeredPreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the Java input stream that contains the ASCII parameter valuejava.sql.SQLException
- if a database access error occurs or this method is
called on a closed PreparedStatement
public final void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
setAsciiStream
in class BrokeredPreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the java input stream which contains the ASCII parameter valuelength
- the number of bytes in the streamjava.sql.SQLException
- thrown on failure.public final void setBinaryStream(int parameterIndex, java.io.InputStream x, long length) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
setBinaryStream
in class BrokeredPreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the java input stream which contains the binary parameter valuelength
- the number of bytes in the streamjava.sql.SQLException
- thrown on failure.public final void setBlob(int parameterIndex, java.io.InputStream inputStream) throws java.sql.SQLException
InputStream
object.
This method differs from the setBinaryStream(int, InputStream)
method because it informs the driver that the parameter value
should be sent to the server as a BLOB
.setBlob
in interface java.sql.PreparedStatement
setBlob
in class BrokeredPreparedStatement
inputStream
- an object that contains the data to set the parameter
value to.java.sql.SQLException
- if a database access error occurs, this method is
called on a closed PreparedStatement
public final void setCharacterStream(int parameterIndex, java.io.Reader x, long length) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
setCharacterStream
in class BrokeredPreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the java Reader which contains the UNICODE valuelength
- the number of bytes in the streamjava.sql.SQLException
- thrown on failure.public final void setClob(int parameterIndex, java.io.Reader reader) throws java.sql.SQLException
Reader
object.
This method differs from the setCharacterStream(int,Reader)
method because it informs the driver that the parameter value should be
sent to the server as a CLOB
.setClob
in interface java.sql.PreparedStatement
setClob
in class BrokeredPreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...reader
- an object that contains the data to set the parameter
value to.java.sql.SQLException
- if a database access error occurs, this method is
called on a closed PreparedStatement