|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mungoknotwise.sqlcli.BasicPrintStreamed | +--com.mungoknotwise.sqlcli.PrintStreamedShowTablesResultSetExtractor
Implemention of ResultSetExtractor
that writes the results of a
show tables command to the object's print streams.
Constructor Summary | |
PrintStreamedShowTablesResultSetExtractor()
Constructs a new instance of PrintStreamedShowTablesResultSetExtractor . |
Method Summary | |
java.lang.Object |
extractData(java.sql.ResultSet resultSet)
Extracts data from the result set. Implementing classes are expected to step through each row of the result set and handle the rows as desired. |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Sets the attribute value with the specified key. |
void |
setDatabaseMetaData(java.sql.DatabaseMetaData databaseMetaData)
Sets the database metadata for use by this instance. |
void |
writeFooter()
Writes the footer to the print streams. |
void |
writeHeader()
Writes the header to the print streams. |
Methods inherited from class com.mungoknotwise.sqlcli.BasicPrintStreamed |
addPrintStream, print, println, removePrintStream, streamIterator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PrintStreamedShowTablesResultSetExtractor()
PrintStreamedShowTablesResultSetExtractor
.
Method Detail |
public java.lang.Object extractData(java.sql.ResultSet resultSet) throws java.sql.SQLException
extractData
in interface ResultSetExtractor
resultSet
- the result set
java.sql.SQLException
- if an error occurspublic void setAttribute(java.lang.String key, java.lang.Object value)
setAttribute
in interface ResultSetExtractor
key
- the attribute keyvalue
- the attribute valuepublic void setDatabaseMetaData(java.sql.DatabaseMetaData databaseMetaData)
databaseMetaData
- databaseMetaDatapublic void writeFooter()
public void writeHeader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |