|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a listener that will get notified when certain events occur during the processing of an SQL statement.
Note that modifySQL()
is called before commentsStripped()
is called.
The methods on this listener are invoked when the Toolbox JDBC driver constructs an SQL statement internally,
before it is executed on the server.
Method Summary | |
---|---|
void |
commentsStripped(Connection connection,
String oldSQL,
String newSQL)
Notifies the listener that comments have been stripped off of the SQL statement to be executed. |
String |
modifySQL(Connection connection,
String sql)
Gives the listener an opportunity to modify the SQL statement before it is executed. |
Method Detail |
public String modifySQL(Connection connection, String sql) throws SQLException
connection
- The connection to the server that the statement will execute under.sql
- The original SQL string.
SQLException
- Thrown by the listener if necessary.public void commentsStripped(Connection connection, String oldSQL, String newSQL) throws SQLException
connection
- The connection to the server that the statement will execute under.oldSQL
- The original SQL string.newSQL
- The SQL string with comments stripped off of it.
SQLException
- Thrown by the listener if necessary.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |