Package com.mysql.cj.jdbc
Interface JdbcPreparedStatement
- All Superinterfaces:
java.lang.AutoCloseable,JdbcStatement,java.sql.PreparedStatement,Query,java.sql.Statement,java.sql.Wrapper
- All Known Implementing Classes:
CallableStatement,ClientPreparedStatement,ServerPreparedStatement
public interface JdbcPreparedStatement extends java.sql.PreparedStatement, JdbcStatement
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and Type Method Description byte[]getBytesRepresentation(int parameterIndex)byte[]getOrigBytes(int parameterIndex)ParameterBindingsgetParameterBindings()ParseInfogetParseInfo()java.lang.StringgetPreparedSql()QueryBindings<?>getQueryBindings()booleanisNull(int paramIndex)voidrealClose(boolean calledExplicitly, boolean closeOpenResults)voidsetBigInteger(int parameterIndex, java.math.BigInteger x)voidsetBytes(int parameterIndex, byte[] x, boolean checkForIntroducer, boolean escapeForMBChars)voidsetBytesNoEscape(int parameterIndex, byte[] parameterAsBytes)Used by updatable result sets for refreshRow() because the parameter has already been escaped for updater or inserter prepared statements.voidsetBytesNoEscapeNoQuotes(int parameterIndex, byte[] parameterAsBytes)voidsetNull(int parameterIndex, MysqlType mysqlType)Methods inherited from interface com.mysql.cj.jdbc.JdbcStatement
disableStreamingResults, enableStreamingResults, getExceptionInterceptor, getLocalInfileInputStream, getOpenResultSetCount, getQuery, removeOpenResultSet, setHoldResultsOpenOverClose, setLocalInfileInputStream, setPingTargetMethods inherited from interface java.sql.PreparedStatement
addBatch, clearParameters, execute, executeLargeUpdate, executeQuery, executeUpdate, getMetaData, getParameterMetaData, setArray, setAsciiStream, setAsciiStream, setAsciiStream, setBigDecimal, setBinaryStream, setBinaryStream, setBinaryStream, setBlob, setBlob, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setCharacterStream, setCharacterStream, setClob, setClob, setClob, setDate, setDate, setDouble, setFloat, setInt, setLong, setNCharacterStream, setNCharacterStream, setNClob, setNClob, setNClob, setNString, setNull, setNull, setObject, setObject, setObject, setObject, setObject, setRef, setRowId, setShort, setSQLXML, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURLMethods inherited from interface com.mysql.cj.Query
addBatch, checkCancelTimeout, clearBatchedArgs, closeQuery, getBatchedArgs, getCancelTimeoutMutex, getCurrentDatabase, getExecuteTime, getId, getResultFetchSize, getResultSetFactory, getResultType, getSession, getStatementExecuting, getTimeoutInMillis, isClearWarningsCalled, resetCancelledState, setCancelStatus, setClearWarningsCalled, setCurrentDatabase, setExecuteTime, setResultFetchSize, setResultType, setTimeoutInMillis, startQueryTimer, statementBegins, stopQueryTimerMethods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, 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, isPoolable, isSimpleIdentifier, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
-
Method Details
-
realClose
void realClose(boolean calledExplicitly, boolean closeOpenResults) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getQueryBindings
QueryBindings<?> getQueryBindings() -
getBytesRepresentation
byte[] getBytesRepresentation(int parameterIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getOrigBytes
byte[] getOrigBytes(int parameterIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getParseInfo
ParseInfo getParseInfo() -
isNull
boolean isNull(int paramIndex) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getPreparedSql
java.lang.String getPreparedSql() -
setBytes
void setBytes(int parameterIndex, byte[] x, boolean checkForIntroducer, boolean escapeForMBChars) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setBytesNoEscape
void setBytesNoEscape(int parameterIndex, byte[] parameterAsBytes) throws java.sql.SQLExceptionUsed by updatable result sets for refreshRow() because the parameter has already been escaped for updater or inserter prepared statements.- Parameters:
parameterIndex- the parameter to set.parameterAsBytes- the parameter as a string.- Throws:
java.sql.SQLException- if an error occurs
-
setBytesNoEscapeNoQuotes
void setBytesNoEscapeNoQuotes(int parameterIndex, byte[] parameterAsBytes) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setBigInteger
void setBigInteger(int parameterIndex, java.math.BigInteger x) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setNull
- Throws:
java.sql.SQLException
-
getParameterBindings
- Throws:
java.sql.SQLException
-