com.mungoknotwise.sqlcli
Class DescribeCommand

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

public class DescribeCommand
extends java.lang.Object
implements ResultSetExtractingCommand

Provides logic for executing a command to describe a table, and to handle the results.

Version:
$Id: DescribeCommand.java,v 1.3 2004/09/07 22:13:07 mungoknotwise Exp $
Author:
Steven Caswell

Field Summary
static java.lang.String TABLE_NAME_KEY
           
 
Constructor Summary
DescribeCommand()
          Constructs a new instance of DescribeCommand.
 
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 to be used to execute 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.
 void setTableName(java.lang.String tableName)
          Sets the name of the table that will be described by this command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TABLE_NAME_KEY

public static final java.lang.String TABLE_NAME_KEY
See Also:
Constant Field Values
Constructor Detail

DescribeCommand

public DescribeCommand()
Constructs a new instance of DescribeCommand.

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 to be used to execute 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

setTableName

public void setTableName(java.lang.String tableName)
Sets the name of the table that will be described by this command.

Parameters:
tableName - the table name


Copyright © 2004 Steven Caswell. All Rights Reserved.