Ontimize 5.2072EN

com.ontimize.db.sql
Interface ISQLInfo

All Known Implementing Classes:
SQLInfo

public interface ISQLInfo

Interface.

Author:
Imatia Innovation

Field Summary
static int ERROR
          Operation code that indicates that an error have been occurred.
static int OK
          Operation code that indicates that the operation was successfully.
 
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.
 void setCode(int code)
          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.
 

Field Detail

OK

public static final int OK
Operation code that indicates that the operation was successfully.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Operation code that indicates that an error have been occurred.

See Also:
Constant Field Values
Method Detail

getCode

public int getCode()
This method obtains the code that indicates if the operation was successfully or not.

Returns:
int

setCode

public void setCode(int code)
In this method establishes the code of the operation.

Parameters:
code -

getSQLStatements

public java.util.List getSQLStatements()
This method returns the statement/s that has been executed.

Returns:
List

addSQLStatement

public void addSQLStatement(java.lang.String statement)
This method add the SQL Statement to the collection of statements executed.

Parameters:
statement - String with the SQL Statement.

appendSQLInfo

public void appendSQLInfo(ISQLInfo sqlInfo)

setErrorSQLStatement

public void setErrorSQLStatement(java.lang.String statement)
This method sets the SQL Statement like the one which causes the SQL Exception.

Parameters:
statement - String with the SQL Statement.

getErrorSQLStatement

public java.lang.String getErrorSQLStatement()
This method returns the SQL Statement which causes the SQL Exception.

Returns:
String

Ontimize