public interface AS400JDBCStatementListener
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.Modifier and Type | Method and Description |
---|---|
void |
commentsStripped(java.sql.Connection connection,
java.lang.String oldSQL,
java.lang.String newSQL)
Notifies the listener that comments have been stripped off of the SQL statement to be executed.
|
java.lang.String |
modifySQL(java.sql.Connection connection,
java.lang.String sql)
Gives the listener an opportunity to modify the SQL statement before it is executed.
|
java.lang.String modifySQL(java.sql.Connection connection, java.lang.String sql) throws java.sql.SQLException
connection
- The connection to the server that the statement will execute under.sql
- The original SQL string.java.sql.SQLException
- Thrown by the listener if necessary.void commentsStripped(java.sql.Connection connection, java.lang.String oldSQL, java.lang.String newSQL) throws java.sql.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.java.sql.SQLException
- Thrown by the listener if necessary.