public class ExecutionInfo extends Object
| Constructor and Description |
|---|
ExecutionInfo() |
ExecutionInfo(ConnectionInfo connectionInfo,
Statement statement,
boolean isBatch,
int batchSize,
Method method,
Object[] methodArgs) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomValue(String key,
Object value)
Store key/value pair.
|
int |
getBatchSize() |
String |
getConnectionId() |
<T> T |
getCustomValue(String key,
Class<T> type) |
String |
getDataSourceName() |
long |
getElapsedTime()
Duration of query execution.
|
ResultSet |
getGeneratedKeys() |
Method |
getMethod() |
Object[] |
getMethodArgs() |
Object |
getResult()
Contains query execution result.
|
Statement |
getStatement()
|
StatementType |
getStatementType() |
Throwable |
getThrowable() |
boolean |
isBatch() |
boolean |
isSuccess()
Indicate whether the query execution was successful or not.
|
void |
setBatch(boolean isBatch) |
void |
setBatchSize(int batchSize) |
void |
setConnectionId(String connectionId) |
void |
setDataSourceName(String dataSourceName) |
void |
setElapsedTime(long elapsedTime) |
void |
setGeneratedKeys(ResultSet generatedKeys) |
void |
setMethod(Method method) |
void |
setMethodArgs(Object[] methodArgs) |
void |
setResult(Object result) |
void |
setStatement(Statement statement) |
void |
setStatementType(StatementType statementType) |
void |
setSuccess(boolean isSuccess) |
void |
setThrowable(Throwable throwable)
Contains an exception thrown while query was executed.
|
public ExecutionInfo()
public ExecutionInfo(ConnectionInfo connectionInfo, Statement statement, boolean isBatch, int batchSize, Method method, Object[] methodArgs)
public Method getMethod()
public void setMethod(Method method)
public Object[] getMethodArgs()
public void setMethodArgs(Object[] methodArgs)
public String getDataSourceName()
public void setDataSourceName(String dataSourceName)
public String getConnectionId()
public void setConnectionId(String connectionId)
public Object getResult()
public void setResult(Object result)
public long getElapsedTime()
Stopwatch.
By default, it uses SystemStopwatchFactory.SystemStopwatch which
uses milliseconds.public void setElapsedTime(long elapsedTime)
public Throwable getThrowable()
public void setThrowable(Throwable throwable)
null.throwable - an error thrown while executing a querypublic StatementType getStatementType()
public void setStatementType(StatementType statementType)
public boolean isSuccess()
public void setSuccess(boolean isSuccess)
public boolean isBatch()
public void setBatch(boolean isBatch)
public int getBatchSize()
public void setBatchSize(int batchSize)
public Statement getStatement()
public void setStatement(Statement statement)
public ResultSet getGeneratedKeys()
public void setGeneratedKeys(ResultSet generatedKeys)
public void addCustomValue(String key, Object value)
key - keyvalue - valueCopyright © 2020. All rights reserved.