public class SQLInfo extends Object implements ISQLInfo, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
code |
protected String |
errorSQLStatement |
protected List |
sqlStatements |
| Constructor and Description |
|---|
SQLInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSQLStatement(String statement)
This method add the SQL Statement to the collection of statements
executed.
|
void |
appendSQLInfo(ISQLInfo sqlInfo) |
int |
getCode()
This method obtains the code that indicates if the operation was
successfully or not.
|
String |
getErrorSQLStatement()
This method returns the SQL Statement which causes the SQL Exception.
|
List |
getSQLStatements()
This method returns the statement/s that has been executed.
|
String |
removeSQLStatement(int index) |
void |
setCode(int i)
In this method establishes the code of the operation.
|
void |
setErrorSQLStatement(String statement)
This method sets the SQL Statement like the one which causes the SQL
Exception.
|
protected String errorSQLStatement
protected List sqlStatements
protected int code
public int getCode()
ISQLInfopublic void setCode(int i)
ISQLInfopublic List getSQLStatements()
ISQLInfogetSQLStatements in interface ISQLInfopublic void addSQLStatement(String statement)
ISQLInfoaddSQLStatement in interface ISQLInfostatement - String with the SQL Statement.public String removeSQLStatement(int index)
public void appendSQLInfo(ISQLInfo sqlInfo)
appendSQLInfo in interface ISQLInfopublic String getErrorSQLStatement()
ISQLInfogetErrorSQLStatement in interface ISQLInfopublic void setErrorSQLStatement(String statement)
ISQLInfosetErrorSQLStatement in interface ISQLInfostatement - String with the SQL Statement.Copyright © 2016 Imatia Innovation S.L.. All rights reserved.