- java.lang.Object
-
- org.jooq.impl.ArrayRecordImpl<T>
-
- All Implemented Interfaces:
Serializable
,Iterable<T>
,Collection<T>
,List<T>
,ArrayRecord<T>
,Attachable
,Formattable
@Pro @Internal public class ArrayRecordImpl<T> extends Object implements ArrayRecord<T>
A common base class for Oracle ARRAY typesThis type is for JOOQ INTERNAL USE only. Do not reference directly
- Author:
- Lukas Eder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ArrayRecordImpl(Schema schema, String name, DataType<T> type)
Create an empty array recordprotected
ArrayRecordImpl(Schema schema, String name, DataType<T> type, Configuration configuration)
Deprecated.- 3.4.0 - [#3126] - Use theArrayRecordImpl(Schema, String, DataType)
constructor insteadprotected
ArrayRecordImpl(Schema schema, String name, DataType<X> type, Binding<X,Y> binding)
Create an empty array recordprotected
ArrayRecordImpl(Schema schema, String name, DataType<X> type, Configuration configuration, Binding<X,Y> binding)
Deprecated.- 3.4.0 - [#3126] - Use theArrayRecordImpl(Schema, String, DataType, Converter)
constructor instead.protected
ArrayRecordImpl(Schema schema, String name, DataType<X> type, Configuration configuration, Converter<X,T> converter)
Deprecated.- 3.4.0 - [#3126] - Use theArrayRecordImpl(Schema, String, DataType, Converter)
constructor instead.protected
ArrayRecordImpl(Schema schema, String name, DataType<X> type, Configuration configuration, Converter<Y,T> converter, Binding<X,Y> binding)
Deprecated.- 3.4.0 - [#3126] - Use theArrayRecordImpl(Schema, String, DataType, Converter)
constructor instead.protected
ArrayRecordImpl(Schema schema, String name, DataType<X> type, Converter<X,T> converter)
Create an empty array recordprotected
ArrayRecordImpl(Schema schema, String name, DataType<X> type, Converter<Y,T> converter, Binding<X,Y> binding)
Create an empty array recordprotected
ArrayRecordImpl(Schema schema, Package pkg, String name, DataType<T> type)
Create an empty array recordprotected
ArrayRecordImpl(Schema schema, Package pkg, String name, DataType<X> type, Binding<X,Y> binding)
Create an empty array recordprotected
ArrayRecordImpl(Schema schema, Package pkg, String name, DataType<X> type, Converter<X,T> converter)
Create an empty array recordprotected
ArrayRecordImpl(Schema schema, Package pkg, String name, DataType<X> type, Converter<Y,T> converter, Binding<X,Y> binding)
Create an empty array record
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
add(int index, T element)
boolean
add(T e)
boolean
addAll(int index, Collection<? extends T> c)
boolean
addAll(Collection<? extends T> c)
void
attach(Configuration c)
Attach this object to a newConfiguration
.void
clear()
Configuration
configuration()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
protected DSLContext
create()
Deprecated.- 3.11.0 - [#6720] [#6721] - UseAttachable.configuration()
andConfiguration.dsl()
instead.void
detach()
Detach this object from its currentConfiguration
.boolean
equals(Object o)
String
format()
Get a simple formatted representation of this result.String
format(int maxRecords)
Get a simple formatted representation of this result.void
format(OutputStream stream)
LikeFormattable.format()
, but the data is output onto anOutputStream
.void
format(OutputStream stream, int maxRecords)
LikeFormattable.format(int)
, but the data is output onto anOutputStream
.void
format(OutputStream stream, TXTFormat format)
LikeFormattable.format(TXTFormat)
, but the data is output onto anOutputStream
.void
format(Writer writer)
LikeFormattable.format()
, but the data is output onto aWriter
.void
format(Writer writer, int maxRecords)
LikeFormattable.format(int)
, but the data is output onto aWriter
.void
format(Writer writer, TXTFormat format)
LikeFormattable.format(TXTFormat)
, but the data is output onto aWriter
.String
format(TXTFormat format)
Get a simple formatted representation of this result.String
formatChart()
void
formatChart(OutputStream stream)
LikeFormattable.formatChart()
, but the data is output onto anOutputStream
.void
formatChart(OutputStream stream, ChartFormat format)
LikeFormattable.formatChart(ChartFormat)
, but the data is output onto anOutputStream
.void
formatChart(Writer writer)
LikeFormattable.formatChart()
, but the data is output onto aWriter
.void
formatChart(Writer writer, ChartFormat format)
LikeFormattable.formatChart(ChartFormat)
, but the data is output onto aWriter
.String
formatChart(ChartFormat format)
String
formatCSV()
Get a simple formatted representation of this result as CSV.String
formatCSV(boolean header)
Get a simple formatted representation of this result as CSV.String
formatCSV(boolean header, char delimiter)
Get a simple formatted representation of this result as CSV.String
formatCSV(boolean header, char delimiter, String nullString)
Get a simple formatted representation of this result as CSV.String
formatCSV(char delimiter)
Get a simple formatted representation of this result as CSV.String
formatCSV(char delimiter, String nullString)
Get a simple formatted representation of this result as CSV.void
formatCSV(OutputStream stream)
LikeFormattable.formatCSV()
, but the data is output onto anOutputStream
.void
formatCSV(OutputStream stream, boolean header)
LikeFormattable.formatCSV(boolean)
, but the data is output onto anOutputStream
.void
formatCSV(OutputStream stream, boolean header, char delimiter)
LikeFormattable.formatCSV(boolean, char)
, but the data is output onto anOutputStream
.void
formatCSV(OutputStream stream, boolean header, char delimiter, String nullString)
LikeFormattable.formatCSV(boolean, char, String)
, but the data is output onto anOutputStream
.void
formatCSV(OutputStream stream, char delimiter)
LikeFormattable.formatCSV(char)
, but the data is output onto anOutputStream
.void
formatCSV(OutputStream stream, char delimiter, String nullString)
LikeFormattable.formatCSV(char, String)
, but the data is output onto anOutputStream
.void
formatCSV(OutputStream stream, CSVFormat format)
LikeFormattable.formatCSV(CSVFormat)
, but the data is output onto anOutputStream
.void
formatCSV(Writer writer)
LikeFormattable.formatCSV()
, but the data is output onto aWriter
.void
formatCSV(Writer writer, boolean header)
LikeFormattable.formatCSV(boolean)
, but the data is output onto aWriter
.void
formatCSV(Writer writer, boolean header, char delimiter)
LikeFormattable.formatCSV(boolean, char)
, but the data is output onto aWriter
.void
formatCSV(Writer writer, boolean header, char delimiter, String nullString)
LikeFormattable.formatCSV(boolean, char, String)
, but the data is output onto aWriter
.void
formatCSV(Writer writer, char delimiter)
LikeFormattable.formatCSV(char)
, but the data is output onto aWriter
.void
formatCSV(Writer writer, char delimiter, String nullString)
LikeFormattable.formatCSV(char, String)
, but the data is output onto aWriter
.void
formatCSV(Writer writer, CSVFormat format)
LikeFormattable.formatCSV(CSVFormat)
, but the data is output onto aWriter
.String
formatCSV(CSVFormat format)
Get a simple formatted representation of this result as CSV.String
formatHTML()
Get a simple formatted representation of this result as HTML.void
formatHTML(OutputStream stream)
LikeFormattable.formatHTML()
, but the data is output onto anOutputStream
.void
formatHTML(Writer writer)
LikeFormattable.formatHTML()
, but the data is output onto aWriter
.String
formatInsert()
Get this result as a set ofINSERT
statements.void
formatInsert(OutputStream stream)
LikeFormattable.formatInsert()
, but the data is output onto anOutputStream
.void
formatInsert(OutputStream stream, Table<?> table, Field<?>... f)
LikeFormattable.formatInsert(Table, Field...)
, but the data is output onto anOutputStream
.void
formatInsert(Writer writer)
LikeFormattable.formatInsert()
, but the data is output onto aWriter
.void
formatInsert(Writer writer, Table<?> table, Field<?>... fields)
LikeFormattable.formatInsert(Table, Field...)
, but the data is output onto anWriter
.String
formatInsert(Table<?> table, Field<?>... f)
Get this result as a set ofINSERT
statements.String
formatJSON()
Get a simple formatted representation of this result as a JSON array of array.void
formatJSON(OutputStream stream)
LikeFormattable.formatJSON()
, but the data is output onto anOutputStream
.void
formatJSON(OutputStream stream, JSONFormat format)
LikeFormattable.formatJSON(JSONFormat)
, but the data is output onto anOutputStream
.void
formatJSON(Writer writer)
LikeFormattable.formatJSON()
, but the data is output onto aWriter
.void
formatJSON(Writer writer, JSONFormat format)
LikeFormattable.formatJSON(JSONFormat)
, but the data is output onto aWriter
.String
formatJSON(JSONFormat format)
Get a simple formatted representation of this result as a JSON data structure, according to the format.String
formatXML()
Get this result formatted as XML.void
formatXML(OutputStream stream)
LikeFormattable.formatXML()
, but the data is output onto anOutputStream
.void
formatXML(OutputStream stream, XMLFormat format)
LikeFormattable.formatXML(XMLFormat)
, but the data is output onto anOutputStream
.void
formatXML(Writer writer)
LikeFormattable.formatXML()
, but the data is output onto aWriter
.void
formatXML(Writer writer, XMLFormat format)
LikeFormattable.formatXML(XMLFormat)
, but the data is output onto aWriter
.String
formatXML(XMLFormat format)
Get this result formatted as XML.T[]
get()
Deprecated.T
get(int index)
DataType<?>
getArrayType()
Get the data type of the array.Catalog
getCatalog()
Get the record type's catalog.DataType<T>
getDataType()
Get the data type of the array's base type.List<T>
getList()
Deprecated.String
getName()
Get the unqualified name of the array type.Package
getPackage()
Get the UDT package.Schema
getSchema()
Get the record type's schema.int
hashCode()
int
indexOf(Object o)
Document
intoXML()
Get this result as XML.<H extends ContentHandler>
HintoXML(H handler)
Get this result as XML using a SAXContentHandler
.<H extends ContentHandler>
HintoXML(H handler, XMLFormat format)
Get this result as XML using a SAXContentHandler
.Document
intoXML(XMLFormat format)
Get this result as XML.boolean
isEmpty()
boolean
isSQLUsable()
Whether this data type can be used from SQL statements.Iterator<T>
iterator()
int
lastIndexOf(Object o)
ListIterator<T>
listIterator()
ListIterator<T>
listIterator(int index)
T
remove(int index)
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
retainAll(Collection<?> c)
T
set(int index, T element)
void
set(Array array)
Deprecated.void
set(Collection<? extends T> collection)
Deprecated.void
set(T... array)
Deprecated.void
setList(List<? extends T> list)
Deprecated.int
size()
List<T>
subList(int fromIndex, int toIndex)
Object[]
toArray()
<Z> Z[]
toArray(Z[] a)
String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jooq.Attachable
attach, configuration, detach
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
ArrayRecordImpl
@Deprecated protected ArrayRecordImpl(Schema schema, String name, DataType<T> type, Configuration configuration)
Deprecated.- 3.4.0 - [#3126] - Use theArrayRecordImpl(Schema, String, DataType)
constructor insteadCreate an empty array record
-
ArrayRecordImpl
@Deprecated protected ArrayRecordImpl(Schema schema, String name, DataType<X> type, Configuration configuration, Converter<X,T> converter)
Deprecated.- 3.4.0 - [#3126] - Use theArrayRecordImpl(Schema, String, DataType, Converter)
constructor instead.Create an empty array record
-
ArrayRecordImpl
@Deprecated protected ArrayRecordImpl(Schema schema, String name, DataType<X> type, Configuration configuration, Binding<X,Y> binding)
Deprecated.- 3.4.0 - [#3126] - Use theArrayRecordImpl(Schema, String, DataType, Converter)
constructor instead.Create an empty array record
-
ArrayRecordImpl
@Deprecated protected ArrayRecordImpl(Schema schema, String name, DataType<X> type, Configuration configuration, Converter<Y,T> converter, Binding<X,Y> binding)
Deprecated.- 3.4.0 - [#3126] - Use theArrayRecordImpl(Schema, String, DataType, Converter)
constructor instead.Create an empty array record
-
ArrayRecordImpl
protected ArrayRecordImpl(Schema schema, String name, DataType<T> type)
Create an empty array record
-
ArrayRecordImpl
protected ArrayRecordImpl(Schema schema, Package pkg, String name, DataType<T> type)
Create an empty array record
-
ArrayRecordImpl
protected ArrayRecordImpl(Schema schema, String name, DataType<X> type, Converter<X,T> converter)
Create an empty array record
-
ArrayRecordImpl
protected ArrayRecordImpl(Schema schema, Package pkg, String name, DataType<X> type, Converter<X,T> converter)
Create an empty array record
-
ArrayRecordImpl
protected ArrayRecordImpl(Schema schema, String name, DataType<X> type, Binding<X,Y> binding)
Create an empty array record
-
ArrayRecordImpl
protected ArrayRecordImpl(Schema schema, Package pkg, String name, DataType<X> type, Binding<X,Y> binding)
Create an empty array record
-
ArrayRecordImpl
protected ArrayRecordImpl(Schema schema, String name, DataType<X> type, Converter<Y,T> converter, Binding<X,Y> binding)
Create an empty array record
-
-
Method Detail
-
get
@Deprecated public final T[] get()
Deprecated.Description copied from interface:ArrayRecord
Get the contained array.- Specified by:
get
in interfaceArrayRecord<T>
-
getList
@Deprecated public final List<T> getList()
Deprecated.Description copied from interface:ArrayRecord
Get the contained array as aList
.- Specified by:
getList
in interfaceArrayRecord<T>
-
set
@Deprecated public final void set(T... array)
Deprecated.Description copied from interface:ArrayRecord
Set the contained array.- Specified by:
set
in interfaceArrayRecord<T>
-
set
@Deprecated public final void set(Array array) throws SQLException
Deprecated.Description copied from interface:ArrayRecord
Set the contained array.- Specified by:
set
in interfaceArrayRecord<T>
- Throws:
SQLException
-
set
@Deprecated public final void set(Collection<? extends T> collection)
Deprecated.Description copied from interface:ArrayRecord
Set the contained array as aList
.- Specified by:
set
in interfaceArrayRecord<T>
-
setList
@Deprecated public final void setList(List<? extends T> list)
Deprecated.Description copied from interface:ArrayRecord
Set the contained array as aList
.- Specified by:
setList
in interfaceArrayRecord<T>
-
getCatalog
public final Catalog getCatalog()
Description copied from interface:ArrayRecord
Get the record type's catalog.- Specified by:
getCatalog
in interfaceArrayRecord<T>
-
getSchema
public final Schema getSchema()
Description copied from interface:ArrayRecord
Get the record type's schema.- Specified by:
getSchema
in interfaceArrayRecord<T>
-
getPackage
public final Package getPackage()
Description copied from interface:ArrayRecord
Get the UDT package.- Specified by:
getPackage
in interfaceArrayRecord<T>
-
isSQLUsable
public final boolean isSQLUsable()
Description copied from interface:ArrayRecord
Whether this data type can be used from SQL statements.- Specified by:
isSQLUsable
in interfaceArrayRecord<T>
-
getName
public final String getName()
Description copied from interface:ArrayRecord
Get the unqualified name of the array type.- Specified by:
getName
in interfaceArrayRecord<T>
-
getDataType
public final DataType<T> getDataType()
Description copied from interface:ArrayRecord
Get the data type of the array's base type.- Specified by:
getDataType
in interfaceArrayRecord<T>
-
getArrayType
public final DataType<?> getArrayType()
Description copied from interface:ArrayRecord
Get the data type of the array.- Specified by:
getArrayType
in interfaceArrayRecord<T>
-
size
public final int size()
-
isEmpty
public final boolean isEmpty()
-
contains
public final boolean contains(Object o)
-
toArray
public final Object[] toArray()
-
toArray
public final <Z> Z[] toArray(Z[] a)
-
add
public final boolean add(T e)
-
remove
public final boolean remove(Object o)
-
containsAll
public final boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceCollection<T>
- Specified by:
containsAll
in interfaceList<T>
-
addAll
public final boolean addAll(Collection<? extends T> c)
-
addAll
public final boolean addAll(int index, Collection<? extends T> c)
-
removeAll
public final boolean removeAll(Collection<?> c)
-
retainAll
public final boolean retainAll(Collection<?> c)
-
clear
public final void clear()
-
equals
public final boolean equals(Object o)
-
hashCode
public final int hashCode()
-
lastIndexOf
public final int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<T>
-
listIterator
public final ListIterator<T> listIterator()
- Specified by:
listIterator
in interfaceList<T>
-
listIterator
public final ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interfaceList<T>
-
format
public final void format(Writer writer, TXTFormat format)
Description copied from interface:Formattable
LikeFormattable.format(TXTFormat)
, but the data is output onto aWriter
.- Specified by:
format
in interfaceFormattable
-
formatHTML
public final void formatHTML(Writer writer)
Description copied from interface:Formattable
LikeFormattable.formatHTML()
, but the data is output onto aWriter
.- Specified by:
formatHTML
in interfaceFormattable
-
formatCSV
public final void formatCSV(Writer writer, CSVFormat format)
Description copied from interface:Formattable
LikeFormattable.formatCSV(CSVFormat)
, but the data is output onto aWriter
.- Specified by:
formatCSV
in interfaceFormattable
-
formatJSON
public final void formatJSON(Writer writer, JSONFormat format)
Description copied from interface:Formattable
LikeFormattable.formatJSON(JSONFormat)
, but the data is output onto aWriter
.- Specified by:
formatJSON
in interfaceFormattable
-
formatXML
public final void formatXML(Writer writer, XMLFormat format)
Description copied from interface:Formattable
LikeFormattable.formatXML(XMLFormat)
, but the data is output onto aWriter
.- Specified by:
formatXML
in interfaceFormattable
-
formatChart
public final void formatChart(Writer writer, ChartFormat format)
Description copied from interface:Formattable
LikeFormattable.formatChart(ChartFormat)
, but the data is output onto aWriter
.- Specified by:
formatChart
in interfaceFormattable
-
formatInsert
public final void formatInsert(Writer writer)
Description copied from interface:Formattable
LikeFormattable.formatInsert()
, but the data is output onto aWriter
.- Specified by:
formatInsert
in interfaceFormattable
-
formatInsert
public final void formatInsert(Writer writer, Table<?> table, Field<?>... fields)
Description copied from interface:Formattable
LikeFormattable.formatInsert(Table, Field...)
, but the data is output onto anWriter
.- Specified by:
formatInsert
in interfaceFormattable
-
intoXML
public final Document intoXML(XMLFormat format)
Description copied from interface:Formattable
Get this result as XML.- Specified by:
intoXML
in interfaceFormattable
- See Also:
Formattable.formatXML()
, http://www.jooq.org/xsd/jooq-export-3.10.0.xsd
-
intoXML
public final <H extends ContentHandler> H intoXML(H handler, XMLFormat format) throws SAXException
Description copied from interface:Formattable
Get this result as XML using a SAXContentHandler
.- Specified by:
intoXML
in interfaceFormattable
- Parameters:
handler
- The custom content handler.- Returns:
- The argument content handler is returned for convenience.
- Throws:
SAXException
- See Also:
Formattable.formatXML()
, http://www.jooq.org/xsd/jooq-export-3.10.0.xsd
-
attach
public final void attach(Configuration c)
Description copied from interface:Attachable
Attach this object to a newConfiguration
.- Specified by:
attach
in interfaceAttachable
- Parameters:
c
- A configuration ornull
, if you wish to detach thisAttachable
from its previous configuration.
-
detach
public final void detach()
Description copied from interface:Attachable
Detach this object from its currentConfiguration
.This is the same as calling
attach(null)
.- Specified by:
detach
in interfaceAttachable
-
configuration
public final Configuration configuration()
Description copied from interface:Attachable
- Specified by:
configuration
in interfaceAttachable
-
create
@Deprecated protected final DSLContext create()
Deprecated.- 3.11.0 - [#6720] [#6721] - UseAttachable.configuration()
andConfiguration.dsl()
instead.This method is used in generated code!
-
format
public final String format()
Description copied from interface:Formattable
Get a simple formatted representation of this result.This is the same as calling
Formattable.format(int)
withmaxRows = Integer.MAX_VALUE
- Specified by:
format
in interfaceFormattable
- Returns:
- The formatted result
-
format
public final String format(int maxRecords)
Description copied from interface:Formattable
Get a simple formatted representation of this result.- Specified by:
format
in interfaceFormattable
- Parameters:
maxRecords
- The maximum number of records to include in the formatted result- Returns:
- The formatted result
-
format
public final String format(TXTFormat format)
Description copied from interface:Formattable
Get a simple formatted representation of this result.- Specified by:
format
in interfaceFormattable
- Parameters:
format
- The formatting information- Returns:
- The formatted result
-
format
public final void format(OutputStream stream)
Description copied from interface:Formattable
LikeFormattable.format()
, but the data is output onto anOutputStream
.- Specified by:
format
in interfaceFormattable
-
format
public final void format(OutputStream stream, int maxRecords)
Description copied from interface:Formattable
LikeFormattable.format(int)
, but the data is output onto anOutputStream
.- Specified by:
format
in interfaceFormattable
-
format
public final void format(OutputStream stream, TXTFormat format)
Description copied from interface:Formattable
LikeFormattable.format(TXTFormat)
, but the data is output onto anOutputStream
.- Specified by:
format
in interfaceFormattable
-
format
public final void format(Writer writer)
Description copied from interface:Formattable
LikeFormattable.format()
, but the data is output onto aWriter
.- Specified by:
format
in interfaceFormattable
-
format
public final void format(Writer writer, int maxRecords)
Description copied from interface:Formattable
LikeFormattable.format(int)
, but the data is output onto aWriter
.- Specified by:
format
in interfaceFormattable
-
formatCSV
public final String formatCSV()
Description copied from interface:Formattable
Get a simple formatted representation of this result as CSV.This is the same as calling
formatCSV(true, ',', "")
- Specified by:
formatCSV
in interfaceFormattable
- Returns:
- The formatted result
-
formatCSV
public final String formatCSV(boolean header)
Description copied from interface:Formattable
Get a simple formatted representation of this result as CSV.This is the same as calling
formatCSV(',', "")
- Specified by:
formatCSV
in interfaceFormattable
- Parameters:
header
- Whether to emit a CSV header line- Returns:
- The formatted result
-
formatCSV
public final void formatCSV(OutputStream stream)
Description copied from interface:Formattable
LikeFormattable.formatCSV()
, but the data is output onto anOutputStream
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final void formatCSV(OutputStream stream, boolean header)
Description copied from interface:Formattable
LikeFormattable.formatCSV(boolean)
, but the data is output onto anOutputStream
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final void formatCSV(Writer writer)
Description copied from interface:Formattable
LikeFormattable.formatCSV()
, but the data is output onto aWriter
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final void formatCSV(Writer writer, boolean header)
Description copied from interface:Formattable
LikeFormattable.formatCSV(boolean)
, but the data is output onto aWriter
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final String formatCSV(char delimiter)
Description copied from interface:Formattable
Get a simple formatted representation of this result as CSV.This is the same as calling
formatCSV(true, delimiter, "")
- Specified by:
formatCSV
in interfaceFormattable
- Parameters:
delimiter
- The delimiter to use between records- Returns:
- The formatted result
-
formatCSV
public final String formatCSV(boolean header, char delimiter)
Description copied from interface:Formattable
Get a simple formatted representation of this result as CSV.This is the same as calling
formatCSV(delimiter, "")
- Specified by:
formatCSV
in interfaceFormattable
- Parameters:
header
- Whether to emit a CSV header linedelimiter
- The delimiter to use between records- Returns:
- The formatted result
-
formatCSV
public final void formatCSV(OutputStream stream, char delimiter)
Description copied from interface:Formattable
LikeFormattable.formatCSV(char)
, but the data is output onto anOutputStream
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final void formatCSV(OutputStream stream, boolean header, char delimiter)
Description copied from interface:Formattable
LikeFormattable.formatCSV(boolean, char)
, but the data is output onto anOutputStream
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final void formatCSV(Writer writer, char delimiter)
Description copied from interface:Formattable
LikeFormattable.formatCSV(char)
, but the data is output onto aWriter
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final void formatCSV(Writer writer, boolean header, char delimiter)
Description copied from interface:Formattable
LikeFormattable.formatCSV(boolean, char)
, but the data is output onto aWriter
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final String formatCSV(char delimiter, String nullString)
Description copied from interface:Formattable
Get a simple formatted representation of this result as CSV.This is the same as calling
formatCSV(true, delimiter, nullString)
- Specified by:
formatCSV
in interfaceFormattable
- Parameters:
delimiter
- The delimiter to use between recordsnullString
- A special string for encodingNULL
values.- Returns:
- The formatted result
-
formatCSV
public final String formatCSV(boolean header, char delimiter, String nullString)
Description copied from interface:Formattable
Get a simple formatted representation of this result as CSV.- Specified by:
formatCSV
in interfaceFormattable
- Parameters:
header
- Whether to emit a CSV header linedelimiter
- The delimiter to use between recordsnullString
- A special string for encodingNULL
values.- Returns:
- The formatted result
-
formatCSV
public final String formatCSV(CSVFormat format)
Description copied from interface:Formattable
Get a simple formatted representation of this result as CSV.- Specified by:
formatCSV
in interfaceFormattable
- Returns:
- The formatted result
-
formatCSV
public final void formatCSV(OutputStream stream, char delimiter, String nullString)
Description copied from interface:Formattable
LikeFormattable.formatCSV(char, String)
, but the data is output onto anOutputStream
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final void formatCSV(OutputStream stream, boolean header, char delimiter, String nullString)
Description copied from interface:Formattable
LikeFormattable.formatCSV(boolean, char, String)
, but the data is output onto anOutputStream
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final void formatCSV(OutputStream stream, CSVFormat format)
Description copied from interface:Formattable
LikeFormattable.formatCSV(CSVFormat)
, but the data is output onto anOutputStream
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final void formatCSV(Writer writer, char delimiter, String nullString)
Description copied from interface:Formattable
LikeFormattable.formatCSV(char, String)
, but the data is output onto aWriter
.- Specified by:
formatCSV
in interfaceFormattable
-
formatCSV
public final void formatCSV(Writer writer, boolean header, char delimiter, String nullString)
Description copied from interface:Formattable
LikeFormattable.formatCSV(boolean, char, String)
, but the data is output onto aWriter
.- Specified by:
formatCSV
in interfaceFormattable
-
formatJSON
public final String formatJSON()
Description copied from interface:Formattable
Get a simple formatted representation of this result as a JSON array of array.The format is the following:
{"fields":[{"name":"field-1","type":"type-1"}, {"name":"field-2","type":"type-2"}, ..., {"name":"field-n","type":"type-n"}], "records":[[value-1-1,value-1-2,...,value-1-n], [value-2-1,value-2-2,...,value-2-n]]}
- Specified by:
formatJSON
in interfaceFormattable
- Returns:
- The formatted result
-
formatJSON
public final String formatJSON(JSONFormat format)
Description copied from interface:Formattable
Get a simple formatted representation of this result as a JSON data structure, according to the format.- Specified by:
formatJSON
in interfaceFormattable
- Returns:
- The formatted result
- See Also:
JSONFormat
-
formatJSON
public final void formatJSON(OutputStream stream)
Description copied from interface:Formattable
LikeFormattable.formatJSON()
, but the data is output onto anOutputStream
.- Specified by:
formatJSON
in interfaceFormattable
-
formatJSON
public final void formatJSON(OutputStream stream, JSONFormat format)
Description copied from interface:Formattable
LikeFormattable.formatJSON(JSONFormat)
, but the data is output onto anOutputStream
.- Specified by:
formatJSON
in interfaceFormattable
-
formatJSON
public final void formatJSON(Writer writer)
Description copied from interface:Formattable
LikeFormattable.formatJSON()
, but the data is output onto aWriter
.- Specified by:
formatJSON
in interfaceFormattable
-
formatXML
public final String formatXML()
Description copied from interface:Formattable
Get this result formatted as XML.- Specified by:
formatXML
in interfaceFormattable
- See Also:
- http://www.jooq.org/xsd/jooq-export-3.10.0.xsd
-
formatXML
public final String formatXML(XMLFormat format)
Description copied from interface:Formattable
Get this result formatted as XML.- Specified by:
formatXML
in interfaceFormattable
- See Also:
- http://www.jooq.org/xsd/jooq-export-3.10.0.xsd
-
formatXML
public final void formatXML(OutputStream stream)
Description copied from interface:Formattable
LikeFormattable.formatXML()
, but the data is output onto anOutputStream
.- Specified by:
formatXML
in interfaceFormattable
-
formatXML
public final void formatXML(OutputStream stream, XMLFormat format)
Description copied from interface:Formattable
LikeFormattable.formatXML(XMLFormat)
, but the data is output onto anOutputStream
.- Specified by:
formatXML
in interfaceFormattable
-
formatXML
public final void formatXML(Writer writer)
Description copied from interface:Formattable
LikeFormattable.formatXML()
, but the data is output onto aWriter
.- Specified by:
formatXML
in interfaceFormattable
-
formatChart
public final String formatChart()
- Specified by:
formatChart
in interfaceFormattable
-
formatChart
public final String formatChart(ChartFormat format)
- Specified by:
formatChart
in interfaceFormattable
-
formatChart
public final void formatChart(OutputStream stream)
Description copied from interface:Formattable
LikeFormattable.formatChart()
, but the data is output onto anOutputStream
.- Specified by:
formatChart
in interfaceFormattable
-
formatChart
public final void formatChart(OutputStream stream, ChartFormat format)
Description copied from interface:Formattable
LikeFormattable.formatChart(ChartFormat)
, but the data is output onto anOutputStream
.- Specified by:
formatChart
in interfaceFormattable
-
formatChart
public final void formatChart(Writer writer)
Description copied from interface:Formattable
LikeFormattable.formatChart()
, but the data is output onto aWriter
.- Specified by:
formatChart
in interfaceFormattable
-
formatInsert
public final String formatInsert()
Description copied from interface:Formattable
Get this result as a set ofINSERT
statements.This uses the the first record's
TableRecord.getTable()
, if the first record is aTableRecord
. Otherwise, this generatesINSERT
statements into an"UNKNOWN_TABLE"
. In both cases, theResult.fields()
are used for column names.- Specified by:
formatInsert
in interfaceFormattable
-
formatInsert
public final void formatInsert(OutputStream stream)
Description copied from interface:Formattable
LikeFormattable.formatInsert()
, but the data is output onto anOutputStream
.- Specified by:
formatInsert
in interfaceFormattable
-
formatInsert
public final String formatInsert(Table<?> table, Field<?>... f)
Description copied from interface:Formattable
Get this result as a set ofINSERT
statements.This explicitly specifies the table (and optionally the fields) to insert into. If the
fields
argument is left empty, theResult.fields()
are used, instead.- Specified by:
formatInsert
in interfaceFormattable
-
formatInsert
public final void formatInsert(OutputStream stream, Table<?> table, Field<?>... f)
Description copied from interface:Formattable
LikeFormattable.formatInsert(Table, Field...)
, but the data is output onto anOutputStream
.- Specified by:
formatInsert
in interfaceFormattable
-
formatHTML
public final String formatHTML()
Description copied from interface:Formattable
Get a simple formatted representation of this result as HTML.The HTML code is formatted as follows:
<table> <thead> <tr> <th>field-1</th> <th>field-2</th> ... <th>field-n</th> </tr> </thead> <tbody> <tr> <th>value-1-1</th> <th>value-1-2</th> ... <th>value-1-n</th> </tr> <tr> <th>value-2-1</th> <th>value-2-2</th> ... <th>value-2-n</th> </tr> ... </tbody> </table>
- Specified by:
formatHTML
in interfaceFormattable
- Returns:
- The formatted result
-
formatHTML
public final void formatHTML(OutputStream stream)
Description copied from interface:Formattable
LikeFormattable.formatHTML()
, but the data is output onto anOutputStream
.- Specified by:
formatHTML
in interfaceFormattable
-
intoXML
public final Document intoXML()
Description copied from interface:Formattable
Get this result as XML.- Specified by:
intoXML
in interfaceFormattable
- See Also:
Formattable.formatXML()
, http://www.jooq.org/xsd/jooq-export-3.10.0.xsd
-
intoXML
public final <H extends ContentHandler> H intoXML(H handler) throws SAXException
Description copied from interface:Formattable
Get this result as XML using a SAXContentHandler
.- Specified by:
intoXML
in interfaceFormattable
- Parameters:
handler
- The custom content handler.- Returns:
- The argument content handler is returned for convenience.
- Throws:
SAXException
- See Also:
Formattable.formatXML()
, http://www.jooq.org/xsd/jooq-export-3.10.0.xsd
-
-