java.lang .Object net.sourceforge.squirrel_sql.client.session.action .DumpSessionCommand DumpSessionCommand public class DumpSessionCommand implements ICommand (Code) This ICommand
will dump the status of a session to a text
file.
author: Colin Bell
DumpSessionCommand public DumpSessionCommand()(Code) Default ctor.
DumpSessionCommand public DumpSessionCommand(File outFile)(Code) Ctor using sessions message handler for errors.
Parameters: outFile - File to dump session to.
DumpSessionCommand public DumpSessionCommand(File outFile, IMessageHandler msgHandler)(Code) Ctor.
Parameters: outFile - File to dump session to.Parameters: msgHandler - Message handler. If null then the sessionsmessage handler will be used for errors.
execute public void execute()(Code) Dump the session.
setDumpFile public void setDumpFile(File file)(Code) Set the file to dump to.
Parameters: file - File to dump to.throws: IllegalArgumentException - Thrown if a null ISession or File passed.
setSession public void setSession(ISession session)(Code) Set the session to dump.
Parameters: session - Session to be dumped.throws: IllegalArgumentException - Thrown if a null ISession or File passed.