Ontimize 5.2072EN

com.ontimize.db.sql
Class SQLInfo

java.lang.Object
  extended bycom.ontimize.db.sql.SQLInfo
All Implemented Interfaces:
ISQLInfo, java.io.Serializable

public class SQLInfo
extends java.lang.Object
implements ISQLInfo, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  int code
           
protected  java.lang.String errorSQLStatement
           
protected  java.util.List sqlStatements
           
 
Fields inherited from interface com.ontimize.db.sql.ISQLInfo
ERROR, OK
 
Constructor Summary
SQLInfo()
           
 
Method Summary
 void addSQLStatement(java.lang.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.
 java.lang.String getErrorSQLStatement()
          This method returns the SQL Statement which causes the SQL Exception.
 java.util.List getSQLStatements()
          This method returns the statement/s that has been executed.
 java.lang.String removeSQLStatement(int index)
           
 void setCode(int i)
          In this method establishes the code of the operation.
 void setErrorSQLStatement(java.lang.String statement)
          This method sets the SQL Statement like the one which causes the SQL Exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errorSQLStatement

protected java.lang.String errorSQLStatement

sqlStatements

protected java.util.List sqlStatements

code

protected int code
Constructor Detail

SQLInfo

public SQLInfo()
Method Detail

getCode

public int getCode()
Description copied from interface: ISQLInfo
This method obtains the code that indicates if the operation was successfully or not.

Specified by:
getCode in interface ISQLInfo
Returns:
int

setCode

public void setCode(int i)
Description copied from interface: ISQLInfo
In this method establishes the code of the operation.

Specified by:
setCode in interface ISQLInfo
Parameters:
i -

getSQLStatements

public java.util.List getSQLStatements()
Description copied from interface: ISQLInfo
This method returns the statement/s that has been executed.

Specified by:
getSQLStatements in interface ISQLInfo
Returns:
List

addSQLStatement

public void addSQLStatement(java.lang.String statement)
Description copied from interface: ISQLInfo
This method add the SQL Statement to the collection of statements executed.

Specified by:
addSQLStatement in interface ISQLInfo
Parameters:
statement - String with the SQL Statement.

removeSQLStatement

public java.lang.String removeSQLStatement(int index)

appendSQLInfo

public void appendSQLInfo(ISQLInfo sqlInfo)
Specified by:
appendSQLInfo in interface ISQLInfo

getErrorSQLStatement

public java.lang.String getErrorSQLStatement()
Description copied from interface: ISQLInfo
This method returns the SQL Statement which causes the SQL Exception.

Specified by:
getErrorSQLStatement in interface ISQLInfo
Returns:
String

setErrorSQLStatement

public void setErrorSQLStatement(java.lang.String statement)
Description copied from interface: ISQLInfo
This method sets the SQL Statement like the one which causes the SQL Exception.

Specified by:
setErrorSQLStatement in interface ISQLInfo
Parameters:
statement - String with the SQL Statement.

Ontimize