com.mungoknotwise.sqlcli
Class ShowTablesCommand

java.lang.Object
  |
  +--com.mungoknotwise.sqlcli.ShowTablesCommand
All Implemented Interfaces:
Command, ResultSetExtractingCommand

public class ShowTablesCommand
extends java.lang.Object
implements ResultSetExtractingCommand

Performs a show tables command and handles the results.

Version:
$Id: ShowTablesCommand.java,v 1.2 2004/07/28 23:25:21 mungoknotwise Exp $
Author:
Steven Caswell

Constructor Summary
ShowTablesCommand()
          Constructs a new instance of ShowTablesCommand.
 
Method Summary
 void execute()
          Executes this command. Results are handled by the configured result set extractor.
 void setConnection(java.sql.Connection connection)
          Sets the connection for this command.
 void setExceptionHandler(ExceptionHandler exceptionHandler)
          Sets the exception handler for this command.
 void setResultSetExtractor(ResultSetExtractor resultSetExtractor)
          Sets the result set extractor for this command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowTablesCommand

public ShowTablesCommand()
Constructs a new instance of ShowTablesCommand.

Method Detail

execute

public void execute()
Executes this command. Results are handled by the configured result set extractor.

Specified by:
execute in interface ResultSetExtractingCommand

setConnection

public void setConnection(java.sql.Connection connection)
Sets the connection for this command.

Parameters:
connection - the connection

setExceptionHandler

public void setExceptionHandler(ExceptionHandler exceptionHandler)
Sets the exception handler for this command.

Specified by:
setExceptionHandler in interface ResultSetExtractingCommand
Parameters:
exceptionHandler - the exception handler

setResultSetExtractor

public void setResultSetExtractor(ResultSetExtractor resultSetExtractor)
Sets the result set extractor for this command.

Specified by:
setResultSetExtractor in interface ResultSetExtractingCommand
Parameters:
resultSetExtractor - the result set extractor


Copyright © 2004 Steven Caswell. All Rights Reserved.