Top Fields Constructors Methods
org.jooq.impl

pack-priv abstract Class AbstractResult<R extends org.jooq.Record>

extends AbstractFormattable
implements FieldsTrait, Iterable<R extends Record>
Class Inheritance
All Implemented Interfaces
java.lang.Iterable, org.jooq.impl.FieldsTrait, org.jooq.Fields
Known Direct Subclasses
org.jooq.impl.ResultImpl, org.jooq.impl.AbstractCursor
Static Imports
java.lang.Math.max, .Math.min, java.util.stream.Collectors.joining, org.jooq.XMLFormat.RecordFormat.COLUMN_NAME_ELEMENTS, .XMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE, org.jooq.conf.SettingsTools.renderLocale, org.jooq.impl.DSL.insertInto, .DSL.name, .DSL.table, org.jooq.tools.StringUtils.abbreviate, .StringUtils.leftPad, .StringUtils.rightPad

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
pack-priv final AbstractRow<R>
Inherited from org.jooq.impl.AbstractFormattable:
configuration

Constructor Summary

AccessConstructor and Description
pack-priv
AbstractResult(Configuration configuration, AbstractRow<R> row)

Method Summary

Modifier and TypeMethod and Description
private static final String
alignNumberValue(Integer columnDecimalPlaces, String value)

pack-priv static final DocumentFragment
private static final int
pack-priv final JSONFormat
pack-priv final XMLFormat
private static final String
escapeXML(String string)

public final Row
fieldsRow()

Implements org.jooq.Fields.fieldsRow.

Get all fields known to this type as a Row.
public final void
format(Writer writer, TXTFormat format)

Implements org.jooq.Formattable.format.

Like format(TXTFormat), but the data is output onto a Writer.
pack-priv static final String
format0(Object
The value to be formatted
value
,
boolean changed, boolean
Whether the formatted output is to be consumed visually (HTML, TEXT) or by a machine (CSV, JSON, XML)
visual
)

public final void
formatChart(Writer writer, ChartFormat format)

Implements org.jooq.Formattable.formatChart.

Like formatChart(ChartFormat), but the data is output onto a Writer.
public final void
formatCSV(Writer writer, CSVFormat format)

Implements org.jooq.Formattable.formatCSV.

Like formatCSV(CSVFormat), but the data is output onto a Writer.
private static final String
formatCSV0(Object value, CSVFormat format)

private final void
formatHorizontalLine(Writer writer, TXTFormat format, final int[] widths)

public final void
formatHTML(Writer writer)

Implements org.jooq.Formattable.formatHTML.

Like formatHTML(), but the data is output onto a Writer.
public final void
formatInsert(Writer writer)

Implements org.jooq.Formattable.formatInsert.

Like formatInsert(), but the data is output onto a Writer.
public final void
formatInsert(Writer writer, Table<?> table, Field<?>... f)

Implements org.jooq.Formattable.formatInsert.

Deprecated as a consequence of Field being deprecated.
Like formatInsert(Table, Field...), but the data is output onto an Writer.
public final void
formatJSON(Writer writer, JSONFormat format)

Implements org.jooq.Formattable.formatJSON.

Like formatJSON(JSONFormat), but the data is output onto a Writer.
pack-priv static final void
formatJSON0(Object value, Writer writer, JSONFormat format)

pack-priv static final void
formatJSONArray0(Record record, AbstractRow<?> fields, JSONFormat format, int recordLevel, Writer writer)

pack-priv static final void
formatJSONMap0(Record record, AbstractRow<?> fields, JSONFormat format, int recordLevel, Writer writer)

private final String
formatTypeName(Field<?> field)

Deprecated as a consequence of Field being deprecated.
public final void
formatXML(Writer writer, XMLFormat format)

Implements org.jooq.Formattable.formatXML.

Like formatXML(XMLFormat), but the data is output onto a Writer.
pack-priv static final void
formatXMLRecord(Writer writer, XMLFormat format, int recordLevel, Record record, AbstractRow<?> fields)

public final Document
public final <H extends ContentHandler> H
intoXML(H
The custom content handler.
handler
,
XMLFormat format)

Implements org.jooq.Formattable.intoXML.

Get this result as XML using a SAX ContentHandler.
private final R
nullSafe(R r)

public final FieldsImpl<R>
Inherited from org.jooq.impl.AbstractFormattable:
attachconfigurationdetachformatformatformatformatformatformatformatformatformatChartformatChartformatChartformatChartformatChartformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatCSVformatHTMLformatHTMLformatInsertformatInsertformatInsertformatInsertformatJSONformatJSONformatJSONformatJSONformatJSONformatXMLformatXMLformatXMLformatXMLformatXMLgetAttachablesintoXML

Field Detail

fieldsback to summary
pack-priv final AbstractRow<R> fields

Constructor Detail

AbstractResultback to summary
pack-priv AbstractResult(Configuration configuration, AbstractRow<R> row)

Method Detail

alignNumberValueback to summary
private static final String alignNumberValue(Integer columnDecimalPlaces, String value)
createContentback to summary
pack-priv static final DocumentFragment createContent(DocumentBuilder builder, Document doc, String text)
decimalPlacesback to summary
private static final int decimalPlaces(String value)
defaultJSONFormatback to summary
pack-priv final JSONFormat defaultJSONFormat()

Implements abstract org.jooq.impl.AbstractFormattable.defaultJSONFormat.

Annotations
@Override
defaultXMLFormatback to summary
pack-priv final XMLFormat defaultXMLFormat()

Implements abstract org.jooq.impl.AbstractFormattable.defaultXMLFormat.

Annotations
@Override
escapeXMLback to summary
private static final String escapeXML(String string)
fieldsRowback to summary
public final Row fieldsRow()

Implements org.jooq.Fields.fieldsRow.

Doc from org.jooq.Fields.fieldsRow.

Get all fields known to this type as a Row.

Annotations
@Override
formatback to summary
public final void format(Writer writer, TXTFormat format)

Implements org.jooq.Formattable.format.

Doc from org.jooq.Formattable.format.

Like format(TXTFormat), but the data is output onto a Writer.

Annotations
@Override
format0back to summary
pack-priv static final String format0(Object value, boolean changed, boolean visual)
Parameters
value:Object

The value to be formatted

visual:boolean

Whether the formatted output is to be consumed visually (HTML, TEXT) or by a machine (CSV, JSON, XML)

formatChartback to summary
public final void formatChart(Writer writer, ChartFormat format)

Implements org.jooq.Formattable.formatChart.

Doc from org.jooq.Formattable.formatChart.

Like formatChart(ChartFormat), but the data is output onto a Writer.

Annotations
@SuppressWarnings:unchecked
@Override
formatCSVback to summary
public final void formatCSV(Writer writer, CSVFormat format)

Implements org.jooq.Formattable.formatCSV.

Doc from org.jooq.Formattable.formatCSV.

Like formatCSV(CSVFormat), but the data is output onto a Writer.

Annotations
@Override
formatCSV0back to summary
private static final String formatCSV0(Object value, CSVFormat format)
formatHorizontalLineback to summary
private final void formatHorizontalLine(Writer writer, TXTFormat format, final int[] widths) throws IOException
formatHTMLback to summary
public final void formatHTML(Writer writer)

Implements org.jooq.Formattable.formatHTML.

Doc from org.jooq.Formattable.formatHTML.

Like formatHTML(), but the data is output onto a Writer.

Annotations
@Override
formatInsertback to summary
public final void formatInsert(Writer writer)

Implements org.jooq.Formattable.formatInsert.

Doc from org.jooq.Formattable.formatInsert.

Like formatInsert(), but the data is output onto a Writer.

Annotations
@Override
formatInsertback to summary
public final void formatInsert(Writer writer, Table<?> table, Field<?>... f)

Implements org.jooq.Formattable.formatInsert.

Doc from org.jooq.Formattable.formatInsert.

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Like formatInsert(Table, Field...), but the data is output onto an Writer.

Annotations
@Override
formatJSONback to summary
public final void formatJSON(Writer writer, JSONFormat format)

Implements org.jooq.Formattable.formatJSON.

Doc from org.jooq.Formattable.formatJSON.

Like formatJSON(JSONFormat), but the data is output onto a Writer.

Annotations
@Override
formatJSON0back to summary
pack-priv static final void formatJSON0(Object value, Writer writer, JSONFormat format) throws IOException
formatJSONArray0back to summary
pack-priv static final void formatJSONArray0(Record record, AbstractRow<?> fields, JSONFormat format, int recordLevel, Writer writer) throws IOException
formatJSONMap0back to summary
pack-priv static final void formatJSONMap0(Record record, AbstractRow<?> fields, JSONFormat format, int recordLevel, Writer writer) throws IOException
formatTypeNameback to summary
private final String formatTypeName(Field<?> field)

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

formatXMLback to summary
public final void formatXML(Writer writer, XMLFormat format)

Implements org.jooq.Formattable.formatXML.

Doc from org.jooq.Formattable.formatXML.

Like formatXML(XMLFormat), but the data is output onto a Writer.

Annotations
@Override
formatXMLRecordback to summary
pack-priv static final void formatXMLRecord(Writer writer, XMLFormat format, int recordLevel, Record record, AbstractRow<?> fields) throws IOException
intoXMLback to summary
public final Document intoXML(XMLFormat format)

Overrides org.jooq.impl.AbstractFormattable.intoXML.

Implements org.jooq.Formattable.intoXML, org.jooq.Formattable.intoXML.

Doc from org.jooq.Formattable.intoXML.

Get this result as XML.

Annotations
@Override
intoXMLback to summary
public final <H extends ContentHandler> H intoXML(H handler, XMLFormat format) throws SAXException

Implements org.jooq.Formattable.intoXML.

Doc from org.jooq.Formattable.intoXML.

Get this result as XML using a SAX ContentHandler.

Parameters
handler:H

The custom content handler.

Returns:H

The argument content handler is returned for convenience.

Annotations
@Override
nullSafeback to summary
private final R nullSafe(R r)
Annotations
@SuppressWarnings:unchecked
recordTypeback to summary
public final FieldsImpl<R> recordType()