This type provides a common interface for Result and Cursor
formatting functionality, which includes formatting results to:
Calling formatting methods on a Result is repeatable as the
Result has been previously materialised in memory and the database
resource is closed. Calling these methods on a Cursor is not
repeatable as the Cursor (and the underlying JDBC ResultSet)
is consumed entirely, and closed eagerly after consumption.
| Modifier and Type | Method and Description |
|---|---|
| public @NotNull String | |
| public @NotNull String | Returns: The formatted resultThe maximum number of records to include in the
formatted result maxRecords)Get a simple formatted representation of this result. |
| public @NotNull String | |
| public void | |
| public void | format(OutputStream stream, int maxRecords)
Like |
| public void | format(OutputStream stream, TXTFormat format)
Like |
| public void | |
| public void | |
| public void | format(Writer writer, TXTFormat format)
Like |
| public @NotNull String | |
| public @NotNull String | |
| public void | |
| public void | formatChart(OutputStream stream, ChartFormat format)
Like |
| public void | |
| public void | formatChart(Writer writer, ChartFormat format)
Like |
| public @NotNull String | Returns: The formatted resultGet a simple formatted representation of this result as CSV. |
| public @NotNull String | Returns: The formatted resultThe delimiter to use between records delimiter)Get a simple formatted representation of this result as CSV. |
| public @NotNull String | |
| public @NotNull String | Returns: The formatted resultWhether to emit a CSV header line header)Get a simple formatted representation of this result as CSV. |
| public @NotNull String | Returns: The formatted resultWhether to emit a CSV header line header, char The delimiter to use between records delimiter)Get a simple formatted representation of this result as CSV. |
| public @NotNull String | |
| public @NotNull String | |
| public void | |
| public void | formatCSV(OutputStream stream, char delimiter)
Like |
| public void | formatCSV(OutputStream stream, char delimiter, String nullString)
Like |
| public void | formatCSV(OutputStream stream, boolean header)
Like |
| public void | formatCSV(OutputStream stream, boolean header, char delimiter)
Like |
| public void | formatCSV(OutputStream stream, boolean header, char delimiter, String nullString)
Like |
| public void | formatCSV(OutputStream stream, CSVFormat format)
Like |
| public void | |
| public void | |
| public void | formatCSV(Writer writer, char delimiter, String nullString)
Like |
| public void | formatCSV(Writer writer, boolean header)
Like |
| public void | formatCSV(Writer writer, boolean header, char delimiter)
Like |
| public void | formatCSV(Writer writer, boolean header, char delimiter, String nullString)
Like |
| public void | formatCSV(Writer writer, CSVFormat format)
Like |
| public @NotNull String | Returns: The formatted resultGet a simple formatted representation of this result as HTML. |
| public void | |
| public void | |
| public @NotNull String | |
| public @NotNull String | formatInsert(Table<?> table, Field<?>... fields)
Deprecated
as a consequence of
Get this result as a set of Field being deprecated.
INSERT statements.
|
| public void | |
| public void | formatInsert(OutputStream stream, Table<?> table, Field<?>... fields)
Deprecated
as a consequence of
Like Field being deprecated.
formatInsert(Table, Field., but the data is output onto an OutputStream.
|
| public void | |
| public void | formatInsert(Writer writer, Table<?> table, Field<?>... fields)
Deprecated
as a consequence of
Like Field being deprecated.
formatInsert(Table, Field., but the data is output onto an Writer.
|
| public @NotNull String | Returns: The formatted resultGet a simple formatted representation of this result as a JSON array of array. |
| public @NotNull String | Returns: The formatted resultGet a simple formatted representation of this result as a JSON data structure, according to the format. |
| public void | |
| public void | formatJSON(OutputStream stream, JSONFormat format)
Like |
| public void | |
| public void | formatJSON(Writer writer, JSONFormat format)
Like |
| public @NotNull String | |
| public @NotNull String | |
| public void | |
| public void | formatXML(OutputStream stream, XMLFormat format)
Like |
| public void | |
| public void | formatXML(Writer writer, XMLFormat format)
Like |
| public @NotNull Document | |
| public @NotNull Document | |
| public <H extends ContentHandler> H | Returns: The argument content handler is returned for convenience.The custom content handler. handler)Get this result as XML using a SAX |
| public <H extends ContentHandler> H |