|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mysql.jdbc.StatementImpl
com.mysql.jdbc.PreparedStatement
com.mysql.jdbc.ServerPreparedStatement
com.mysql.jdbc.JDBC4ServerPreparedStatement
public class JDBC4ServerPreparedStatement
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.mysql.jdbc.ServerPreparedStatement |
---|
ServerPreparedStatement.BatchedBindValues, ServerPreparedStatement.BindValue |
Nested classes/interfaces inherited from class com.mysql.jdbc.PreparedStatement |
---|
PreparedStatement.BatchParams, PreparedStatement.EmulatedPreparedStatementBindings, PreparedStatement.EndPoint, PreparedStatement.ParseInfo |
Nested classes/interfaces inherited from class com.mysql.jdbc.StatementImpl |
---|
StatementImpl.CancelTask |
Field Summary |
---|
Fields inherited from class com.mysql.jdbc.ServerPreparedStatement |
---|
BLOB_STREAM_READ_BUF_SIZE, isCached |
Fields inherited from class com.mysql.jdbc.PreparedStatement |
---|
batchedValuesClause, batchHasPlainStatements, firstCharOfStmt, hasLimitClause, isLoadDataQuery, numberOfExecutions, originalSql, parameterCount, parameterMetaData, parameterTypes, useTrueBoolean, usingAnsiMode |
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 | |
---|---|
JDBC4ServerPreparedStatement(ConnectionImpl conn,
java.lang.String sql,
java.lang.String catalog,
int resultSetType,
int resultSetConcurrency)
|
Method Summary | |
---|---|
void |
setNCharacterStream(int parameterIndex,
java.io.Reader reader,
long length)
JDBC 2.0 When a very large UNICODE value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.Reader. |
void |
setNClob(int parameterIndex,
NClob x)
|
void |
setNClob(int parameterIndex,
java.io.Reader reader,
long length)
JDBC 4.0 Set a NCLOB parameter. |
void |
setNString(int parameterIndex,
java.lang.String x)
Set a parameter to a Java String value. |
void |
setRowId(int parameterIndex,
RowId x)
|
void |
setSQLXML(int parameterIndex,
SQLXML xmlObject)
|
Methods inherited from class com.mysql.jdbc.ServerPreparedStatement |
---|
addBatch, asSql, checkClosed, clearParameters, close, executeBatch, executeInternal, fillSendPacket, fillSendPacket, getBinding, getBytes, getInstance, getMetaData, getParameterMetaData, getServerStatementId, isNull, realClose, rePrepare, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setClosed, setDate, setDate, setDouble, setFloat, setInt, setLong, setNull, setNull, setRef, setShort, setString, setTime, setTime, setTimeInternal, setTimestamp, setTimestamp, setTimestampInternal, setType, setUnicodeStream, setURL, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.sql.Statement |
---|
cancel, clearWarnings, execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout |
Constructor Detail |
---|
public JDBC4ServerPreparedStatement(ConnectionImpl conn, java.lang.String sql, java.lang.String catalog, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public void setNCharacterStream(int parameterIndex, java.io.Reader reader, long length) throws java.sql.SQLException
PreparedStatement
Note: This stream object can either be a standard Java stream object or your own subclass that implements the standard interface.
setNCharacterStream
in class PreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...reader
- the java reader which contains the UNICODE datalength
- the number of characters in the stream
java.sql.SQLException
- if a database-access error occurs.java.sql.PreparedStatement#setNCharacterStream(int, java.io.Reader,
long)
public void setNClob(int parameterIndex, NClob x) throws java.sql.SQLException
setNClob
in class PreparedStatement
java.sql.SQLException
java.sql.PreparedStatement#setNClob(int, java.sql.NClob)
public void setNClob(int parameterIndex, java.io.Reader reader, long length) throws java.sql.SQLException
setNClob
in class PreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...reader
- the java reader which contains the UNICODE datalength
- the number of characters in the stream
java.sql.SQLException
- if a database error occurspublic void setNString(int parameterIndex, java.lang.String x) throws java.sql.SQLException
PreparedStatement
setNString
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursjava.sql.PreparedStatement#setNString(int, java.lang.String)
public void setRowId(int parameterIndex, RowId x) throws java.sql.SQLException
java.sql.SQLException
public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws java.sql.SQLException
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |