net.sourceforge.squirrel_sql.plugins.sqlparam
Class SQLParamExecutionListener

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.sqlparam.SQLParamExecutionListener
All Implemented Interfaces:
EventListener, ISQLExecutionListener

public class SQLParamExecutionListener
extends Object
implements ISQLExecutionListener

This listener listens for SQL execution.

Author:
Thorsten Mürell

Constructor Summary
SQLParamExecutionListener(SQLParamPlugin plugin, ISession session)
          The constructor
 
Method Summary
 void statementExecuted(String sql)
          This method is called when the SQL was executed.
 String statementExecuting(String sql)
          Called prior to an individual statement being executed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLParamExecutionListener

public SQLParamExecutionListener(SQLParamPlugin plugin,
                                 ISession session)
The constructor

Parameters:
plugin -
session -
Method Detail

statementExecuted

public void statementExecuted(String sql)
This method is called when the SQL was executed.

Specified by:
statementExecuted in interface ISQLExecutionListener
Parameters:
sql -

statementExecuting

public String statementExecuting(String sql)
Called prior to an individual statement being executed. If you modify the script remember to return it so that the caller knows about the modifications.

Specified by:
statementExecuting in interface ISQLExecutionListener
Parameters:
sql - The SQL to be executed.
Returns:
The SQL to be executed. If null returned then the statement will not be executed.


Copyright © 2001-2010. All Rights Reserved.