net.sourceforge.squirrel_sql.plugins.postgres.commands.handler
Class MessageSQLExecuterHandler

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.postgres.commands.handler.ProgressSQLExecuterHandler
      extended by net.sourceforge.squirrel_sql.plugins.postgres.commands.handler.MessageSQLExecuterHandler
All Implemented Interfaces:
ISQLExecuterHandler

public abstract class MessageSQLExecuterHandler
extends ProgressSQLExecuterHandler


Field Summary
protected  boolean _exceptionOccured
           
protected  MessageDialog _mdialog
           
protected  long _startTime
           
 
Fields inherited from class net.sourceforge.squirrel_sql.plugins.postgres.commands.handler.ProgressSQLExecuterHandler
_commandPrefix, _pdialog, _session, progressCallBackFactory
 
Constructor Summary
MessageSQLExecuterHandler(ISession session, MessageDialog mdialog, String progressDialogTitle, String commandPrefix)
           
 
Method Summary
protected abstract  String getSuffix(String sql)
           
 void sqlCloseExecutionHandler()
           
 void sqlDataUpdated(int updateCount)
           
 void sqlExecutionCancelled()
           
 void sqlExecutionComplete(SQLExecutionInfo info, int processedStatementCount, int statementCount)
           
 void sqlExecutionException(Throwable th, String postErrorString)
           
 void sqlExecutionWarning(SQLWarning warn)
           
 void sqlResultSetAvailable(ResultSet rst, SQLExecutionInfo info, IDataSetUpdateableTableModel model)
           
 void sqlStatementCount(int statementCount)
           
 void sqlToBeExecuted(String sql)
           
 
Methods inherited from class net.sourceforge.squirrel_sql.plugins.postgres.commands.handler.ProgressSQLExecuterHandler
setProgressCallBackFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_mdialog

protected MessageDialog _mdialog

_startTime

protected long _startTime

_exceptionOccured

protected boolean _exceptionOccured
Constructor Detail

MessageSQLExecuterHandler

public MessageSQLExecuterHandler(ISession session,
                                 MessageDialog mdialog,
                                 String progressDialogTitle,
                                 String commandPrefix)
Method Detail

sqlToBeExecuted

public void sqlToBeExecuted(String sql)
Specified by:
sqlToBeExecuted in interface ISQLExecuterHandler
Overrides:
sqlToBeExecuted in class ProgressSQLExecuterHandler

getSuffix

protected abstract String getSuffix(String sql)
Specified by:
getSuffix in class ProgressSQLExecuterHandler

sqlExecutionComplete

public void sqlExecutionComplete(SQLExecutionInfo info,
                                 int processedStatementCount,
                                 int statementCount)
Specified by:
sqlExecutionComplete in interface ISQLExecuterHandler
Overrides:
sqlExecutionComplete in class ProgressSQLExecuterHandler

sqlExecutionWarning

public void sqlExecutionWarning(SQLWarning warn)
Specified by:
sqlExecutionWarning in interface ISQLExecuterHandler
Overrides:
sqlExecutionWarning in class ProgressSQLExecuterHandler

sqlStatementCount

public void sqlStatementCount(int statementCount)
Specified by:
sqlStatementCount in interface ISQLExecuterHandler
Overrides:
sqlStatementCount in class ProgressSQLExecuterHandler

sqlCloseExecutionHandler

public void sqlCloseExecutionHandler()
Specified by:
sqlCloseExecutionHandler in interface ISQLExecuterHandler
Overrides:
sqlCloseExecutionHandler in class ProgressSQLExecuterHandler

sqlExecutionCancelled

public void sqlExecutionCancelled()
Specified by:
sqlExecutionCancelled in interface ISQLExecuterHandler
Overrides:
sqlExecutionCancelled in class ProgressSQLExecuterHandler

sqlDataUpdated

public void sqlDataUpdated(int updateCount)
Specified by:
sqlDataUpdated in interface ISQLExecuterHandler
Overrides:
sqlDataUpdated in class ProgressSQLExecuterHandler

sqlResultSetAvailable

public void sqlResultSetAvailable(ResultSet rst,
                                  SQLExecutionInfo info,
                                  IDataSetUpdateableTableModel model)
Specified by:
sqlResultSetAvailable in interface ISQLExecuterHandler
Overrides:
sqlResultSetAvailable in class ProgressSQLExecuterHandler

sqlExecutionException

public void sqlExecutionException(Throwable th,
                                  String postErrorString)
Specified by:
sqlExecutionException in interface ISQLExecuterHandler
Overrides:
sqlExecutionException in class ProgressSQLExecuterHandler


Copyright © 2001-2010. All Rights Reserved.