|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mungoknotwise.sqlcli.DescribeCommand
Provides logic for executing a command to describe a table, and to handle the results.
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 |
public static final java.lang.String TABLE_NAME_KEY
Constructor Detail |
public DescribeCommand()
DescribeCommand
.
Method Detail |
public void execute()
result set extractor
.
execute
in interface ResultSetExtractingCommand
public void setConnection(java.sql.Connection connection)
connection
- the connectionpublic void setExceptionHandler(ExceptionHandler exceptionHandler)
setExceptionHandler
in interface ResultSetExtractingCommand
exceptionHandler
- the exception handlerpublic void setResultSetExtractor(ResultSetExtractor resultSetExtractor)
setResultSetExtractor
in interface ResultSetExtractingCommand
resultSetExtractor
- the result set extractorpublic void setTableName(java.lang.String tableName)
tableName
- the table name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |