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 |
|---|---|
int |
getBatchSize() |
long |
getConnectionId() |
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(long 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 long getConnectionId()
public void setConnectionId(long connectionId)
public Object getResult()
public void setResult(Object result)
public long getElapsedTime()
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)
Copyright © 2017. All rights reserved.