|
|||||||||
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
public class ServerPreparedStatement
JDBC Interface for MySQL-4.1 and newer server-side PreparedStatements.
Nested Class Summary | |
---|---|
(package private) static class |
ServerPreparedStatement.BatchedBindValues
|
static class |
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 | |
---|---|
protected static int |
BLOB_STREAM_READ_BUF_SIZE
|
protected boolean |
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 | |
---|---|
protected |
ServerPreparedStatement(ConnectionImpl conn,
java.lang.String sql,
java.lang.String catalog,
int resultSetType,
int resultSetConcurrency)
Creates a new ServerPreparedStatement object. |
Method Summary | |
---|---|
void |
addBatch()
JDBC 2.0 Add a set of parameters to the batch. |
protected java.lang.String |
asSql(boolean quoteStreamsAndUnknowns)
|
boolean |
canRewriteAsMultiValueInsertAtSqlLevel()
|
boolean |
canRewriteAsMultivalueInsertStatement()
|
protected void |
checkClosed()
Checks if closed() has been called, and throws an exception if so |
void |
clearParameters()
In general, parameter values remain in force for repeated used of a Statement. |
void |
close()
Closes this prepared statement and releases all resources. |
protected long[] |
computeMaxParameterSetSizeAndBatchSize(int numBatchedArgs)
Computes the maximum parameter set size, and entire batch size given the number of arguments in the batch. |
protected boolean |
containsOnDuplicateKeyUpdateInSQL()
|
protected int[] |
executeBatchSerially(int batchTimeout)
Executes the current batch of statements by executing them one-by-one. |
protected ResultSetInternalMethods |
executeInternal(int maxRowsToRetrieve,
Buffer sendPacket,
boolean createStreamingResultSet,
boolean queryIsSelectOnly,
Field[] metadataFromCache,
boolean isBatch)
Actually execute the prepared statement. |
protected Buffer |
fillSendPacket()
Creates the packet that contains the query to be sent to the server. |
protected Buffer |
fillSendPacket(byte[][] batchedParameterStrings,
java.io.InputStream[] batchedParameterStreams,
boolean[] batchedIsStream,
int[] batchedStreamLengths)
Creates the packet that contains the query to be sent to the server. |
protected ServerPreparedStatement.BindValue |
getBinding(int parameterIndex,
boolean forLongData)
Returns the structure representing the value that (can be)/(is) bound at the given parameter index. |
(package private) byte[] |
getBytes(int parameterIndex)
|
protected static ServerPreparedStatement |
getInstance(ConnectionImpl conn,
java.lang.String sql,
java.lang.String catalog,
int resultSetType,
int resultSetConcurrency)
Creates a prepared statement instance -- We need to provide factory-style methods so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise the class verifier complains when it tries to load JDBC4-only interface classes that are present in JDBC4 method signatures. |
protected int |
getLocationOfOnDuplicateKeyUpdate()
|
java.sql.ResultSetMetaData |
getMetaData()
The number, types and properties of a ResultSet's columns are provided by the getMetaData method. |
java.sql.ParameterMetaData |
getParameterMetaData()
|
protected long |
getServerStatementId()
|
(package private) boolean |
isNull(int paramIndex)
|
protected boolean |
isOnDuplicateKeyUpdate()
|
protected PreparedStatement |
prepareBatchedInsertSQL(ConnectionImpl localConn,
int numBatches)
Returns a prepared statement for the number of batched parameters, used when re-writing batch INSERTs. |
protected void |
realClose(boolean calledExplicitly,
boolean closeOpenResults)
Closes this connection and frees all resources. |
protected void |
rePrepare()
Used by Connection when auto-reconnecting to retrieve 'lost' prepared statements. |
void |
setArray(int i,
java.sql.Array x)
JDBC 2.0 Set an Array parameter. |
void |
setAsciiStream(int parameterIndex,
java.io.InputStream x,
int length)
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 |
setBigDecimal(int parameterIndex,
java.math.BigDecimal x)
Set a parameter to a java.math.BigDecimal value. |
void |
setBinaryStream(int parameterIndex,
java.io.InputStream x,
int length)
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 |
setBlob(int parameterIndex,
java.sql.Blob x)
JDBC 2.0 Set a BLOB parameter. |
void |
setBoolean(int parameterIndex,
boolean x)
Set a parameter to a Java boolean value. |
void |
setByte(int parameterIndex,
byte x)
Set a parameter to a Java byte value. |
void |
setBytes(int parameterIndex,
byte[] x)
Set a parameter to a Java array of bytes. |
void |
setCharacterStream(int parameterIndex,
java.io.Reader reader,
int 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 |
setClob(int parameterIndex,
java.sql.Clob x)
JDBC 2.0 Set a CLOB parameter. |
protected void |
setClosed(boolean flag)
|
void |
setDate(int parameterIndex,
java.sql.Date x)
Set a parameter to a java.sql.Date value. |
void |
setDate(int parameterIndex,
java.sql.Date x,
java.util.Calendar cal)
Set a parameter to a java.sql.Date value. |
void |
setDouble(int parameterIndex,
double x)
Set a parameter to a Java double value. |
void |
setFloat(int parameterIndex,
float x)
Set a parameter to a Java float value. |
void |
setInt(int parameterIndex,
int x)
Set a parameter to a Java int value. |
void |
setLong(int parameterIndex,
long x)
Set a parameter to a Java long value. |
void |
setNull(int parameterIndex,
int sqlType)
Set a parameter to SQL NULL Note: You must specify the parameters SQL type (although MySQL ignores it) |
void |
setNull(int parameterIndex,
int sqlType,
java.lang.String typeName)
Set a parameter to SQL NULL. |
protected int |
setOneBatchedParameterSet(java.sql.PreparedStatement batchedStatement,
int batchedParamIndex,
java.lang.Object paramSet)
|
void |
setRef(int i,
java.sql.Ref x)
JDBC 2.0 Set a REF(<structured-type>) parameter. |
void |
setShort(int parameterIndex,
short x)
Set a parameter to a Java short value. |
void |
setString(int parameterIndex,
java.lang.String x)
Set a parameter to a Java String value. |
void |
setTime(int parameterIndex,
java.sql.Time x)
Set a parameter to a java.sql.Time value. |
void |
setTime(int parameterIndex,
java.sql.Time x,
java.util.Calendar cal)
Set a parameter to a java.sql.Time value. |
void |
setTimeInternal(int parameterIndex,
java.sql.Time x,
java.util.Calendar targetCalendar,
java.util.TimeZone tz,
boolean rollForward)
Set a parameter to a java.sql.Time value. |
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x)
Set a parameter to a java.sql.Timestamp value. |
void |
setTimestamp(int parameterIndex,
java.sql.Timestamp x,
java.util.Calendar cal)
Set a parameter to a java.sql.Timestamp value. |
protected void |
setTimestampInternal(int parameterIndex,
java.sql.Timestamp x,
java.util.Calendar targetCalendar,
java.util.TimeZone tz,
boolean rollForward)
|
protected void |
setType(ServerPreparedStatement.BindValue oldValue,
int bufferType)
|
void |
setUnicodeStream(int parameterIndex,
java.io.InputStream x,
int length)
Deprecated. |
void |
setURL(int parameterIndex,
java.net.URL x)
|
java.lang.String |
toString()
Returns this PreparedStatement represented as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.sql.PreparedStatement |
---|
setNClob, setRowId, setSQLXML |
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 |
Field Detail |
---|
protected static final int BLOB_STREAM_READ_BUF_SIZE
protected boolean isCached
Constructor Detail |
---|
protected ServerPreparedStatement(ConnectionImpl conn, java.lang.String sql, java.lang.String catalog, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
conn
- the connection creating us.sql
- the SQL containing the statement to prepare.catalog
- the catalog in use when we were created.
java.sql.SQLException
- If an error occursMethod Detail |
---|
protected static ServerPreparedStatement getInstance(ConnectionImpl conn, java.lang.String sql, java.lang.String catalog, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLException
public void addBatch() throws java.sql.SQLException
addBatch
in interface java.sql.PreparedStatement
addBatch
in class PreparedStatement
java.sql.SQLException
- if a database-access error occurs.StatementImpl.addBatch(java.lang.String)
protected java.lang.String asSql(boolean quoteStreamsAndUnknowns) throws java.sql.SQLException
asSql
in class PreparedStatement
java.sql.SQLException
protected void checkClosed() throws java.sql.SQLException
StatementImpl
checkClosed
in class StatementImpl
java.sql.SQLException
- if this statement has been closedpublic void clearParameters() throws java.sql.SQLException
PreparedStatement
clearParameters
in interface java.sql.PreparedStatement
clearParameters
in class PreparedStatement
java.sql.SQLException
- if a database access error occursPreparedStatement.clearParameters()
protected void setClosed(boolean flag)
public void close() throws java.sql.SQLException
PreparedStatement
close
in interface java.sql.Statement
close
in class PreparedStatement
java.sql.SQLException
- if database error occurs.Statement.close()
protected int[] executeBatchSerially(int batchTimeout) throws java.sql.SQLException
PreparedStatement
executeBatchSerially
in class PreparedStatement
java.sql.SQLException
- if an error occursprotected ResultSetInternalMethods executeInternal(int maxRowsToRetrieve, Buffer sendPacket, boolean createStreamingResultSet, boolean queryIsSelectOnly, Field[] metadataFromCache, boolean isBatch) throws java.sql.SQLException
PreparedStatement
executeInternal
in class PreparedStatement
maxRowsToRetrieve
- the max number of rows to returnsendPacket
- the packet to sendcreateStreamingResultSet
- should a 'streaming' result set be created?queryIsSelectOnly
- is this query doing a SELECT?
java.sql.SQLException
- if an error occurs.com.mysql.jdbc.PreparedStatement#executeInternal(int,
com.mysql.jdbc.Buffer, boolean, boolean)
protected Buffer fillSendPacket() throws java.sql.SQLException
PreparedStatement
fillSendPacket
in class PreparedStatement
java.sql.SQLException
- if an error occurs.PreparedStatement.fillSendPacket()
protected Buffer fillSendPacket(byte[][] batchedParameterStrings, java.io.InputStream[] batchedParameterStreams, boolean[] batchedIsStream, int[] batchedStreamLengths) throws java.sql.SQLException
PreparedStatement
fillSendPacket
in class PreparedStatement
batchedParameterStrings
- the parameters as stringsbatchedParameterStreams
- the parameters as streamsbatchedIsStream
- is the given parameter a stream?batchedStreamLengths
- the lengths of the streams (if appropriate)
java.sql.SQLException
- if an error occurs.com.mysql.jdbc.PreparedStatement#fillSendPacket(byte,
java.io.InputStream, boolean, int)
protected ServerPreparedStatement.BindValue getBinding(int parameterIndex, boolean forLongData) throws java.sql.SQLException
parameterIndex
- 1-basedforLongData
- is this for a stream?
java.sql.SQLException
byte[] getBytes(int parameterIndex) throws java.sql.SQLException
java.sql.SQLException
com.mysql.jdbc.PreparedStatement#getBytes(int)
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
PreparedStatement
getMetaData
in interface java.sql.PreparedStatement
getMetaData
in class PreparedStatement
java.sql.SQLException
- if a database-access error occurs.PreparedStatement.getMetaData()
public java.sql.ParameterMetaData getParameterMetaData() throws java.sql.SQLException
getParameterMetaData
in interface java.sql.PreparedStatement
getParameterMetaData
in class PreparedStatement
java.sql.SQLException
PreparedStatement.getParameterMetaData()
boolean isNull(int paramIndex)
isNull
in class PreparedStatement
PreparedStatement.isNull(int)
protected void realClose(boolean calledExplicitly, boolean closeOpenResults) throws java.sql.SQLException
realClose
in class PreparedStatement
calledExplicitly
- was this called from close()?
java.sql.SQLException
- if an error occursprotected void rePrepare() throws java.sql.SQLException
java.sql.SQLException
- if an error occurs.public void setArray(int i, java.sql.Array x) throws java.sql.SQLException
PreparedStatement
setArray
in interface java.sql.PreparedStatement
setArray
in class PreparedStatement
i
- the first parameter is 1, the second is 2, ...x
- an object representing an SQL array
java.sql.SQLException
- because this method is not implemented.
NotImplemented
- DOCUMENT ME!PreparedStatement.setArray(int, java.sql.Array)
public void setAsciiStream(int parameterIndex, java.io.InputStream x, int 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.
setAsciiStream
in interface java.sql.PreparedStatement
setAsciiStream
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter valuelength
- the number of bytes in the stream
java.sql.SQLException
- if a database access error occursPreparedStatement.setAsciiStream(int, java.io.InputStream,
int)
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws java.sql.SQLException
PreparedStatement
setBigDecimal
in interface java.sql.PreparedStatement
setBigDecimal
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursPreparedStatement.setBigDecimal(int, java.math.BigDecimal)
public void setBinaryStream(int parameterIndex, java.io.InputStream x, int 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.
setBinaryStream
in interface java.sql.PreparedStatement
setBinaryStream
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter valuelength
- the number of bytes to read from the stream (ignored)
java.sql.SQLException
- if a database access error occursPreparedStatement.setBinaryStream(int, java.io.InputStream,
int)
public void setBlob(int parameterIndex, java.sql.Blob x) throws java.sql.SQLException
PreparedStatement
setBlob
in interface java.sql.PreparedStatement
setBlob
in class PreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...x
- an object representing a BLOB
java.sql.SQLException
- if a database error occursPreparedStatement.setBlob(int, java.sql.Blob)
public void setBoolean(int parameterIndex, boolean x) throws java.sql.SQLException
PreparedStatement
setBoolean
in interface java.sql.PreparedStatement
setBoolean
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursPreparedStatement.setBoolean(int, boolean)
public void setByte(int parameterIndex, byte x) throws java.sql.SQLException
PreparedStatement
setByte
in interface java.sql.PreparedStatement
setByte
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursPreparedStatement.setByte(int, byte)
public void setBytes(int parameterIndex, byte[] x) throws java.sql.SQLException
PreparedStatement
setBytes
in interface java.sql.PreparedStatement
setBytes
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursjava.sql.PreparedStatement#setBytes(int, byte)
public void setCharacterStream(int parameterIndex, java.io.Reader reader, int 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.
setCharacterStream
in interface java.sql.PreparedStatement
setCharacterStream
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.setCharacterStream(int, java.io.Reader,
int)
public void setClob(int parameterIndex, java.sql.Clob x) throws java.sql.SQLException
PreparedStatement
setClob
in interface java.sql.PreparedStatement
setClob
in class PreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...x
- an object representing a CLOB
java.sql.SQLException
- if a database error occursPreparedStatement.setClob(int, java.sql.Clob)
public void setDate(int parameterIndex, java.sql.Date x) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
setDate
in class PreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- if a database-access error occurs.public void setDate(int parameterIndex, java.sql.Date x, java.util.Calendar cal) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
setDate
in class PreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuecal
- the calendar to interpret the date with
java.sql.SQLException
- if a database-access error occurs.public void setDouble(int parameterIndex, double x) throws java.sql.SQLException
PreparedStatement
setDouble
in interface java.sql.PreparedStatement
setDouble
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursPreparedStatement.setDouble(int, double)
public void setFloat(int parameterIndex, float x) throws java.sql.SQLException
PreparedStatement
setFloat
in interface java.sql.PreparedStatement
setFloat
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursPreparedStatement.setFloat(int, float)
public void setInt(int parameterIndex, int x) throws java.sql.SQLException
PreparedStatement
setInt
in interface java.sql.PreparedStatement
setInt
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursPreparedStatement.setInt(int, int)
public void setLong(int parameterIndex, long x) throws java.sql.SQLException
PreparedStatement
setLong
in interface java.sql.PreparedStatement
setLong
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursPreparedStatement.setLong(int, long)
public void setNull(int parameterIndex, int sqlType) throws java.sql.SQLException
PreparedStatement
Note: You must specify the parameters SQL type (although MySQL ignores it)
setNull
in interface java.sql.PreparedStatement
setNull
in class PreparedStatement
parameterIndex
- the first parameter is 1, etc...sqlType
- the SQL type code defined in java.sql.Types
java.sql.SQLException
- if a database access error occursPreparedStatement.setNull(int, int)
public void setNull(int parameterIndex, int sqlType, java.lang.String typeName) throws java.sql.SQLException
PreparedStatement
Note: You must specify the parameter's SQL type.
setNull
in interface java.sql.PreparedStatement
setNull
in class PreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...sqlType
- SQL type code defined by java.sql.TypestypeName
- argument parameters for null
java.sql.SQLException
- if a database-access error occurs.PreparedStatement.setNull(int, int, java.lang.String)
public void setRef(int i, java.sql.Ref x) throws java.sql.SQLException
PreparedStatement
setRef
in interface java.sql.PreparedStatement
setRef
in class PreparedStatement
i
- the first parameter is 1, the second is 2, ...x
- an object representing data of an SQL REF Type
java.sql.SQLException
- if a database error occurs
NotImplemented
- DOCUMENT ME!PreparedStatement.setRef(int, java.sql.Ref)
public void setShort(int parameterIndex, short x) throws java.sql.SQLException
PreparedStatement
setShort
in interface java.sql.PreparedStatement
setShort
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursPreparedStatement.setShort(int, short)
public void setString(int parameterIndex, java.lang.String x) throws java.sql.SQLException
PreparedStatement
setString
in interface java.sql.PreparedStatement
setString
in class PreparedStatement
parameterIndex
- the first parameter is 1...x
- the parameter value
java.sql.SQLException
- if a database access error occursPreparedStatement.setString(int, java.lang.String)
public void setTime(int parameterIndex, java.sql.Time x) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
setTime
in class PreparedStatement
parameterIndex
- the first parameter is 1...));x
- the parameter value
java.sql.SQLException
- if a database access error occurspublic void setTime(int parameterIndex, java.sql.Time x, java.util.Calendar cal) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
setTime
in class PreparedStatement
parameterIndex
- the first parameter is 1...));x
- the parameter valuecal
- the timezone to use
java.sql.SQLException
- if a database access error occurspublic void setTimeInternal(int parameterIndex, java.sql.Time x, java.util.Calendar targetCalendar, java.util.TimeZone tz, boolean rollForward) throws java.sql.SQLException
parameterIndex
- the first parameter is 1...));x
- the parameter valuetz
- the timezone to use
java.sql.SQLException
- if a database access error occurspublic void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
setTimestamp
in class PreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter value
java.sql.SQLException
- if a database-access error occurs.public void setTimestamp(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
setTimestamp
in class PreparedStatement
parameterIndex
- the first parameter is 1, the second is 2, ...x
- the parameter valuecal
- the timezone to use
java.sql.SQLException
- if a database-access error occurs.protected void setTimestampInternal(int parameterIndex, java.sql.Timestamp x, java.util.Calendar targetCalendar, java.util.TimeZone tz, boolean rollForward) throws java.sql.SQLException
java.sql.SQLException
protected void setType(ServerPreparedStatement.BindValue oldValue, int bufferType)
public void setUnicodeStream(int parameterIndex, java.io.InputStream x, int length) throws java.sql.SQLException
setUnicodeStream
in interface java.sql.PreparedStatement
setUnicodeStream
in class PreparedStatement
parameterIndex
- DOCUMENT ME!x
- DOCUMENT ME!length
- DOCUMENT ME!
java.sql.SQLException
- DOCUMENT ME!
NotImplemented
- DOCUMENT ME!PreparedStatement.setUnicodeStream(int,
java.io.InputStream, int)
public void setURL(int parameterIndex, java.net.URL x) throws java.sql.SQLException
setURL
in interface java.sql.PreparedStatement
setURL
in class PreparedStatement
java.sql.SQLException
PreparedStatement.setURL(int, java.net.URL)
public java.lang.String toString()
PreparedStatement
toString
in class PreparedStatement
Object.toString()
protected long getServerStatementId()
public boolean canRewriteAsMultiValueInsertAtSqlLevel() throws java.sql.SQLException
canRewriteAsMultiValueInsertAtSqlLevel
in class PreparedStatement
java.sql.SQLException
public boolean canRewriteAsMultivalueInsertStatement() throws java.sql.SQLException
java.sql.SQLException
protected int getLocationOfOnDuplicateKeyUpdate()
getLocationOfOnDuplicateKeyUpdate
in class PreparedStatement
protected boolean isOnDuplicateKeyUpdate()
protected long[] computeMaxParameterSetSizeAndBatchSize(int numBatchedArgs)
computeMaxParameterSetSizeAndBatchSize
in class PreparedStatement
protected int setOneBatchedParameterSet(java.sql.PreparedStatement batchedStatement, int batchedParamIndex, java.lang.Object paramSet) throws java.sql.SQLException
setOneBatchedParameterSet
in class PreparedStatement
java.sql.SQLException
protected boolean containsOnDuplicateKeyUpdateInSQL()
containsOnDuplicateKeyUpdateInSQL
in class PreparedStatement
protected PreparedStatement prepareBatchedInsertSQL(ConnectionImpl localConn, int numBatches) throws java.sql.SQLException
PreparedStatement
prepareBatchedInsertSQL
in class PreparedStatement
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |