|
|||||||||
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.AppendingBatchVisitor, PreparedStatement.BatchParams, PreparedStatement.BatchVisitor, 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, parseInfo, rewrittenBatchSize, 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,
java.sql.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,
java.sql.RowId x)
|
void |
setSQLXML(int parameterIndex,
java.sql.SQLXML xmlObject)
|
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, getWarnings, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout |
Methods inherited from interface java.sql.Wrapper |
---|
isWrapperFor, unwrap |
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 interface java.sql.PreparedStatement
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.PreparedStatement.setNCharacterStream(int, java.io.Reader,
long)
public void setNClob(int parameterIndex, java.sql.NClob x) throws java.sql.SQLException
java.sql.SQLException
PreparedStatement.setNClob(int, java.sql.NClob)
public void setNClob(int parameterIndex, java.io.Reader reader, long length) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
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 interface java.sql.PreparedStatement
setNString
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursPreparedStatement.setNString(int, java.lang.String)
public void setRowId(int parameterIndex, java.sql.RowId x) throws java.sql.SQLException
java.sql.SQLException
public void setSQLXML(int parameterIndex, java.sql.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 |