public class SqlResult
extends Object
implements Serializable
SqlService
,
DataSet
,
Serialized FormConstructor and Description |
---|
SqlResult(String result,
Map<String,DataSet> dataSets)
Instantiates a new sql result.
|
SqlResult(String result,
Map<String,DataSet> dataSets,
boolean canCommit,
boolean canRollback)
Instantiates a new sql result.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canCommit()
"Can commit" flag.
|
boolean |
canRollback()
"Can rollback" flag.
|
Map<String,DataSet> |
getDataSets()
Gets the map of named data sets.
|
Exception |
getException()
Gets the exception.
|
String |
getResult()
Gets the result string.
|
Map<String,String> |
getSql()
Gets the list of actually executed sql statements.
|
void |
setCanCommit(boolean value)
Sets the "can commit" flag.
|
void |
setCanRollback(boolean value)
Sets the "can rollback" rollback.
|
void |
setException(Exception ex)
Sets the exception.
|
void |
setSql(Map<String,String> value)
Sets the list of actually executed sql statements.
|
public SqlResult(String result, Map<String,DataSet> dataSets)
result
- the resultdataSets
- the map of named data setspublic SqlResult(String result, Map<String,DataSet> dataSets, boolean canCommit, boolean canRollback)
result
- the resultdataSets
- the map of named data setscanCommit
- the "can commit" flagcanRollback
- the "can rollback" flagpublic boolean canCommit()
public boolean canRollback()
public Map<String,DataSet> getDataSets()
public Exception getException()
public String getResult()
public Map<String,String> getSql()
public void setCanCommit(boolean value)
value
- the new value for "can commit" flagpublic void setCanRollback(boolean value)
value
- the new value for the "can rollback" flagpublic void setException(Exception ex)
ex
- the new exceptionpublic void setSql(Map<String,String> value)
value
- the new list of actually executed sql statementsCopyright © 2010-2020 Toolsverse. All Rights Reserved.