public class QueryExecutionInfo extends Object
| Constructor and Description |
|---|
QueryExecutionInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomValue(String key,
Object value)
Store key/value pair.
|
int |
getBatchSize() |
int |
getBindingsSize() |
ConnectionInfo |
getConnectionInfo() |
Object |
getCurrentMappedResult()
Mapped query result available for each-query-result-callback(
ProxyExecutionListener.eachQueryResult(QueryExecutionInfo)). |
int |
getCurrentResultCount()
Represent Nth
Result. |
<T> T |
getCustomValue(String key,
Class<T> type) |
Duration |
getExecuteDuration()
Time that took queries to execute.
|
Method |
getMethod() |
Object[] |
getMethodArgs() |
ProxyEventType |
getProxyEventType() |
List<QueryInfo> |
getQueries()
Returns list of
QueryInfo. |
long |
getThreadId() |
String |
getThreadName() |
Throwable |
getThrowable() |
ExecutionType |
getType() |
boolean |
isSuccess()
Indicate whether the query execution was successful or not.
|
void |
setBatchSize(int batchSize) |
void |
setBindingsSize(int bindingsSize) |
void |
setConnectionInfo(ConnectionInfo connectionInfo) |
void |
setCurrentMappedResult(Object currentResult) |
void |
setCurrentResultCount(int currentResultCount) |
void |
setExecuteDuration(Duration executeDuration) |
void |
setMethod(Method method) |
void |
setMethodArgs(Object[] methodArgs) |
void |
setProxyEventType(ProxyEventType proxyEventType) |
void |
setQueries(List<QueryInfo> queries) |
void |
setSuccess(boolean isSuccess) |
void |
setThreadId(long threadId) |
void |
setThreadName(String threadName) |
void |
setThrowable(Throwable throwable)
Contains an exception thrown while query was executed.
|
void |
setType(ExecutionType type) |
public void addCustomValue(String key, Object value)
key - keyvalue - valuepublic Method getMethod()
public void setMethod(Method method)
public Object[] getMethodArgs()
public void setMethodArgs(Object[] methodArgs)
public ConnectionInfo getConnectionInfo()
public void setConnectionInfo(ConnectionInfo connectionInfo)
public Throwable getThrowable()
public void setThrowable(Throwable throwable)
null.throwable - an error thrown while executing a querypublic boolean isSuccess()
public void setSuccess(boolean isSuccess)
public int getBatchSize()
public void setBatchSize(int batchSize)
public List<QueryInfo> getQueries()
QueryInfo.public ExecutionType getType()
public void setType(ExecutionType type)
public int getBindingsSize()
public void setBindingsSize(int bindingsSize)
public Duration getExecuteDuration()
public void setExecuteDuration(Duration executeDuration)
public String getThreadName()
public void setThreadName(String threadName)
public long getThreadId()
public void setThreadId(long threadId)
public ProxyEventType getProxyEventType()
public void setProxyEventType(ProxyEventType proxyEventType)
public int getCurrentResultCount()
Result.
On each query result callback(ProxyExecutionListener.eachQueryResult(QueryExecutionInfo)),
this value indicates Nth Result starting from 1.
(1st query result, 2nd query result, 3rd, 4th,...).
This returns 0 for before query execution(ProxyExecutionListener.beforeQuery(QueryExecutionInfo)).
For after query execution(ProxyExecutionListener.afterQuery(QueryExecutionInfo)), this returns
total number of Result returned by this query execution.public void setCurrentResultCount(int currentResultCount)
public Object getCurrentMappedResult()
ProxyExecutionListener.eachQueryResult(QueryExecutionInfo)).
For before and after query execution(ProxyExecutionListener.beforeQuery(QueryExecutionInfo)
and ProxyExecutionListener#afterQuery(QueryExecutionInfo)), this returns {@code null}.public void setCurrentMappedResult(Object currentResult)
Copyright © 2018. All rights reserved.