接口 JdbcStatement
-
- 所有超级接口:
AutoCloseable,Query,Statement,Wrapper
- 所有已知子接口:
JdbcPreparedStatement
public interface JdbcStatement extends Statement, Query
This interface contains methods that are considered the "vendor extension" to the JDBC API for MySQL's implementation of java.sql.Statement. For those looking further into the driver implementation, it is not an API that is used for plugability of implementations inside our driver (which is why there are still references to StatementImpl throughout the code).
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.mysql.cj.Query
Query.CancelStatus
-
-
字段概要
字段 修饰符和类型 字段 说明 static intMAX_ROWS
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidclearAttributes()voiddisableStreamingResults()Resets this statements fetch size and result set type to the values they had before enableStreamingResults() was called.voidenableStreamingResults()Workaround for containers that 'check' for sane values of Statement.setFetchSize() so that applications can use the Java variant of libmysql's mysql_use_result() behavior.ExceptionInterceptorgetExceptionInterceptor()InputStreamgetLocalInfileInputStream()Returns the InputStream instance that will be used to send data in response to a "LOAD DATA LOCAL INFILE" statement.intgetOpenResultSetCount()Returns the number of open result sets for this statement.QuerygetQuery()ResultSetInternalMethodsgetResultSetInternal()voidremoveOpenResultSet(ResultSetInternalMethods rs)Callback for result set instances to remove them from the Set that tracks them per-statementvoidsetAttribute(String name, Object value)voidsetHoldResultsOpenOverClose(boolean holdResultsOpenOverClose)voidsetLocalInfileInputStream(InputStream stream)Sets an InputStream instance that will be used to send data to the MySQL server for a "LOAD DATA LOCAL INFILE" statement rather than a FileInputStream or URLInputStream that represents the path given as an argument to the statement.voidsetPingTarget(PingTarget pingTarget)-
从接口继承的方法 com.mysql.cj.Query
addBatch, checkCancelTimeout, clearBatchedArgs, closeQuery, getBatchedArgs, getCancelTimeoutMutex, getCurrentDatabase, getExecuteTime, getId, getQueryAttributesBindings, getResultFetchSize, getResultSetFactory, getResultType, getSession, getStatementExecuting, getTimeoutInMillis, isClearWarningsCalled, resetCancelledState, setCancelStatus, setClearWarningsCalled, setCurrentDatabase, setExecuteTime, setResultFetchSize, setResultType, setTimeoutInMillis, startQueryTimer, statementBegins, stopQueryTimer
-
从接口继承的方法 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
-
从接口继承的方法 java.sql.Wrapper
isWrapperFor, unwrap
-
-
-
-
字段详细资料
-
MAX_ROWS
static final int MAX_ROWS
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
enableStreamingResults
void enableStreamingResults() throws SQLExceptionWorkaround for containers that 'check' for sane values of Statement.setFetchSize() so that applications can use the Java variant of libmysql's mysql_use_result() behavior.- 抛出:
SQLException- if an error occurs
-
disableStreamingResults
void disableStreamingResults() throws SQLExceptionResets this statements fetch size and result set type to the values they had before enableStreamingResults() was called.- 抛出:
SQLException- if an error occurs
-
setLocalInfileInputStream
void setLocalInfileInputStream(InputStream stream)
Sets an InputStream instance that will be used to send data to the MySQL server for a "LOAD DATA LOCAL INFILE" statement rather than a FileInputStream or URLInputStream that represents the path given as an argument to the statement. This stream will be read to completion upon execution of a "LOAD DATA LOCAL INFILE" statement, and will automatically be closed by the driver, so it needs to be reset before each call to execute*() that would cause the MySQL server to request data to fulfill the request for "LOAD DATA LOCAL INFILE". If this value is set to NULL, the driver will revert to using a FileInputStream or URLInputStream as required.- 参数:
stream- input stream
-
getLocalInfileInputStream
InputStream getLocalInfileInputStream()
Returns the InputStream instance that will be used to send data in response to a "LOAD DATA LOCAL INFILE" statement. This method returns NULL if no such stream has been set via setLocalInfileInputStream().- 返回:
- input stream
-
setPingTarget
void setPingTarget(PingTarget pingTarget)
-
getExceptionInterceptor
ExceptionInterceptor getExceptionInterceptor()
-
removeOpenResultSet
void removeOpenResultSet(ResultSetInternalMethods rs)
Callback for result set instances to remove them from the Set that tracks them per-statement- 参数:
rs- result set
-
getOpenResultSetCount
int getOpenResultSetCount()
Returns the number of open result sets for this statement.- 返回:
- the number of open result sets for this statement
-
setHoldResultsOpenOverClose
void setHoldResultsOpenOverClose(boolean holdResultsOpenOverClose)
-
getQuery
Query getQuery()
-
clearAttributes
void clearAttributes()
-
getResultSetInternal
ResultSetInternalMethods getResultSetInternal()
-
-