程序包 com.mysql.cj
接口 Query
-
- 所有已知子接口:
JdbcPreparedStatement,JdbcStatement,PreparedQuery
- 所有已知实现类:
AbstractQuery,CallableStatement,ClientPreparedQuery,ClientPreparedStatement,ServerPreparedQuery,ServerPreparedQueryTestcaseGenerator,ServerPreparedStatement,SimpleQuery,StatementImpl
public interface Query
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static classQuery.CancelStatus
-
方法概要
-
-
-
方法详细资料
-
getId
int getId()
Returns the query id used when profiling- 返回:
- id
-
setCancelStatus
void setCancelStatus(Query.CancelStatus cs)
-
checkCancelTimeout
void checkCancelTimeout()
-
getResultSetFactory
<T extends Resultset,M extends Message> ProtocolEntityFactory<T,M> getResultSetFactory()
-
getSession
Session getSession()
-
getCancelTimeoutMutex
Object getCancelTimeoutMutex()
-
resetCancelledState
void resetCancelledState()
-
closeQuery
void closeQuery()
-
addBatch
void addBatch(Object batch)
-
getBatchedArgs
List<Object> getBatchedArgs()
Get the batched args as added by the addBatch method(s). The list is unmodifiable and might contain any combination of String, ClientPreparedQueryBindings, or ServerPreparedQueryBindings depending on how the parameters were batched.- 返回:
- an unmodifiable List of batched args
-
clearBatchedArgs
void clearBatchedArgs()
-
getQueryAttributesBindings
QueryAttributesBindings getQueryAttributesBindings()
-
getResultFetchSize
int getResultFetchSize()
-
setResultFetchSize
void setResultFetchSize(int fetchSize)
-
getResultType
Resultset.Type getResultType()
-
setResultType
void setResultType(Resultset.Type resultSetType)
-
getTimeoutInMillis
int getTimeoutInMillis()
-
setTimeoutInMillis
void setTimeoutInMillis(int timeoutInMillis)
-
setExecuteTime
void setExecuteTime(long executeTime)
-
getExecuteTime
long getExecuteTime()
Returns the elapsed time for the server to execute the query.- 返回:
- the time it took for the server to execute the query.
-
startQueryTimer
CancelQueryTask startQueryTimer(Query stmtToCancel, int timeout)
-
getStatementExecuting
AtomicBoolean getStatementExecuting()
-
getCurrentDatabase
String getCurrentDatabase()
-
setCurrentDatabase
void setCurrentDatabase(String currentDb)
-
isClearWarningsCalled
boolean isClearWarningsCalled()
-
setClearWarningsCalled
void setClearWarningsCalled(boolean clearWarningsCalled)
-
statementBegins
void statementBegins()
-
stopQueryTimer
void stopQueryTimer(CancelQueryTask timeoutTask, boolean rethrowCancelReason, boolean checkCancelTimeout)
-
-