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

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

public abstract class ProgressSQLExecuterHandler
extends Object
implements ISQLExecuterHandler


Field Summary
protected  String _commandPrefix
           
protected  ProgressCallBack _pdialog
           
protected  ISession _session
           
protected  IProgressCallBackFactory progressCallBackFactory
           
 
Constructor Summary
ProgressSQLExecuterHandler(ISession session, JDialog owner, String progressDialogTitle, String commandPrefix)
           
 
Method Summary
protected abstract  String getSuffix(String sql)
           
 void setProgressCallBackFactory(IProgressCallBackFactory progressCallBackFactory)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_session

protected ISession _session

_pdialog

protected ProgressCallBack _pdialog

progressCallBackFactory

protected IProgressCallBackFactory progressCallBackFactory

_commandPrefix

protected String _commandPrefix
Constructor Detail

ProgressSQLExecuterHandler

public ProgressSQLExecuterHandler(ISession session,
                                  JDialog owner,
                                  String progressDialogTitle,
                                  String commandPrefix)
Method Detail

setProgressCallBackFactory

public void setProgressCallBackFactory(IProgressCallBackFactory progressCallBackFactory)

sqlToBeExecuted

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

getSuffix

protected abstract String getSuffix(String sql)

sqlExecutionComplete

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

sqlExecutionWarning

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

sqlStatementCount

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

sqlCloseExecutionHandler

public void sqlCloseExecutionHandler()
Specified by:
sqlCloseExecutionHandler in interface ISQLExecuterHandler

sqlExecutionCancelled

public void sqlExecutionCancelled()
Specified by:
sqlExecutionCancelled in interface ISQLExecuterHandler

sqlDataUpdated

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

sqlResultSetAvailable

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

sqlExecutionException

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


Copyright © 2001-2010. All Rights Reserved.