|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JisqlFormatter
This is the definition of what a JisqlFormatter does.
Method Summary | |
---|---|
void |
consumeOptions(joptsimple.OptionSet options)
Consumes any options that were specified on the command line. |
void |
formatData(java.io.PrintStream out,
java.sql.ResultSet resultSet,
java.sql.ResultSetMetaData metaData)
Called to output the data. |
void |
formatFooter(java.io.PrintStream out,
java.sql.ResultSetMetaData metaData)
Outputs a footer for a query. |
void |
formatHeader(java.io.PrintStream out,
java.sql.ResultSetMetaData metaData)
Outputs a header for a query. |
void |
setSupportedOptions(joptsimple.OptionParser parser)
Sets a the option list for this formatter. |
void |
usage(java.io.PrintStream out)
Called to output a usage message to the command line window. |
Method Detail |
---|
void setSupportedOptions(joptsimple.OptionParser parser)
parser
- - the OptionParser to use.void consumeOptions(joptsimple.OptionSet options) throws java.lang.Exception
options
- the OptionSet that the main driver is using. Implementing
classes should add their supported parameters to the list.
java.lang.Exception
- if there is a problem parsing the command line arguments.
Note that Jisql includes jopt-simple so you can use that
to parse your command line. See
http://jopt-simple.sourceforge.net/
for more information.void usage(java.io.PrintStream out)
out
- where to put the usage message.void formatHeader(java.io.PrintStream out, java.sql.ResultSetMetaData metaData) throws java.lang.Exception
out
- where to put header output.metaData
- the ResultSetMetaData for the output.
java.lang.Exception
void formatData(java.io.PrintStream out, java.sql.ResultSet resultSet, java.sql.ResultSetMetaData metaData) throws java.lang.Exception
out
- where to put output data.resultSet
- the ResultSet for the row.metaData
- the ResultSetMetaData for the row.
java.lang.Exception
void formatFooter(java.io.PrintStream out, java.sql.ResultSetMetaData metaData) throws java.lang.Exception
out
- where to put footer output.metaData
- the ResultSetMetaData for the output.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |