R
- The record type contained in this resultpublic interface Result<R extends Record> extends java.util.List<R>, Attachable
SelectQuery
ResultQuery.getResult()
Modifier and Type | Method and Description |
---|---|
void |
attach(Configuration configuration)
Attach this result and all of its contained records to a new
Configuration . |
void |
detach()
Detach this result and all of its contained records from their current
Configuration . |
<O extends TableRecord<O>> |
fetchChildren(ForeignKey<O,R> key)
Fetch child records of this record, given a foreign key.
|
<O extends UpdatableRecord<O>> |
fetchParents(ForeignKey<R,O> key)
Fetch parent records of this record, given a foreign key.
|
<T> Field<T> |
field(Field<T> field)
Get a specific field from this Result.
|
Field<?> |
field(int index)
Get a specific field from this Result.
|
<T> Field<T> |
field(int index,
java.lang.Class<T> type)
Get a specific field from this Result, coerced to
type . |
<T> Field<T> |
field(int index,
DataType<T> dataType)
Get a specific field from this Result, coerced to
dataType . |
Field<?> |
field(Name name)
Get a specific field from this Result.
|
<T> Field<T> |
field(Name name,
java.lang.Class<T> type)
Get a specific field from this Result, coerced to
type . |
<T> Field<T> |
field(Name name,
DataType<T> dataType)
Get a specific field from this Result, coerced to
dataType . |
Field<?> |
field(java.lang.String name)
Get a specific field from this Result.
|
<T> Field<T> |
field(java.lang.String name,
java.lang.Class<T> type)
Get a specific field from this Result, coerced to
type . |
<T> Field<T> |
field(java.lang.String name,
DataType<T> dataType)
Get a specific field from this Result, coerced to
dataType . |
Field<?>[] |
fields()
Get all fields from this Result.
|
Field<?>[] |
fields(Field<?>... fields)
Get all fields from this Result, providing some fields.
|
Field<?>[] |
fields(int... fieldIndexes)
Get all fields from this Result, providing some field indexes.
|
Field<?>[] |
fields(Name... fieldNames)
Get all fields from this Result, providing some field names.
|
Field<?>[] |
fields(java.lang.String... fieldNames)
Get all fields from this Result, providing some field names.
|
Row |
fieldsRow()
Get this result's fields as a
Row . |
java.lang.String |
format()
Get a simple formatted representation of this result.
|
java.lang.String |
format(int maxRecords)
Get a simple formatted representation of this result.
|
void |
format(java.io.OutputStream stream)
Like
format() , but the data is output onto an OutputStream . |
void |
format(java.io.OutputStream stream,
int maxRecords)
Like
format(int) , but the data is output onto an OutputStream . |
void |
format(java.io.Writer writer)
Like
format() , but the data is output onto a Writer . |
void |
format(java.io.Writer writer,
int maxRecords)
Like
format(int) , but the data is output onto a Writer . |
java.lang.String |
formatChart() |
java.lang.String |
formatChart(ChartFormat format) |
void |
formatChart(java.io.OutputStream stream)
Like
formatChart() , but the data is output onto an OutputStream . |
void |
formatChart(java.io.OutputStream stream,
ChartFormat format)
Like
formatChart(ChartFormat) , but the data is output onto an OutputStream . |
void |
formatChart(java.io.Writer writer)
Like
formatChart() , but the data is output onto a Writer . |
void |
formatChart(java.io.Writer writer,
ChartFormat format)
Like
formatChart(ChartFormat) , but the data is output onto a Writer . |
java.lang.String |
formatCSV()
Get a simple formatted representation of this result as CSV.
|
java.lang.String |
formatCSV(boolean header)
Get a simple formatted representation of this result as CSV.
|
java.lang.String |
formatCSV(boolean header,
char delimiter)
Get a simple formatted representation of this result as CSV.
|
java.lang.String |
formatCSV(boolean header,
char delimiter,
java.lang.String nullString)
Get a simple formatted representation of this result as CSV.
|
java.lang.String |
formatCSV(char delimiter)
Get a simple formatted representation of this result as CSV.
|
java.lang.String |
formatCSV(char delimiter,
java.lang.String nullString)
Get a simple formatted representation of this result as CSV.
|
java.lang.String |
formatCSV(CSVFormat format)
Get a simple formatted representation of this result as CSV.
|
void |
formatCSV(java.io.OutputStream stream)
Like
formatCSV() , but the data is output onto an OutputStream . |
void |
formatCSV(java.io.OutputStream stream,
boolean header)
Like
formatCSV(boolean) , but the data is output onto an OutputStream . |
void |
formatCSV(java.io.OutputStream stream,
boolean header,
char delimiter)
Like
formatCSV(boolean, char) , but the data is output onto an OutputStream . |
void |
formatCSV(java.io.OutputStream stream,
boolean header,
char delimiter,
java.lang.String nullString)
Like
formatCSV(boolean, char, String) , but the data is output onto an OutputStream . |
void |
formatCSV(java.io.OutputStream stream,
char delimiter)
Like
formatCSV(char) , but the data is output onto an OutputStream . |
void |
formatCSV(java.io.OutputStream stream,
char delimiter,
java.lang.String nullString)
Like
formatCSV(char, String) , but the data is output onto an OutputStream . |
void |
formatCSV(java.io.OutputStream stream,
CSVFormat format)
Like
formatCSV(CSVFormat) , but the data is output onto an OutputStream . |
void |
formatCSV(java.io.Writer writer)
Like
formatCSV() , but the data is output onto a Writer . |
void |
formatCSV(java.io.Writer writer,
boolean header)
Like
formatCSV(boolean) , but the data is output onto a Writer . |
void |
formatCSV(java.io.Writer writer,
boolean header,
char delimiter)
Like
formatCSV(boolean, char) , but the data is output onto a Writer . |
void |
formatCSV(java.io.Writer writer,
boolean header,
char delimiter,
java.lang.String nullString)
Like
formatCSV(boolean, char, String) , but the data is output onto a Writer . |
void |
formatCSV(java.io.Writer writer,
char delimiter)
Like
formatCSV(char) , but the data is output onto a Writer . |
void |
formatCSV(java.io.Writer writer,
char delimiter,
java.lang.String nullString)
Like
formatCSV(char, String) , but the data is output onto a Writer . |
void |
formatCSV(java.io.Writer writer,
CSVFormat format)
Like
formatCSV(CSVFormat) , but the data is output onto a Writer . |
java.lang.String |
formatHTML()
Get a simple formatted representation of this result as HTML.
|
void |
formatHTML(java.io.OutputStream stream)
Like
formatHTML() , but the data is output onto an OutputStream . |
void |
formatHTML(java.io.Writer writer)
Like
formatHTML() , but the data is output onto a Writer . |
java.lang.String |
formatInsert()
Get this result as a set of
INSERT statements. |
void |
formatInsert(java.io.OutputStream stream)
Like
formatInsert() , but the data is output onto an OutputStream . |
void |
formatInsert(java.io.OutputStream stream,
Table<?> table,
Field<?>... fields)
Like
formatInsert(Table, Field...) , but the data is output onto an OutputStream . |
java.lang.String |
formatInsert(Table<?> table,
Field<?>... fields)
Get this result as a set of
INSERT statements. |
void |
formatInsert(java.io.Writer writer)
Like
formatInsert() , but the data is output onto a Writer . |
void |
formatInsert(java.io.Writer writer,
Table<?> table,
Field<?>... fields)
Like
formatInsert(Table, Field...) , but the data is output onto an Writer . |
java.lang.String |
formatJSON()
Get a simple formatted representation of this result as a JSON array of
array.
|
java.lang.String |
formatJSON(JSONFormat format)
Get a simple formatted representation of this result as a JSON data
structure, according to the format.
|
void |
formatJSON(java.io.OutputStream stream)
Like
formatJSON() , but the data is output onto an OutputStream . |
void |
formatJSON(java.io.OutputStream stream,
JSONFormat format)
Like
formatJSON(JSONFormat) , but the data is output onto an OutputStream . |
void |
formatJSON(java.io.Writer writer)
Like
formatJSON() , but the data is output onto a Writer . |
void |
formatJSON(java.io.Writer writer,
JSONFormat format)
Like
formatJSON(JSONFormat) , but the data is output onto a Writer . |
java.lang.String |
formatXML()
Get this result formatted as XML.
|
void |
formatXML(java.io.OutputStream stream)
Like
formatXML() , but the data is output onto an OutputStream . |
void |
formatXML(java.io.OutputStream stream,
XMLFormat format)
Like
formatXML(XMLFormat) , but the data is output onto an OutputStream . |
void |
formatXML(java.io.Writer writer)
Like
formatXML() , but the data is output onto a Writer . |
void |
formatXML(java.io.Writer writer,
XMLFormat format)
Like
formatXML(XMLFormat) , but the data is output onto a Writer . |
java.lang.String |
formatXML(XMLFormat format)
Get this result formatted as XML.
|
<T> T |
getValue(int index,
Field<T> field)
Convenience method to fetch a value at a given position in the result.
|
<T> T |
getValue(int index,
Field<T> field,
T defaultValue)
Deprecated.
- 3.3.0 - [#2878] - This method will be removed in jOOQ 4.0
|
java.lang.Object |
getValue(int index,
int fieldIndex)
Convenience method to fetch a value at a given position in the result.
|
java.lang.Object |
getValue(int index,
int fieldIndex,
java.lang.Object defaultValue)
Deprecated.
- 3.3.0 - [#2878] - This method will be removed in jOOQ 4.0
|
java.lang.Object |
getValue(int index,
java.lang.String fieldName)
Convenience method to fetch a value at a given position in the result.
|
java.lang.Object |
getValue(int index,
java.lang.String fieldName,
java.lang.Object defaultValue)
Deprecated.
- 3.3.0 - [#2878] - This method will be removed in jOOQ 4.0
|
<T> java.util.List<T> |
getValues(Field<?> field,
java.lang.Class<? extends T> type)
Convenience method to fetch all values for a given field.
|
<T> java.util.List<T> |
getValues(Field<T> field)
Convenience method to fetch all values for a given field.
|
<T,U> java.util.List<U> |
getValues(Field<T> field,
Converter<? super T,? extends U> converter)
Convenience method to fetch all values for a given field.
|
java.util.List<?> |
getValues(int fieldIndex)
Convenience method to fetch all values for a given field.
|
<T> java.util.List<T> |
getValues(int fieldIndex,
java.lang.Class<? extends T> type)
Convenience method to fetch all values for a given field.
|
<U> java.util.List<U> |
getValues(int fieldIndex,
Converter<?,? extends U> converter)
Convenience method to fetch all values for a given field.
|
java.util.List<?> |
getValues(Name fieldName)
Convenience method to fetch all values for a given field.
|
<T> java.util.List<T> |
getValues(Name fieldName,
java.lang.Class<? extends T> type)
Convenience method to fetch all values for a given field.
|
<U> java.util.List<U> |
getValues(Name fieldName,
Converter<?,? extends U> converter)
Convenience method to fetch all values for a given field.
|
java.util.List<?> |
getValues(java.lang.String fieldName)
Convenience method to fetch all values for a given field.
|
<T> java.util.List<T> |
getValues(java.lang.String fieldName,
java.lang.Class<? extends T> type)
Convenience method to fetch all values for a given field.
|
<U> java.util.List<U> |
getValues(java.lang.String fieldName,
Converter<?,? extends U> converter)
Convenience method to fetch all values for a given field.
|
Result<R> |
intern(Field<?>... fields)
Deprecated.
- 3.10 - [#6254] - This functionality is no longer supported
and will be removed in 4.0
|
Result<R> |
intern(int... fieldIndexes)
Deprecated.
- 3.10 - [#6254] - This functionality is no longer supported
and will be removed in 4.0
|
Result<R> |
intern(Name... fieldNames)
Deprecated.
- 3.10 - [#6254] - This functionality is no longer supported
and will be removed in 4.0
|
Result<R> |
intern(java.lang.String... fieldNames)
Deprecated.
- 3.10 - [#6254] - This functionality is no longer supported
and will be removed in 4.0
|
<E> java.util.List<E> |
into(java.lang.Class<? extends E> type)
Map resulting records onto a custom type.
|
Result<Record> |
into(Field<?>... fields)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1> Result<Record1<T1>> |
into(Field<T1> field1)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2> Result<Record2<T1,T2>> |
into(Field<T1> field1,
Field<T2> field2)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3> Result<Record3<T1,T2,T3>> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12,
Field<T13> field13)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12,
Field<T13> field13,
Field<T14> field14)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12,
Field<T13> field13,
Field<T14> field14,
Field<T15> field15)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12,
Field<T13> field13,
Field<T14> field14,
Field<T15> field15,
Field<T16> field16)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12,
Field<T13> field13,
Field<T14> field14,
Field<T15> field15,
Field<T16> field16,
Field<T17> field17)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12,
Field<T13> field13,
Field<T14> field14,
Field<T15> field15,
Field<T16> field16,
Field<T17> field17,
Field<T18> field18)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12,
Field<T13> field13,
Field<T14> field14,
Field<T15> field15,
Field<T16> field16,
Field<T17> field17,
Field<T18> field18,
Field<T19> field19)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12,
Field<T13> field13,
Field<T14> field14,
Field<T15> field15,
Field<T16> field16,
Field<T17> field17,
Field<T18> field18,
Field<T19> field19,
Field<T20> field20)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12,
Field<T13> field13,
Field<T14> field14,
Field<T15> field15,
Field<T16> field16,
Field<T17> field17,
Field<T18> field18,
Field<T19> field19,
Field<T20> field20,
Field<T21> field21)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22> |
into(Field<T1> field1,
Field<T2> field2,
Field<T3> field3,
Field<T4> field4,
Field<T5> field5,
Field<T6> field6,
Field<T7> field7,
Field<T8> field8,
Field<T9> field9,
Field<T10> field10,
Field<T11> field11,
Field<T12> field12,
Field<T13> field13,
Field<T14> field14,
Field<T15> field15,
Field<T16> field16,
Field<T17> field17,
Field<T18> field18,
Field<T19> field19,
Field<T20> field20,
Field<T21> field21,
Field<T22> field22)
Copy all records from this result into a new result with new records
holding only a subset of the previous fields.
|
<H extends RecordHandler<? super R>> |
into(H handler)
Map results into a custom handler callback.
|
<Z extends Record> |
into(Table<Z> table)
Map resulting records onto a custom record.
|
java.lang.Object[][] |
intoArray()
Deprecated.
- 3.6.0 - [#3879] - Use
intoArrays() instead. |
<T> T[] |
intoArray(Field<?> field,
java.lang.Class<? extends T> type)
Return all values for a field from the result.
|
<T> T[] |
intoArray(Field<T> field)
Return all values for a field from the result.
|
<T,U> U[] |
intoArray(Field<T> field,
Converter<? super T,? extends U> converter)
Return all values for a field from the result.
|
java.lang.Object[] |
intoArray(int fieldIndex)
Return all values for a field index from the result.
|
<T> T[] |
intoArray(int fieldIndex,
java.lang.Class<? extends T> type)
Return all values for a field index from the result.
|
<U> U[] |
intoArray(int fieldIndex,
Converter<?,? extends U> converter)
Return all values for a field index from the result.
|
java.lang.Object[] |
intoArray(Name fieldName)
Return all values for a field name from the result.
|
<T> T[] |
intoArray(Name fieldName,
java.lang.Class<? extends T> type)
Return all values for a field name from the result.
|
<U> U[] |
intoArray(Name fieldName,
Converter<?,? extends U> converter)
Return all values for a field name from the result.
|
java.lang.Object[] |
intoArray(java.lang.String fieldName)
Return all values for a field name from the result.
|
<T> T[] |
intoArray(java.lang.String fieldName,
java.lang.Class<? extends T> type)
Return all values for a field name from the result.
|
<U> U[] |
intoArray(java.lang.String fieldName,
Converter<?,? extends U> converter)
Return all values for a field name from the result.
|
java.lang.Object[][] |
intoArrays()
Convert this result into an array of arrays.
|
<K> java.util.Map<K,Result<R>> |
intoGroups(java.lang.Class<? extends K> keyType)
Return a
Map with results grouped by the given key entity. |
<K,V> java.util.Map<K,java.util.List<V>> |
intoGroups(java.lang.Class<? extends K> keyType,
java.lang.Class<? extends V> valueType)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,java.util.List<V>> |
intoGroups(java.lang.Class<? extends K> keyType,
RecordMapper<? super R,V> valueMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
java.util.Map<Record,Result<R>> |
intoGroups(Field<?>[] keys)
Return a
Map with the result grouped by the given keys. |
<E> java.util.Map<Record,java.util.List<E>> |
intoGroups(Field<?>[] keys,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
java.util.Map<Record,Result<Record>> |
intoGroups(Field<?>[] keys,
Field<?>[] values)
Return a
Map with the result grouped by the given keys. |
<E> java.util.Map<Record,java.util.List<E>> |
intoGroups(Field<?>[] keys,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
<K> java.util.Map<K,Result<R>> |
intoGroups(Field<K> key)
Return a
Map with one of the result's columns as key and a list
of corresponding records as value. |
<K,E> java.util.Map<K,java.util.List<E>> |
intoGroups(Field<K> key,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given key and mapped
into the given entity type. |
<K,V> java.util.Map<K,java.util.List<V>> |
intoGroups(Field<K> key,
Field<V> value)
Return a
Map with one of the result's columns as key and another
one of the result's columns as value. |
<K,E> java.util.Map<K,java.util.List<E>> |
intoGroups(Field<K> key,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
java.util.Map<?,Result<R>> |
intoGroups(int keyFieldIndex)
Return a
Map with one of the result's columns as key and a list
of corresponding records as value. |
java.util.Map<Record,Result<R>> |
intoGroups(int[] keyFieldIndexes)
Return a
Map with the result grouped by the given keys. |
<E> java.util.Map<Record,java.util.List<E>> |
intoGroups(int[] keyFieldIndexes,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
java.util.Map<Record,Result<Record>> |
intoGroups(int[] keyFieldIndexes,
int[] valueFieldIndexes)
Return a
Map with the result grouped by the given keys. |
<E> java.util.Map<Record,java.util.List<E>> |
intoGroups(int[] keyFieldIndexes,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
<E> java.util.Map<?,java.util.List<E>> |
intoGroups(int keyFieldIndex,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given key and mapped
into the given entity type. |
java.util.Map<?,java.util.List<?>> |
intoGroups(int keyFieldIndex,
int valueFieldIndex)
Return a
Map with one of the result's columns as key and another
one of the result's columns as value. |
<E> java.util.Map<?,java.util.List<E>> |
intoGroups(int keyFieldIndex,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
java.util.Map<?,Result<R>> |
intoGroups(Name keyFieldName)
Return a
Map with one of the result's columns as key and a list
of corresponding records as value. |
java.util.Map<Record,Result<R>> |
intoGroups(Name[] keyFieldNames)
Return a
Map with the result grouped by the given keys. |
<E> java.util.Map<Record,java.util.List<E>> |
intoGroups(Name[] keyFieldNames,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
java.util.Map<Record,Result<Record>> |
intoGroups(Name[] keyFieldNames,
Name[] valueFieldNames)
Return a
Map with the result grouped by the given keys. |
<E> java.util.Map<Record,java.util.List<E>> |
intoGroups(Name[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
<E> java.util.Map<?,java.util.List<E>> |
intoGroups(Name keyFieldName,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given key and mapped
into the given entity type. |
java.util.Map<?,java.util.List<?>> |
intoGroups(Name keyFieldName,
Name valueFieldName)
Return a
Map with one of the result's columns as key and another
one of the result's columns as value. |
<E> java.util.Map<?,java.util.List<E>> |
intoGroups(Name keyFieldName,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<K> java.util.Map<K,Result<R>> |
intoGroups(RecordMapper<? super R,K> keyMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,java.util.List<V>> |
intoGroups(RecordMapper<? super R,K> keyMapper,
java.lang.Class<V> valueType)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,java.util.List<V>> |
intoGroups(RecordMapper<? super R,K> keyMapper,
RecordMapper<? super R,V> valueMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
java.util.Map<?,Result<R>> |
intoGroups(java.lang.String keyFieldName)
Return a
Map with one of the result's columns as key and a list
of corresponding records as value. |
java.util.Map<Record,Result<R>> |
intoGroups(java.lang.String[] keyFieldNames)
Return a
Map with the result grouped by the given keys. |
<E> java.util.Map<Record,java.util.List<E>> |
intoGroups(java.lang.String[] keyFieldNames,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
<E> java.util.Map<Record,java.util.List<E>> |
intoGroups(java.lang.String[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
java.util.Map<Record,Result<Record>> |
intoGroups(java.lang.String[] keyFieldNames,
java.lang.String[] valueFieldNames)
Return a
Map with the result grouped by the given keys. |
<E> java.util.Map<?,java.util.List<E>> |
intoGroups(java.lang.String keyFieldName,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given key and mapped
into the given entity type. |
<E> java.util.Map<?,java.util.List<E>> |
intoGroups(java.lang.String keyFieldName,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
java.util.Map<?,java.util.List<?>> |
intoGroups(java.lang.String keyFieldName,
java.lang.String valueFieldName)
Return a
Map with one of the result's columns as key and another
one of the result's columns as value. |
<S extends Record> |
intoGroups(Table<S> table)
Return a
Map with the result grouped by the given key table. |
<E,S extends Record> |
intoGroups(Table<S> table,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given key table and
mapped into the given entity type. |
<E,S extends Record> |
intoGroups(Table<S> table,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key table and
mapped into the given entity type. |
<S extends Record,T extends Record> |
intoGroups(Table<S> keyTable,
Table<T> valueTable)
Return a
Map with the result grouped by the given key table. |
<K> java.util.Map<K,R> |
intoMap(java.lang.Class<? extends K> keyType)
Return a
Map with results grouped by the given key entity. |
<K,V> java.util.Map<K,V> |
intoMap(java.lang.Class<? extends K> keyType,
java.lang.Class<? extends V> valueType)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,V> |
intoMap(java.lang.Class<? extends K> keyType,
RecordMapper<? super R,V> valueMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
java.util.Map<Record,R> |
intoMap(Field<?>[] keys)
Return a
Map with the given keys as a map key and the
corresponding record as value. |
<E> java.util.Map<java.util.List<?>,E> |
intoMap(Field<?>[] keys,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
java.util.Map<Record,Record> |
intoMap(Field<?>[] keys,
Field<?>[] values)
Return a
Map with the given keys as a map key and the
corresponding record as value. |
<E> java.util.Map<java.util.List<?>,E> |
intoMap(Field<?>[] keys,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped by
the given mapper. |
<K> java.util.Map<K,R> |
intoMap(Field<K> key)
Return a
Map with one of the result's columns as key and the
corresponding records as value. |
<K,E> java.util.Map<K,E> |
intoMap(Field<K> key,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given key and mapped
into the given entity type. |
<K,V> java.util.Map<K,V> |
intoMap(Field<K> key,
Field<V> value)
Return a
Map with one of the result's columns as key and another
one of the result's columns as value
An InvalidResultException is thrown, if the key turns out to be
non-unique in the result set. |
<K,E> java.util.Map<K,E> |
intoMap(Field<K> key,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
java.util.Map<?,R> |
intoMap(int keyFieldIndex)
Return a
Map with one of the result's columns as key and the
corresponding records as value. |
java.util.Map<Record,R> |
intoMap(int[] keyFieldIndexes)
Return a
Map with the given keys as a map key and the
corresponding record as value. |
<E> java.util.Map<java.util.List<?>,E> |
intoMap(int[] keyFieldIndexes,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
java.util.Map<Record,Record> |
intoMap(int[] keyFieldIndexes,
int[] valueFieldIndexes)
Return a
Map with the given keys as a map key and the
corresponding record as value. |
<E> java.util.Map<java.util.List<?>,E> |
intoMap(int[] keyFieldIndexes,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped by
the given mapper. |
<E> java.util.Map<?,E> |
intoMap(int keyFieldIndex,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given key and mapped
into the given entity type. |
java.util.Map<?,?> |
intoMap(int keyFieldIndex,
int valueFieldIndex)
Return a
Map with one of the result's columns as key and another
one of the result's columns as value
An InvalidResultException is thrown, if the key turns out to be
non-unique in the result set. |
<E> java.util.Map<?,E> |
intoMap(int keyFieldIndex,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
java.util.Map<?,R> |
intoMap(Name keyFieldName)
Return a
Map with one of the result's columns as key and the
corresponding records as value. |
java.util.Map<Record,R> |
intoMap(Name[] keyFieldNames)
Return a
Map with the given keys as a map key and the
corresponding record as value. |
<E> java.util.Map<java.util.List<?>,E> |
intoMap(Name[] keyFieldNames,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
java.util.Map<Record,Record> |
intoMap(Name[] keyFieldNames,
Name[] valueFieldNames)
Return a
Map with the given keys as a map key and the
corresponding record as value. |
<E> java.util.Map<java.util.List<?>,E> |
intoMap(Name[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped by
the given mapper. |
<E> java.util.Map<?,E> |
intoMap(Name keyFieldName,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given key and mapped
into the given entity type. |
java.util.Map<?,?> |
intoMap(Name keyFieldName,
Name valueFieldName)
Return a
Map with one of the result's columns as key and another
one of the result's columns as value
An InvalidResultException is thrown, if the key turns out to be
non-unique in the result set. |
<E> java.util.Map<?,E> |
intoMap(Name keyFieldName,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<K> java.util.Map<K,R> |
intoMap(RecordMapper<? super R,K> keyMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,V> |
intoMap(RecordMapper<? super R,K> keyMapper,
java.lang.Class<V> valueType)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,V> |
intoMap(RecordMapper<? super R,K> keyMapper,
RecordMapper<? super R,V> valueMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
java.util.Map<?,R> |
intoMap(java.lang.String keyFieldName)
Return a
Map with one of the result's columns as key and the
corresponding records as value. |
java.util.Map<Record,R> |
intoMap(java.lang.String[] keyFieldNames)
Return a
Map with the given keys as a map key and the
corresponding record as value. |
<E> java.util.Map<java.util.List<?>,E> |
intoMap(java.lang.String[] keyFieldNames,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
<E> java.util.Map<java.util.List<?>,E> |
intoMap(java.lang.String[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped by
the given mapper. |
java.util.Map<Record,Record> |
intoMap(java.lang.String[] keyFieldNames,
java.lang.String[] valueFieldNames)
Return a
Map with the given keys as a map key and the
corresponding record as value. |
<E> java.util.Map<?,E> |
intoMap(java.lang.String keyFieldName,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given key and mapped
into the given entity type. |
<E> java.util.Map<?,E> |
intoMap(java.lang.String keyFieldName,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
java.util.Map<?,?> |
intoMap(java.lang.String keyFieldName,
java.lang.String valueFieldName)
Return a
Map with one of the result's columns as key and another
one of the result's columns as value
An InvalidResultException is thrown, if the key turns out to be
non-unique in the result set. |
<S extends Record> |
intoMap(Table<S> table)
Return a
Map with the given key table as a map key and the
corresponding record as value. |
<E,S extends Record> |
intoMap(Table<S> table,
java.lang.Class<? extends E> type)
Return a
Map with results grouped by the given key table and
mapped into the given entity type. |
<E,S extends Record> |
intoMap(Table<S> table,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key table and
mapped by the given mapper. |
<S extends Record,T extends Record> |
intoMap(Table<S> keyTable,
Table<T> valueTable)
Return a
Map with the given key table as a map key and the
corresponding record as value. |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
intoMaps()
Return the generated result as a list of name/value maps.
|
java.sql.ResultSet |
intoResultSet()
Generate an in-memory JDBC
ResultSet containing the data of this
Result . |
<T> java.util.Set<T> |
intoSet(Field<?> field,
java.lang.Class<? extends T> type)
Return all values for a field from the result.
|
<T> java.util.Set<T> |
intoSet(Field<T> field)
Return all values for a field from the result.
|
<T,U> java.util.Set<U> |
intoSet(Field<T> field,
Converter<? super T,? extends U> converter)
Return all values for a field from the result.
|
java.util.Set<?> |
intoSet(int fieldIndex)
Return all values for a field index from the result.
|
<T> java.util.Set<T> |
intoSet(int fieldIndex,
java.lang.Class<? extends T> type)
Return all values for a field index from the result.
|
<U> java.util.Set<U> |
intoSet(int fieldIndex,
Converter<?,? extends U> converter)
Return all values for a field index from the result.
|
java.util.Set<?> |
intoSet(Name fieldName)
Return all values for a field name from the result.
|
<T> java.util.Set<T> |
intoSet(Name fieldName,
java.lang.Class<? extends T> type)
Return all values for a field name from the result.
|
<U> java.util.Set<U> |
intoSet(Name fieldName,
Converter<?,? extends U> converter)
Return all values for a field name from the result.
|
java.util.Set<?> |
intoSet(java.lang.String fieldName)
Return all values for a field name from the result.
|
<T> java.util.Set<T> |
intoSet(java.lang.String fieldName,
java.lang.Class<? extends T> type)
Return all values for a field name from the result.
|
<U> java.util.Set<U> |
intoSet(java.lang.String fieldName,
Converter<?,? extends U> converter)
Return all values for a field name from the result.
|
org.w3c.dom.Document |
intoXML()
Get this result as XML.
|
<H extends org.xml.sax.ContentHandler> |
intoXML(H handler)
Get this result as XML using a SAX
ContentHandler . |
<H extends org.xml.sax.ContentHandler> |
intoXML(H handler,
XMLFormat format)
Get this result as XML using a SAX
ContentHandler . |
org.w3c.dom.Document |
intoXML(XMLFormat format)
Get this result as XML.
|
boolean |
isEmpty()
Whether there are any records contained in this
Result . |
boolean |
isNotEmpty()
Whether there are any records contained in this
Result . |
<E> java.util.List<E> |
map(RecordMapper<? super R,E> mapper)
Map results into a custom mapper callback.
|
RecordType<R> |
recordType()
Get this result's record type.
|
Result<R> |
sortAsc(java.util.Comparator<? super R> comparator)
Sort this result using a comparator that can compare records.
|
<T extends java.lang.Comparable<? super T>> |
sortAsc(Field<T> field)
Sort this result by one of its contained fields.
|
<T> Result<R> |
sortAsc(Field<T> field,
java.util.Comparator<? super T> comparator)
Sort this result by one of its contained fields using a comparator.
|
Result<R> |
sortAsc(int fieldIndex)
Sort this result by one of its contained fields.
|
Result<R> |
sortAsc(int fieldIndex,
java.util.Comparator<?> comparator)
Sort this result by one of its contained fields using a comparator.
|
Result<R> |
sortAsc(Name fieldName)
Sort this result by one of its contained fields.
|
Result<R> |
sortAsc(Name fieldName,
java.util.Comparator<?> comparator)
Sort this result by one of its contained fields using a comparator.
|
Result<R> |
sortAsc(java.lang.String fieldName)
Sort this result by one of its contained fields.
|
Result<R> |
sortAsc(java.lang.String fieldName,
java.util.Comparator<?> comparator)
Sort this result by one of its contained fields using a comparator.
|
Result<R> |
sortDesc(java.util.Comparator<? super R> comparator)
Reverse-sort this result using a comparator that can compare records.
|
<T extends java.lang.Comparable<? super T>> |
sortDesc(Field<T> field)
Reverse-sort this result by one of its contained fields.
|
<T> Result<R> |
sortDesc(Field<T> field,
java.util.Comparator<? super T> comparator)
Reverse-sort this result by one of its contained fields using a
comparator.
|
Result<R> |
sortDesc(int fieldIndex)
Reverse-sort this result by one of its contained fields.
|
Result<R> |
sortDesc(int fieldIndex,
java.util.Comparator<?> comparator)
Reverse-sort this result by one of its contained fields using a
comparator.
|
Result<R> |
sortDesc(Name fieldName)
Reverse-sort this result by one of its contained fields.
|
Result<R> |
sortDesc(Name fieldName,
java.util.Comparator<?> comparator)
Reverse-sort this result by one of its contained fields using a
comparator.
|
Result<R> |
sortDesc(java.lang.String fieldName)
Reverse-sort this result by one of its contained fields.
|
Result<R> |
sortDesc(java.lang.String fieldName,
java.util.Comparator<?> comparator)
Reverse-sort this result by one of its contained fields using a
comparator.
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
configuration
RecordType<R> recordType()
<T> Field<T> field(Field<T> field)
This will return:
null
otherwise.
Row.field(Field)
Field<?> field(java.lang.String name)
Row.field(String)
<T> Field<T> field(java.lang.String name, java.lang.Class<T> type)
type
.Row.field(String, Class)
<T> Field<T> field(java.lang.String name, DataType<T> dataType)
dataType
.Row.field(String, DataType)
Field<?> field(Name name)
Row.field(Name)
<T> Field<T> field(Name name, java.lang.Class<T> type)
type
.Row.field(Name, Class)
<T> Field<T> field(Name name, DataType<T> dataType)
dataType
.Row.field(Name, DataType)
Field<?> field(int index)
Row.field(int)
<T> Field<T> field(int index, java.lang.Class<T> type)
type
.Row.field(int, Class)
<T> Field<T> field(int index, DataType<T> dataType)
dataType
.Row.field(int, DataType)
Field<?>[] fields()
Row.fields()
Field<?>[] fields(Field<?>... fields)
Row.fields(Field...)
Field<?>[] fields(java.lang.String... fieldNames)
Row.fields(String...)
Field<?>[] fields(Name... fieldNames)
Row.fields(Name...)
Field<?>[] fields(int... fieldIndexes)
Row.fields(int...)
<T> T getValue(int index, Field<T> field) throws java.lang.IndexOutOfBoundsException, java.lang.IllegalArgumentException
T
- The value's field's generic type parameterindex
- The record's indexfield
- The value's fieldjava.lang.IndexOutOfBoundsException
- if the index is out of range (
index < 0 || index >= size())java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
@Deprecated <T> T getValue(int index, Field<T> field, T defaultValue) throws java.lang.IndexOutOfBoundsException, java.lang.IllegalArgumentException
T
- The value's field's generic type parameterindex
- The record's indexfield
- The value's fielddefaultValue
- The default value if the value was null
java.lang.IndexOutOfBoundsException
- if the index is out of range (
index < 0 || index >= size())java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
java.lang.Object getValue(int index, int fieldIndex) throws java.lang.IndexOutOfBoundsException, java.lang.IllegalArgumentException
index
- The record's indexfieldIndex
- The value's field indexjava.lang.IndexOutOfBoundsException
- if the index is out of range (
index < 0 || index >= size())java.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
@Deprecated java.lang.Object getValue(int index, int fieldIndex, java.lang.Object defaultValue) throws java.lang.IndexOutOfBoundsException, java.lang.IllegalArgumentException
index
- The record's indexfieldIndex
- The value's field indexdefaultValue
- The default value if the value was null
java.lang.IndexOutOfBoundsException
- if the index is out of range (
index < 0 || index >= size())java.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
java.lang.Object getValue(int index, java.lang.String fieldName) throws java.lang.IndexOutOfBoundsException, java.lang.IllegalArgumentException
index
- The record's indexfieldName
- The value's field namejava.lang.IndexOutOfBoundsException
- if the index is out of range (
index < 0 || index >= size())java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
@Deprecated java.lang.Object getValue(int index, java.lang.String fieldName, java.lang.Object defaultValue) throws java.lang.IndexOutOfBoundsException, java.lang.IllegalArgumentException
index
- The record's indexfieldName
- The value's field namedefaultValue
- The default value if the value was null
java.lang.IndexOutOfBoundsException
- if the index is out of range (
index < 0 || index >= size())java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
<T> java.util.List<T> getValues(Field<T> field) throws java.lang.IllegalArgumentException
T
- The values' field's generic type parameterfield
- The values' fieldjava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
<T> java.util.List<T> getValues(Field<?> field, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException
field
- The values' fieldtype
- The type used for type conversionjava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Record.get(Field, Class)
,
Convert.convert(Object, Class)
<T,U> java.util.List<U> getValues(Field<T> field, Converter<? super T,? extends U> converter) throws java.lang.IllegalArgumentException
field
- The values' fieldconverter
- The data type converter used for type conversionjava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Record.get(Field, Converter)
,
Convert.convert(Object, Converter)
java.util.List<?> getValues(int fieldIndex) throws java.lang.IllegalArgumentException
fieldIndex
- The values' field indexjava.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
<T> java.util.List<T> getValues(int fieldIndex, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
fieldIndex
- The values' field indextype
- The type used for type conversionjava.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredRecord.get(int, Class)
,
Convert.convert(Object, Class)
<U> java.util.List<U> getValues(int fieldIndex, Converter<?,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
fieldIndex
- The values' field indexconverter
- The data type converter used for type conversionjava.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredRecord.get(int, Converter)
,
Convert.convert(Object, Converter)
java.util.List<?> getValues(java.lang.String fieldName) throws java.lang.IllegalArgumentException
fieldName
- The values' field namejava.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
<T> java.util.List<T> getValues(java.lang.String fieldName, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
fieldName
- The values' field nametype
- The type used for type conversionjava.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredRecord.get(String, Class)
,
Convert.convert(Object, Class)
<U> java.util.List<U> getValues(java.lang.String fieldName, Converter<?,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
fieldName
- The values' field nameconverter
- The data type converter used for type conversionjava.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredRecord.get(String, Converter)
,
Convert.convert(Object, Converter)
java.util.List<?> getValues(Name fieldName) throws java.lang.IllegalArgumentException
fieldName
- The values' field namejava.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
<T> java.util.List<T> getValues(Name fieldName, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
fieldName
- The values' field nametype
- The type used for type conversionjava.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredRecord.get(Name, Class)
,
Convert.convert(Object, Class)
<U> java.util.List<U> getValues(Name fieldName, Converter<?,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
fieldName
- The values' field nameconverter
- The data type converter used for type conversionjava.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredRecord.get(Name, Converter)
,
Convert.convert(Object, Converter)
boolean isEmpty()
Result
.boolean isNotEmpty()
Result
.java.lang.String format()
This is the same as calling format(int)
with
maxRows = 50
java.lang.String format(int maxRecords)
maxRecords
- The maximum number of records to include in the
formatted resultjava.lang.String formatHTML()
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>
java.lang.String formatCSV()
This is the same as calling formatCSV(true, ',', "")
java.lang.String formatCSV(char delimiter)
This is the same as calling formatCSV(true, delimiter, "")
delimiter
- The delimiter to use between recordsjava.lang.String formatCSV(char delimiter, java.lang.String nullString)
This is the same as calling formatCSV(true, delimiter, nullString)
delimiter
- The delimiter to use between recordsnullString
- A special string for encoding NULL
values.java.lang.String formatCSV(boolean header)
This is the same as calling formatCSV(',', "")
header
- Whether to emit a CSV header linejava.lang.String formatCSV(boolean header, char delimiter)
This is the same as calling formatCSV(delimiter, "")
header
- Whether to emit a CSV header linedelimiter
- The delimiter to use between recordsjava.lang.String formatCSV(boolean header, char delimiter, java.lang.String nullString)
header
- Whether to emit a CSV header linedelimiter
- The delimiter to use between recordsnullString
- A special string for encoding NULL
values.java.lang.String formatCSV(CSVFormat format)
java.lang.String formatJSON()
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]]}
java.lang.String formatJSON(JSONFormat format)
JSONFormat
java.lang.String formatXML()
java.lang.String formatXML(XMLFormat format)
java.lang.String formatChart()
java.lang.String formatChart(ChartFormat format)
java.lang.String formatInsert()
INSERT
statements.
This uses the the first record's TableRecord.getTable()
, if the
first record is a TableRecord
. Otherwise, this generates
INSERT
statements into an "UNKNOWN_TABLE"
. In
both cases, the fields()
are used for column names.
java.lang.String formatInsert(Table<?> table, Field<?>... fields)
INSERT
statements.
This explicitly specifies the table (and optionally the fields) to insert
into. If the fields
argument is left empty, the
fields()
are used, instead.
void format(java.io.OutputStream stream) throws IOException
format()
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void format(java.io.OutputStream stream, int maxRecords) throws IOException
format(int)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatHTML(java.io.OutputStream stream) throws IOException
formatHTML()
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.OutputStream stream) throws IOException
formatCSV()
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.OutputStream stream, char delimiter) throws IOException
formatCSV(char)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.OutputStream stream, char delimiter, java.lang.String nullString) throws IOException
formatCSV(char, String)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.OutputStream stream, boolean header) throws IOException
formatCSV(boolean)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.OutputStream stream, boolean header, char delimiter) throws IOException
formatCSV(boolean, char)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.OutputStream stream, boolean header, char delimiter, java.lang.String nullString) throws IOException
formatCSV(boolean, char, String)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.OutputStream stream, CSVFormat format) throws IOException
formatCSV(CSVFormat)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatJSON(java.io.OutputStream stream) throws IOException
formatJSON()
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatJSON(java.io.OutputStream stream, JSONFormat format) throws IOException
formatJSON(JSONFormat)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatXML(java.io.OutputStream stream) throws IOException
formatXML()
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatXML(java.io.OutputStream stream, XMLFormat format) throws IOException
formatXML(XMLFormat)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatChart(java.io.OutputStream stream) throws IOException
formatChart()
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatChart(java.io.OutputStream stream, ChartFormat format) throws IOException
formatChart(ChartFormat)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatInsert(java.io.OutputStream stream) throws IOException
formatInsert()
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatInsert(java.io.OutputStream stream, Table<?> table, Field<?>... fields) throws IOException
formatInsert(Table, Field...)
, but the data is output onto an OutputStream
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void format(java.io.Writer writer) throws IOException
format()
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void format(java.io.Writer writer, int maxRecords) throws IOException
format(int)
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatHTML(java.io.Writer writer) throws IOException
formatHTML()
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.Writer writer) throws IOException
formatCSV()
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.Writer writer, char delimiter) throws IOException
formatCSV(char)
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.Writer writer, char delimiter, java.lang.String nullString) throws IOException
formatCSV(char, String)
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.Writer writer, boolean header) throws IOException
formatCSV(boolean)
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.Writer writer, boolean header, char delimiter) throws IOException
formatCSV(boolean, char)
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.Writer writer, boolean header, char delimiter, java.lang.String nullString) throws IOException
formatCSV(boolean, char, String)
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatCSV(java.io.Writer writer, CSVFormat format) throws IOException
formatCSV(CSVFormat)
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatJSON(java.io.Writer writer) throws IOException
formatJSON()
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatJSON(java.io.Writer writer, JSONFormat format) throws IOException
formatJSON(JSONFormat)
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatXML(java.io.Writer writer) throws IOException
formatXML()
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatXML(java.io.Writer writer, XMLFormat format) throws IOException
formatXML(XMLFormat)
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatChart(java.io.Writer writer) throws IOException
formatChart()
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatChart(java.io.Writer writer, ChartFormat format) throws IOException
formatChart(ChartFormat)
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatInsert(java.io.Writer writer) throws IOException
formatInsert()
, but the data is output onto a Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.void formatInsert(java.io.Writer writer, Table<?> table, Field<?>... fields) throws IOException
formatInsert(Table, Field...)
, but the data is output onto an Writer
.IOException
- - an unchecked wrapper for IOException
, if anything goes wrong.org.w3c.dom.Document intoXML()
org.w3c.dom.Document intoXML(XMLFormat format)
<H extends org.xml.sax.ContentHandler> H intoXML(H handler) throws org.xml.sax.SAXException
ContentHandler
.handler
- The custom content handler.org.xml.sax.SAXException
formatXML()
,
http://www.jooq.org/xsd/jooq-export-3.10.0.xsd<H extends org.xml.sax.ContentHandler> H intoXML(H handler, XMLFormat format) throws org.xml.sax.SAXException
ContentHandler
.handler
- The custom content handler.org.xml.sax.SAXException
formatXML()
,
http://www.jooq.org/xsd/jooq-export-3.10.0.xsdjava.util.List<java.util.Map<java.lang.String,java.lang.Object>> intoMaps()
Record.intoMap()
<K> java.util.Map<K,R> intoMap(Field<K> key) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with one of the result's columns as key and the
corresponding records as value.
An InvalidResultException
is thrown, if the key turns out to be
non-unique in the result set. Use intoGroups(Field)
instead, if
your keys are non-unique
K
- The key's generic field typekey
- The key field. Client code must assure that this field is
unique in the result set.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
InvalidResultException
- if the key field returned two or more
equal values from the result set.java.util.Map<?,R> intoMap(int keyFieldIndex) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with one of the result's columns as key and the
corresponding records as value.
An InvalidResultException
is thrown, if the key turns out to be
non-unique in the result set. Use intoGroups(int)
instead, if
your keys are non-unique
keyFieldIndex
- The key field index. Client code must assure that
this field is unique in the result set.java.lang.IllegalArgumentException
- If the argument keyFieldIndex is not
contained in fieldsRow()
InvalidResultException
- if the key field returned two or more
equal values from the result set.java.util.Map<?,R> intoMap(java.lang.String keyFieldName) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with one of the result's columns as key and the
corresponding records as value.
An InvalidResultException
is thrown, if the key turns out to be
non-unique in the result set. Use intoGroups(String)
instead, if
your keys are non-unique
keyFieldName
- The key field name. Client code must assure that this
field is unique in the result set.java.lang.IllegalArgumentException
- If the argument keyFieldName is not
contained in fieldsRow()
InvalidResultException
- if the key field returned two or more
equal values from the result set.java.util.Map<?,R> intoMap(Name keyFieldName) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with one of the result's columns as key and the
corresponding records as value.
An InvalidResultException
is thrown, if the key turns out to be
non-unique in the result set. Use intoGroups(Name)
instead, if
your keys are non-unique
keyFieldName
- The key field name. Client code must assure that this
field is unique in the result set.java.lang.IllegalArgumentException
- If the argument keyFieldName is not
contained in fieldsRow()
InvalidResultException
- if the key field returned two or more
equal values from the result set.<K,V> java.util.Map<K,V> intoMap(Field<K> key, Field<V> value) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with one of the result's columns as key and another
one of the result's columns as value
An InvalidResultException
is thrown, if the key turns out to be
non-unique in the result set. Use intoGroups(Field, Field)
instead, if your keys are non-unique
K
- The key's generic field typeV
- The value's generic field typekey
- The key field. Client code must assure that this field is
unique in the result set.value
- The value fieldjava.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
InvalidResultException
- if the key field returned two or more
equal values from the result set.java.util.Map<?,?> intoMap(int keyFieldIndex, int valueFieldIndex) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with one of the result's columns as key and another
one of the result's columns as value
An InvalidResultException
is thrown, if the key turns out to be
non-unique in the result set. Use intoGroups(int, int)
instead,
if your keys are non-unique
keyFieldIndex
- The key field index. Client code must assure that
this field is unique in the result set.valueFieldIndex
- The value field indexjava.lang.IllegalArgumentException
- If any of the argument field indexes is
not contained in fieldsRow()
InvalidResultException
- if the key field returned two or more
equal values from the result set.java.util.Map<?,?> intoMap(java.lang.String keyFieldName, java.lang.String valueFieldName) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with one of the result's columns as key and another
one of the result's columns as value
An InvalidResultException
is thrown, if the key turns out to be
non-unique in the result set. Use intoGroups(String, String)
instead, if your keys are non-unique
keyFieldName
- The key field name. Client code must assure that this
field is unique in the result set.valueFieldName
- The value field namejava.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
InvalidResultException
- if the key field returned two or more
equal values from the result set.java.util.Map<?,?> intoMap(Name keyFieldName, Name valueFieldName) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with one of the result's columns as key and another
one of the result's columns as value
An InvalidResultException
is thrown, if the key turns out to be
non-unique in the result set. Use intoGroups(Name, Name)
instead, if your keys are non-unique
keyFieldName
- The key field name. Client code must assure that this
field is unique in the result set.valueFieldName
- The value field namejava.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
InvalidResultException
- if the key field returned two or more
equal values from the result set.<K,E> java.util.Map<K,E> intoMap(Field<K> key, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given key and mapped
into the given entity type.
An InvalidResultException
is thrown, if the key is non-unique in
the result set. Use intoGroups(Field, Class)
instead, if your
key is non-unique.
key
- The key. Client code must assure that key is unique in the
result set.type
- The entity type.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
InvalidResultException
- if the key is non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<?,E> intoMap(int keyFieldIndex, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given key and mapped
into the given entity type.
An InvalidResultException
is thrown, if the key is non-unique in
the result set. Use intoGroups(int, Class)
instead, if your
key is non-unique.
keyFieldIndex
- The key. Client code must assure that key is unique
in the result set.type
- The entity type.java.lang.IllegalArgumentException
- If the argument field index is not
contained in fieldsRow()
InvalidResultException
- if the key is non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<?,E> intoMap(java.lang.String keyFieldName, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given key and mapped
into the given entity type.
An InvalidResultException
is thrown, if the key is non-unique in
the result set. Use intoGroups(String, Class)
instead, if your
key is non-unique.
keyFieldName
- The key. Client code must assure that key is unique
in the result set.type
- The entity type.java.lang.IllegalArgumentException
- If the argument field name is not
contained in fieldsRow()
InvalidResultException
- if the key is non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<?,E> intoMap(Name keyFieldName, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given key and mapped
into the given entity type.
An InvalidResultException
is thrown, if the key is non-unique in
the result set. Use intoGroups(Name, Class)
instead, if your
key is non-unique.
keyFieldName
- The key. Client code must assure that key is unique
in the result set.type
- The entity type.java.lang.IllegalArgumentException
- If the argument field name is not
contained in fieldsRow()
InvalidResultException
- if the key is non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<K,E> java.util.Map<K,E> intoMap(Field<K> key, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given key and mapped by
the given mapper.
An InvalidResultException
is thrown, if the key is non-unique in
the result set. Use intoGroups(Field, Class)
instead, if your
key is non-unique.
key
- The key. Client code must assure that key is unique in the
result set.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
InvalidResultException
- if the key is non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<?,E> intoMap(int keyFieldIndex, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given key and mapped by
the given mapper.
An InvalidResultException
is thrown, if the key is non-unique in
the result set. Use intoGroups(int, Class)
instead, if your key
is non-unique.
keyFieldIndex
- The key. Client code must assure that key is unique
in the result set.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the argument field index is not
contained in fieldsRow()
InvalidResultException
- if the key is non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<?,E> intoMap(java.lang.String keyFieldName, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given key and mapped by
the given mapper.
An InvalidResultException
is thrown, if the key is non-unique in
the result set. Use intoGroups(String, Class)
instead, if your key
is non-unique.
keyFieldName
- The key. Client code must assure that key is unique
in the result set.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the argument field name is not
contained in fieldsRow()
InvalidResultException
- if the key is non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<?,E> intoMap(Name keyFieldName, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given key and mapped by
the given mapper.
An InvalidResultException
is thrown, if the key is non-unique in
the result set. Use intoGroups(Name, Class)
instead, if your key
is non-unique.
keyFieldName
- The key. Client code must assure that key is unique
in the result set.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the argument field name is not
contained in fieldsRow()
InvalidResultException
- if the key is non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
java.util.Map<Record,R> intoMap(Field<?>[] keys) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with the given keys as a map key and the
corresponding record as value.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Field[])
instead, if your keys
are non-unique.
keys
- The keys. Client code must assure that keys are unique in the
result set. If this is null
or an empty array,
the resulting map will contain at most one entry.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.java.util.Map<Record,R> intoMap(int[] keyFieldIndexes) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with the given keys as a map key and the
corresponding record as value.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(int[])
instead, if your keys
are non-unique.
keyFieldIndexes
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.java.lang.IllegalArgumentException
- If any of the argument field indexes is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.java.util.Map<Record,R> intoMap(java.lang.String[] keyFieldNames) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with the given keys as a map key and the
corresponding record as value.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(String[])
instead, if your
keys are non-unique.
keyFieldNames
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.java.util.Map<Record,R> intoMap(Name[] keyFieldNames) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with the given keys as a map key and the
corresponding record as value.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Name[])
instead, if your
keys are non-unique.
keyFieldNames
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.java.util.Map<Record,Record> intoMap(Field<?>[] keys, Field<?>[] values) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with the given keys as a map key and the
corresponding record as value.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Field[], Field[])
instead, if your keys
are non-unique.
keys
- The keys. Client code must assure that keys are unique in the
result set. If this is null
or an empty array,
the resulting map will contain at most one entry.values
- The values.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.java.util.Map<Record,Record> intoMap(int[] keyFieldIndexes, int[] valueFieldIndexes) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with the given keys as a map key and the
corresponding record as value.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(int[], int[])
instead, if your
keys are non-unique.
keyFieldIndexes
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.valueFieldIndexes
- The values.java.lang.IllegalArgumentException
- If any of the argument field indexes is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.java.util.Map<Record,Record> intoMap(java.lang.String[] keyFieldNames, java.lang.String[] valueFieldNames) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with the given keys as a map key and the
corresponding record as value.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(String[], String[])
instead,
if your keys are non-unique.
keyFieldNames
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.valueFieldNames
- The values.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.java.util.Map<Record,Record> intoMap(Name[] keyFieldNames, Name[] valueFieldNames) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with the given keys as a map key and the
corresponding record as value.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Name[], Name[])
instead, if
your keys are non-unique.
keyFieldNames
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.valueFieldNames
- The values.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.<E> java.util.Map<java.util.List<?>,E> intoMap(Field<?>[] keys, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Field[], Class)
instead, if
your keys are non-unique.
keys
- The keys. Client code must assure that keys are unique in the
result set. If this is null
or an empty array,
the resulting map will contain at most one entry.type
- The entity type.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<java.util.List<?>,E> intoMap(int[] keyFieldIndexes, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(int[], Class)
instead, if your
keys are non-unique.
keyFieldIndexes
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.type
- The entity type.java.lang.IllegalArgumentException
- If any of the argument field indexes is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<java.util.List<?>,E> intoMap(java.lang.String[] keyFieldNames, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(String[], Class)
instead, if your
keys are non-unique.
keyFieldNames
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.type
- The entity type.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<java.util.List<?>,E> intoMap(Name[] keyFieldNames, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Name[], Class)
instead, if your
keys are non-unique.
keyFieldNames
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.type
- The entity type.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<java.util.List<?>,E> intoMap(Field<?>[] keys, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given keys and mapped by
the given mapper.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Field[], Class)
instead, if
your keys are non-unique.
keys
- The keys. Client code must assure that keys are unique in the
result set. If this is null
or an empty array,
the resulting map will contain at most one entry.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<java.util.List<?>,E> intoMap(int[] keyFieldIndexes, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given keys and mapped by
the given mapper.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(int[], Class)
instead, if your
keys are non-unique.
keyFieldIndexes
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If any of the argument field indexes is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<java.util.List<?>,E> intoMap(java.lang.String[] keyFieldNames, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given keys and mapped by
the given mapper.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(String[], Class)
instead, if
your keys are non-unique.
keyFieldNames
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<java.util.List<?>,E> intoMap(Name[] keyFieldNames, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given keys and mapped by
the given mapper.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Name[], Class)
instead, if
your keys are non-unique.
keyFieldNames
- The keys. Client code must assure that keys are
unique in the result set. If this is null
or an
empty array, the resulting map will contain at most one entry.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<K> java.util.Map<K,R> intoMap(java.lang.Class<? extends K> keyType) throws MappingException, InvalidResultException
Map
with results grouped by the given key entity.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Class)
instead, if your keys
are non-unique.
keyType
- The key type. If this is null
, the resulting
map will contain at most one entry.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsInvalidResultException
- if the keys are non-unique in the result
set.DefaultRecordMapper
<K,V> java.util.Map<K,V> intoMap(java.lang.Class<? extends K> keyType, java.lang.Class<? extends V> valueType) throws MappingException, InvalidResultException
Map
with results grouped by the given key entity and
mapped into the given entity type.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Class, Class)
instead, if your
keys are non-unique.
keyType
- The key type. If this is null
, the resulting
map will contain at most one entry.valueType
- The value type.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsInvalidResultException
- if the keys are non-unique in the result
set.DefaultRecordMapper
<K,V> java.util.Map<K,V> intoMap(java.lang.Class<? extends K> keyType, RecordMapper<? super R,V> valueMapper) throws InvalidResultException, MappingException
Map
with results grouped by the given key entity and
mapped into the given entity type.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Class, RecordMapper)
instead,
if your keys are non-unique.
keyType
- The key type. If this is null
, the resulting
map will contain at most one entry.valueMapper
- The value mapper.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsInvalidResultException
- if the keys are non-unique in the result
set.DefaultRecordMapper
<K> java.util.Map<K,R> intoMap(RecordMapper<? super R,K> keyMapper) throws InvalidResultException, MappingException
Map
with results grouped by the given key entity and
mapped into the given entity type.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(RecordMapper)
instead, if your
keys are non-unique.
keyMapper
- The key mapper.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsInvalidResultException
- if the keys are non-unique in the result
set.DefaultRecordMapper
<K,V> java.util.Map<K,V> intoMap(RecordMapper<? super R,K> keyMapper, java.lang.Class<V> valueType) throws InvalidResultException, MappingException
Map
with results grouped by the given key entity and
mapped into the given entity type.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(RecordMapper, Class)
instead,
if your keys are non-unique.
keyMapper
- The key mapper.valueType
- The value type.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsInvalidResultException
- if the keys are non-unique in the result
set.DefaultRecordMapper
<K,V> java.util.Map<K,V> intoMap(RecordMapper<? super R,K> keyMapper, RecordMapper<? super R,V> valueMapper) throws InvalidResultException, MappingException
Map
with results grouped by the given key entity and
mapped into the given entity type.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(RecordMapper, RecordMapper)
instead, if your keys are non-unique.
keyMapper
- The key mapper.valueMapper
- The value mapper.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsInvalidResultException
- if the keys are non-unique in the result
set.DefaultRecordMapper
<S extends Record> java.util.Map<S,R> intoMap(Table<S> table) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with the given key table as a map key and the
corresponding record as value.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Table)
instead, if your keys
are non-unique.
table
- The key table. Client code must assure that keys are unique
in the result set. May not be null
.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.<S extends Record,T extends Record> java.util.Map<S,T> intoMap(Table<S> keyTable, Table<T> valueTable) throws java.lang.IllegalArgumentException, InvalidResultException
Map
with the given key table as a map key and the
corresponding record as value.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Table, Table)
instead, if your
keys are non-unique.
keyTable
- The key table. Client code must assure that keys are
unique in the result set. May not be null
.valueTable
- The value table. May not be null
.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.<E,S extends Record> java.util.Map<S,E> intoMap(Table<S> table, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given key table and
mapped into the given entity type.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Table, Class)
instead, if your
keys are non-unique.
table
- The key table. Client code must assure that keys are unique
in the result set. May not be null
.type
- The entity type.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E,S extends Record> java.util.Map<S,E> intoMap(Table<S> table, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, InvalidResultException, MappingException
Map
with results grouped by the given key table and
mapped by the given mapper.
An InvalidResultException
is thrown, if the keys are non-unique
in the result set. Use intoGroups(Table, Class)
instead, if your
keys are non-unique.
table
- The key table. Client code must assure that keys are unique
in the result set. May not be null
.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
InvalidResultException
- if the keys are non-unique in the result
set.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<K> java.util.Map<K,Result<R>> intoGroups(Field<K> key) throws java.lang.IllegalArgumentException
Map
with one of the result's columns as key and a list
of corresponding records as value.
Unlike intoMap(Field)
, this method allows for non-unique keys in
the result set.
K
- The key's generic field typekey
- The key field.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
java.util.Map<?,Result<R>> intoGroups(int keyFieldIndex) throws java.lang.IllegalArgumentException
Map
with one of the result's columns as key and a list
of corresponding records as value.
Unlike intoMap(int)
, this method allows for non-unique keys in
the result set.
keyFieldIndex
- The key field index.java.lang.IllegalArgumentException
- If the argument field index is not
contained in fieldsRow()
java.util.Map<?,Result<R>> intoGroups(java.lang.String keyFieldName) throws java.lang.IllegalArgumentException
Map
with one of the result's columns as key and a list
of corresponding records as value.
Unlike intoMap(String)
, this method allows for non-unique keys in
the result set.
keyFieldName
- The key field name.java.lang.IllegalArgumentException
- If the argument field name is not
contained in fieldsRow()
java.util.Map<?,Result<R>> intoGroups(Name keyFieldName) throws java.lang.IllegalArgumentException
Map
with one of the result's columns as key and a list
of corresponding records as value.
Unlike intoMap(Name)
, this method allows for non-unique keys in
the result set.
keyFieldName
- The key field name.java.lang.IllegalArgumentException
- If the argument field name is not
contained in fieldsRow()
<K,V> java.util.Map<K,java.util.List<V>> intoGroups(Field<K> key, Field<V> value) throws java.lang.IllegalArgumentException
Map
with one of the result's columns as key and another
one of the result's columns as value.
Unlike intoMap(Field, Field)
, this method allows for non-unique
keys in the result set.
K
- The key's generic field typeV
- The value's generic field typekey
- The key field.value
- The value fieldjava.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
java.util.Map<?,java.util.List<?>> intoGroups(int keyFieldIndex, int valueFieldIndex) throws java.lang.IllegalArgumentException
Map
with one of the result's columns as key and another
one of the result's columns as value.
Unlike intoMap(int, int)
, this method allows for non-unique keys
in the result set.
keyFieldIndex
- The key field index.valueFieldIndex
- The value field index.java.lang.IllegalArgumentException
- If any of the argument field indexes is
not contained in fieldsRow()
java.util.Map<?,java.util.List<?>> intoGroups(java.lang.String keyFieldName, java.lang.String valueFieldName) throws java.lang.IllegalArgumentException
Map
with one of the result's columns as key and another
one of the result's columns as value.
Unlike intoMap(String, String)
, this method allows for
non-unique keys in the result set.
keyFieldName
- The key field name.valueFieldName
- The value field name.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
java.util.Map<?,java.util.List<?>> intoGroups(Name keyFieldName, Name valueFieldName) throws java.lang.IllegalArgumentException
Map
with one of the result's columns as key and another
one of the result's columns as value.
Unlike intoMap(Name, Name)
, this method allows for
non-unique keys in the result set.
keyFieldName
- The key field name.valueFieldName
- The value field name.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
<K,E> java.util.Map<K,java.util.List<E>> intoGroups(Field<K> key, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given key and mapped
into the given entity type.
K
- The key's generic field typeE
- The generic entity type.key
- The key field.type
- The entity type.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<?,java.util.List<E>> intoGroups(int keyFieldIndex, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given key and mapped
into the given entity type.
keyFieldIndex
- The key field index.type
- The entity type.java.lang.IllegalArgumentException
- If the argument field index is not
contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<?,java.util.List<E>> intoGroups(java.lang.String keyFieldName, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given key and mapped
into the given entity type.
keyFieldName
- The key field name.type
- The entity type.java.lang.IllegalArgumentException
- If the argument field name is not
contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<?,java.util.List<E>> intoGroups(Name keyFieldName, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given key and mapped
into the given entity type.
keyFieldName
- The key field name.type
- The entity type.java.lang.IllegalArgumentException
- If the argument field name is not
contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<K,E> java.util.Map<K,java.util.List<E>> intoGroups(Field<K> key, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given key and mapped by
the given mapper.K
- The key's generic field typeE
- The generic entity type.key
- The key field.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping records<E> java.util.Map<?,java.util.List<E>> intoGroups(int keyFieldIndex, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given key and mapped by
the given mapper.keyFieldIndex
- The key field index.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the argument field index is not
contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping records<E> java.util.Map<?,java.util.List<E>> intoGroups(java.lang.String keyFieldName, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given key and mapped by
the given mapper.keyFieldName
- The key field name.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the argument field name is not
contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping records<E> java.util.Map<?,java.util.List<E>> intoGroups(Name keyFieldName, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given key and mapped by
the given mapper.keyFieldName
- The key field name.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the argument field name is not
contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsjava.util.Map<Record,Result<R>> intoGroups(Field<?>[] keys) throws java.lang.IllegalArgumentException
Map
with the result grouped by the given keys.
Unlike intoMap(Field[])
, this method allows for non-unique keys
in the result set.
keys
- The keys. If this is null
or an empty array, the
resulting map will contain at most one entry.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
java.util.Map<Record,Result<R>> intoGroups(int[] keyFieldIndexes) throws java.lang.IllegalArgumentException
Map
with the result grouped by the given keys.
Unlike intoMap(int[])
, this method allows for non-unique keys
in the result set.
keyFieldIndexes
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.java.lang.IllegalArgumentException
- If any of the argument field indexes is
not contained in fieldsRow()
java.util.Map<Record,Result<R>> intoGroups(java.lang.String[] keyFieldNames) throws java.lang.IllegalArgumentException
Map
with the result grouped by the given keys.
Unlike intoMap(String[])
, this method allows for non-unique keys
in the result set.
keyFieldNames
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
java.util.Map<Record,Result<R>> intoGroups(Name[] keyFieldNames) throws java.lang.IllegalArgumentException
Map
with the result grouped by the given keys.
Unlike intoMap(Name[])
, this method allows for non-unique keys
in the result set.
keyFieldNames
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
java.util.Map<Record,Result<Record>> intoGroups(Field<?>[] keys, Field<?>[] values) throws java.lang.IllegalArgumentException
Map
with the result grouped by the given keys.
Unlike intoMap(Field[], Field[])
, this method allows for
non-unique keys in the result set.
keys
- The keys. If this is null
or an empty array, the
resulting map will contain at most one entry.values
- The values.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
java.util.Map<Record,Result<Record>> intoGroups(int[] keyFieldIndexes, int[] valueFieldIndexes) throws java.lang.IllegalArgumentException
Map
with the result grouped by the given keys.
Unlike intoMap(int[], int[])
, this method allows for non-unique keys in
the result set.
keyFieldIndexes
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.valueFieldIndexes
- The values.java.lang.IllegalArgumentException
- If any of the argument field indexes is
not contained in fieldsRow()
java.util.Map<Record,Result<Record>> intoGroups(java.lang.String[] keyFieldNames, java.lang.String[] valueFieldNames) throws java.lang.IllegalArgumentException
Map
with the result grouped by the given keys.
Unlike intoMap(String[], String[])
, this method allows for non-unique keys
in the result set.
keyFieldNames
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.valueFieldNames
- The values.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
java.util.Map<Record,Result<Record>> intoGroups(Name[] keyFieldNames, Name[] valueFieldNames) throws java.lang.IllegalArgumentException
Map
with the result grouped by the given keys.
Unlike intoMap(Name[], Name[])
, this method allows for
non-unique keys in the result set.
keyFieldNames
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.valueFieldNames
- The values.java.lang.IllegalArgumentException
- If any of the argument field names is
not contained in fieldsRow()
<E> java.util.Map<Record,java.util.List<E>> intoGroups(Field<?>[] keys, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
Unlike intoMap(Field[], Class)
, this method allows for
non-unique keys in the result set.
keys
- The keys. If this is null
or an empty array, the
resulting map will contain at most one entry.type
- The entity type.java.lang.IllegalArgumentException
- If the any of the argument fields is not
contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<Record,java.util.List<E>> intoGroups(int[] keyFieldIndexes, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
Unlike intoMap(int[], Class)
, this method allows for non-unique
keys in the result set.
keyFieldIndexes
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.type
- The entity type.java.lang.IllegalArgumentException
- If the any of the argument field indexes
is not contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<Record,java.util.List<E>> intoGroups(java.lang.String[] keyFieldNames, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
Unlike intoMap(String[], Class)
, this method allows for
non-unique keys in the result set.
keyFieldNames
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.type
- The entity type.java.lang.IllegalArgumentException
- If the any of the argument field names
is not contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<Record,java.util.List<E>> intoGroups(Name[] keyFieldNames, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
Unlike intoMap(Name[], Class)
, this method allows for
non-unique keys in the result set.
keyFieldNames
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.type
- The entity type.java.lang.IllegalArgumentException
- If the any of the argument field names
is not contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<Record,java.util.List<E>> intoGroups(Field<?>[] keys, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
Unlike intoMap(Field[], RecordMapper)
, this method allows for
non-unique keys in the result set.
keys
- The keys. If this is null
or an empty array, the
resulting map will contain at most one entry.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the any of the argument fields is not
contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<Record,java.util.List<E>> intoGroups(int[] keyFieldIndexes, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
Unlike intoMap(int[], RecordMapper)
, this method allows for
non-unique keys in the result set.
keyFieldIndexes
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the any of the argument field indexes
is not contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<Record,java.util.List<E>> intoGroups(java.lang.String[] keyFieldNames, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
Unlike intoMap(String[], RecordMapper)
, this method allows for
non-unique keys in the result set.
keyFieldNames
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the any of the argument field indexes
is not contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E> java.util.Map<Record,java.util.List<E>> intoGroups(Name[] keyFieldNames, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given keys and mapped
into the given entity type.
Unlike intoMap(Name[], RecordMapper)
, this method allows for
non-unique keys in the result set.
keyFieldNames
- The keys. If this is null
or an empty
array, the resulting map will contain at most one entry.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the any of the argument field indexes
is not contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<K> java.util.Map<K,Result<R>> intoGroups(java.lang.Class<? extends K> keyType) throws MappingException
Map
with results grouped by the given key entity.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
Unlike intoMap(Class)
, this method allows for non-unique keys in
the result set.
keyType
- The key type. If this is null
, the resulting
map will contain at most one entry.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<K,V> java.util.Map<K,java.util.List<V>> intoGroups(java.lang.Class<? extends K> keyType, java.lang.Class<? extends V> valueType) throws MappingException
Map
with results grouped by the given key entity and
mapped into the given entity type.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
Unlike intoMap(Class, Class)
, this method allows for non-unique
keys in the result set.
keyType
- The key type. If this is null
, the resulting
map will contain at most one entry.valueType
- The value type.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<K,V> java.util.Map<K,java.util.List<V>> intoGroups(java.lang.Class<? extends K> keyType, RecordMapper<? super R,V> valueMapper) throws MappingException
Map
with results grouped by the given key entity and
mapped into the given entity type.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
Unlike intoMap(Class, RecordMapper)
, this method allows for
non-unique keys in the result set.
keyType
- The key type. If this is null
, the resulting
map will contain at most one entry.valueMapper
- The value mapper.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<K> java.util.Map<K,Result<R>> intoGroups(RecordMapper<? super R,K> keyMapper) throws MappingException
Map
with results grouped by the given key entity and
mapped into the given entity type.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
Unlike intoMap(RecordMapper, RecordMapper)
, this method allows
for non-unique keys in the result set.
keyMapper
- The key mapper.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<K,V> java.util.Map<K,java.util.List<V>> intoGroups(RecordMapper<? super R,K> keyMapper, java.lang.Class<V> valueType) throws MappingException
Map
with results grouped by the given key entity and
mapped into the given entity type.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
Unlike intoMap(RecordMapper, Class)
, this method allows for
non-unique keys in the result set.
keyMapper
- The key mapper.valueType
- The value type.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<K,V> java.util.Map<K,java.util.List<V>> intoGroups(RecordMapper<? super R,K> keyMapper, RecordMapper<? super R,V> valueMapper) throws MappingException
Map
with results grouped by the given key entity and
mapped into the given entity type.
The grouping semantics is governed by the key type's
Object.equals(Object)
and Object.hashCode()
implementation, not necessarily the values as fetched from the database.
Unlike intoMap(RecordMapper, RecordMapper)
, this method allows
for non-unique keys in the result set.
keyMapper
- The key mapper.valueMapper
- The value mapper.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<S extends Record> java.util.Map<S,Result<R>> intoGroups(Table<S> table) throws java.lang.IllegalArgumentException
Map
with the result grouped by the given key table.
Unlike intoMap(Table)
, this method allows for non-unique keys in
the result set.
table
- The key table. May not be null
.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
<S extends Record,T extends Record> java.util.Map<S,Result<T>> intoGroups(Table<S> keyTable, Table<T> valueTable) throws java.lang.IllegalArgumentException
Map
with the result grouped by the given key table.
Unlike intoMap(Table, Table)
, this method allows for non-unique
keys in the result set.
keyTable
- The key table. May not be null
.valueTable
- The value table. May not be null
.java.lang.IllegalArgumentException
- If any of the argument fields is not
contained in fieldsRow()
<E,S extends Record> java.util.Map<S,java.util.List<E>> intoGroups(Table<S> table, java.lang.Class<? extends E> type) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given key table and
mapped into the given entity type.
Unlike intoMap(Table, Class)
, this method allows for non-unique
keys in the result set.
table
- The key table. May not be null
.type
- The entity type.java.lang.IllegalArgumentException
- If the any of the argument fields is not
contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
<E,S extends Record> java.util.Map<S,java.util.List<E>> intoGroups(Table<S> table, RecordMapper<? super R,E> mapper) throws java.lang.IllegalArgumentException, MappingException
Map
with results grouped by the given key table and
mapped into the given entity type.
Unlike intoMap(Table, RecordMapper)
, this method allows for
non-unique keys in the result set.
table
- The key table. May not be null
.mapper
- The mapper callback.java.lang.IllegalArgumentException
- If the any of the argument fields is not
contained in fieldsRow()
MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsDefaultRecordMapper
@Deprecated java.lang.Object[][] intoArray()
intoArrays()
instead.java.lang.Object[][] intoArrays()
The resulting array has the same number of first-dimension elements as this result has records. It has the same number of second-dimension elements as this result's records have fields. The resulting array contains data as such:
// For arbitrary values of i, j
result.getValue(i, j) == result.intoArray()[i][j]
Record.intoArray()
java.lang.Object[] intoArray(int fieldIndex) throws java.lang.IllegalArgumentException
You can access data like this
result.intoArray(fieldIndex)[recordIndex]
Object[]
, depending on whether jOOQ has any
knowledge about fieldIndex
's actual type.java.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
getValues(int)
<T> T[] intoArray(int fieldIndex, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
You can access data like this
result.intoArray(fieldIndex)[recordIndex]
java.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(int, Class)
<U> U[] intoArray(int fieldIndex, Converter<?,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
You can access data like this
result.intoArray(fieldIndex)[recordIndex]
java.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(int, Converter)
java.lang.Object[] intoArray(java.lang.String fieldName) throws java.lang.IllegalArgumentException
You can access data like this
result.intoArray(fieldName)[recordIndex]
Object[]
, depending on whether jOOQ has any
knowledge about fieldName
's actual type.java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
getValues(String)
<T> T[] intoArray(java.lang.String fieldName, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
You can access data like this
result.intoArray(fieldName)[recordIndex]
java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(String, Class)
<U> U[] intoArray(java.lang.String fieldName, Converter<?,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
You can access data like this
result.intoArray(fieldName)[recordIndex]
java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(String, Converter)
java.lang.Object[] intoArray(Name fieldName) throws java.lang.IllegalArgumentException
You can access data like this
result.intoArray(fieldName)[recordIndex]
Object[]
, depending on whether jOOQ has any
knowledge about fieldName
's actual type.java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
getValues(Name)
<T> T[] intoArray(Name fieldName, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
You can access data like this
result.intoArray(fieldName)[recordIndex]
java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(Name, Class)
<U> U[] intoArray(Name fieldName, Converter<?,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
You can access data like this
result.intoArray(fieldName)[recordIndex]
java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(Name, Converter)
<T> T[] intoArray(Field<T> field) throws java.lang.IllegalArgumentException
You can access data like this
result.intoArray(field)[recordIndex]
java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
getValues(Field)
<T> T[] intoArray(Field<?> field, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
You can access data like this
result.intoArray(field)[recordIndex]
java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(Field, Class)
<T,U> U[] intoArray(Field<T> field, Converter<? super T,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
You can access data like this
result.intoArray(field)[recordIndex]
java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(Field, Converter)
java.util.Set<?> intoSet(int fieldIndex) throws java.lang.IllegalArgumentException
Object[]
, depending on whether jOOQ has any
knowledge about fieldIndex
's actual type.java.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
getValues(int)
<T> java.util.Set<T> intoSet(int fieldIndex, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
java.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(int, Class)
<U> java.util.Set<U> intoSet(int fieldIndex, Converter<?,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
java.lang.IllegalArgumentException
- If the argument fieldIndex is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(int, Converter)
java.util.Set<?> intoSet(java.lang.String fieldName) throws java.lang.IllegalArgumentException
Object[]
, depending on whether jOOQ has any
knowledge about fieldName
's actual type.java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
getValues(String)
<T> java.util.Set<T> intoSet(java.lang.String fieldName, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(String, Class)
<U> java.util.Set<U> intoSet(java.lang.String fieldName, Converter<?,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(String, Converter)
java.util.Set<?> intoSet(Name fieldName) throws java.lang.IllegalArgumentException
Object[]
, depending on whether jOOQ has any
knowledge about fieldName
's actual type.java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
getValues(Name)
<T> java.util.Set<T> intoSet(Name fieldName, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(Name, Class)
<U> java.util.Set<U> intoSet(Name fieldName, Converter<?,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
java.lang.IllegalArgumentException
- If the argument fieldName is not
contained in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(Name, Converter)
<T> java.util.Set<T> intoSet(Field<T> field) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
getValues(Field)
<T> java.util.Set<T> intoSet(Field<?> field, java.lang.Class<? extends T> type) throws java.lang.IllegalArgumentException, DataTypeException
java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(Field, Class)
<T,U> java.util.Set<U> intoSet(Field<T> field, Converter<? super T,? extends U> converter) throws java.lang.IllegalArgumentException, DataTypeException
java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
DataTypeException
- wrapping any data type conversion exception
that might have occurredgetValues(Field, Converter)
Result<Record> into(Field<?>... fields)
fields
- The fields of the new records@Generated(value="This class was generated using jOOQ-tools") <T1> Result<Record1<T1>> into(Field<T1> field1)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2> Result<Record2<T1,T2>> into(Field<T1> field1, Field<T2> field2)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3> Result<Record3<T1,T2,T3>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4> Result<Record4<T1,T2,T3,T4>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5> Result<Record5<T1,T2,T3,T4,T5>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6> Result<Record6<T1,T2,T3,T4,T5,T6>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7> Result<Record7<T1,T2,T3,T4,T5,T6,T7>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8> Result<Record8<T1,T2,T3,T4,T5,T6,T7,T8>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9> Result<Record9<T1,T2,T3,T4,T5,T6,T7,T8,T9>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> Result<Record10<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> Result<Record11<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> Result<Record12<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> Result<Record13<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> Result<Record14<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> Result<Record15<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> Result<Record16<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17> Result<Record17<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18> Result<Record18<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17, Field<T18> field18)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19> Result<Record19<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17, Field<T18> field18, Field<T19> field19)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20> Result<Record20<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17, Field<T18> field18, Field<T19> field19, Field<T20> field20)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21> Result<Record21<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17, Field<T18> field18, Field<T19> field19, Field<T20> field20, Field<T21> field21)
@Generated(value="This class was generated using jOOQ-tools") <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22> Result<Record22<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22>> into(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11> field11, Field<T12> field12, Field<T13> field13, Field<T14> field14, Field<T15> field15, Field<T16> field16, Field<T17> field17, Field<T18> field18, Field<T19> field19, Field<T20> field20, Field<T21> field21, Field<T22> field22)
<E> java.util.List<E> into(java.lang.Class<? extends E> type) throws MappingException
This is the same as calling record.into(type)
on every
record contained in this Result
. See
Record.into(Class)
for more details
E
- The generic entity type.type
- The entity type.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsRecord.into(Class)
,
DefaultRecordMapper
<Z extends Record> Result<Z> into(Table<Z> table) throws MappingException
This is the same as calling record.into(table)
on every
record contained in this Result
. See
Record.into(Table)
for more details
Z
- The generic table record type.table
- The table type.MappingException
- wrapping any reflection or data type conversion
exception that might have occurred while mapping recordsRecord.into(Table)
<H extends RecordHandler<? super R>> H into(H handler)
handler
- The handler callbackjava.sql.ResultSet intoResultSet()
ResultSet
containing the data of this
Result
.
Use this as an adapter for JDBC-compliant code that expects a
ResultSet
to operate on, rather than a jOOQ Result
. The
returned ResultSet
allows for the following behaviour
according to the JDBC specification:
ResultSet.CLOSE_CURSORS_AT_COMMIT
: The cursors (i.e.
Statement
object) are no longer availableResultSet.CONCUR_READ_ONLY
: You cannot update the database
through this ResultSet
, as the underlying Result
object does not hold any open database refences anymoreResultSet.FETCH_FORWARD
: The fetch direction is forward only,
and cannot be changedResultSet.TYPE_SCROLL_INSENSITIVE
: You can use any of the
ResultSet
's scrolling methods, e.g. ResultSet.next()
or ResultSet.previous()
, etc.
You may use DSLContext.fetch(ResultSet)
to unwind this wrapper
again.
ResultSet
<E> java.util.List<E> map(RecordMapper<? super R,E> mapper)
mapper
- The mapper callback<T extends java.lang.Comparable<? super T>> Result<R> sortAsc(Field<T> field) throws java.lang.IllegalArgumentException
nulls
are sorted last by this method.
field
- The sort fieldjava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
<T extends java.lang.Comparable<? super T>> Result<R> sortDesc(Field<T> field) throws java.lang.IllegalArgumentException
nulls
are sorted last by this method.
field
- The sort fieldjava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortAsc(int fieldIndex) throws java.lang.IllegalArgumentException
nulls
are sorted last by this method.
fieldIndex
- The sort field indexjava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortDesc(int fieldIndex) throws java.lang.IllegalArgumentException
nulls
are sorted last by this method.
fieldIndex
- The sort field indexjava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortAsc(java.lang.String fieldName) throws java.lang.IllegalArgumentException
nulls
are sorted last by this method.
fieldName
- The sort field namejava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortDesc(java.lang.String fieldName) throws java.lang.IllegalArgumentException
nulls
are sorted last by this method.
fieldName
- The sort field namejava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortAsc(Name fieldName) throws java.lang.IllegalArgumentException
nulls
are sorted last by this method.
fieldName
- The sort field namejava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortDesc(Name fieldName) throws java.lang.IllegalArgumentException
nulls
are sorted last by this method.
fieldName
- The sort field namejava.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
<T> Result<R> sortAsc(Field<T> field, java.util.Comparator<? super T> comparator) throws java.lang.IllegalArgumentException
null
sorting must be handled by the supplied
comparator
.
field
- The sort fieldcomparator
- The comparator used to sort this result.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
<T> Result<R> sortDesc(Field<T> field, java.util.Comparator<? super T> comparator) throws java.lang.IllegalArgumentException
null
sorting must be handled by the supplied
comparator
.
field
- The sort fieldcomparator
- The comparator used to sort this result.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortAsc(int fieldIndex, java.util.Comparator<?> comparator) throws java.lang.IllegalArgumentException
null
sorting must be handled by the supplied
comparator
.
fieldIndex
- The sort field indexcomparator
- The comparator used to sort this result.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortDesc(int fieldIndex, java.util.Comparator<?> comparator) throws java.lang.IllegalArgumentException
null
sorting must be handled by the supplied
comparator
.
fieldIndex
- The sort field indexcomparator
- The comparator used to sort this result.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortAsc(java.lang.String fieldName, java.util.Comparator<?> comparator) throws java.lang.IllegalArgumentException
null
sorting must be handled by the supplied
comparator
.
fieldName
- The sort field namecomparator
- The comparator used to sort this result.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortDesc(java.lang.String fieldName, java.util.Comparator<?> comparator) throws java.lang.IllegalArgumentException
null
sorting must be handled by the supplied
comparator
.
fieldName
- The sort field namecomparator
- The comparator used to sort this result.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortAsc(Name fieldName, java.util.Comparator<?> comparator) throws java.lang.IllegalArgumentException
null
sorting must be handled by the supplied
comparator
.
fieldName
- The sort field namecomparator
- The comparator used to sort this result.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortDesc(Name fieldName, java.util.Comparator<?> comparator) throws java.lang.IllegalArgumentException
null
sorting must be handled by the supplied
comparator
.
fieldName
- The sort field namecomparator
- The comparator used to sort this result.java.lang.IllegalArgumentException
- If the argument field is not contained
in fieldsRow()
Result<R> sortAsc(java.util.Comparator<? super R> comparator)
comparator
- The comparator used to sort this result.Result<R> sortDesc(java.util.Comparator<? super R> comparator)
comparator
- The comparator used to sort this result.@Deprecated Result<R> intern(Field<?>... fields)
See intern(int...)
for more details.
fields
- The fields whose values should be internedintern(Field...)
,
String.intern()
@Deprecated Result<R> intern(int... fieldIndexes)
This traverses all records and interns String
values for a
given set of field indexes. Use this method to save memory when a large
result set contains many identical string literals.
Please refer to String.intern()
and to publicly available
literature to learn more about potential side-effects of string
interning.
Future versions of jOOQ may also "intern" other data types, such as
Integer
, Long
, within a Result
object.
fieldIndexes
- The field indexes whose values should be internedintern(Field...)
,
String.intern()
@Deprecated Result<R> intern(java.lang.String... fieldNames)
See intern(int...)
for more details.
fieldNames
- The field names whose values should be internedintern(Field...)
,
String.intern()
@Deprecated Result<R> intern(Name... fieldNames)
See intern(int...)
for more details.
fieldNames
- The field names whose values should be internedintern(Field...)
,
String.intern()
<O extends UpdatableRecord<O>> Result<O> fetchParents(ForeignKey<R,O> key) throws DataAccessException
DataAccessException
- if something went wrong executing the query.ForeignKey.fetchParent(Record)
,
ForeignKey.fetchParents(java.util.Collection)
,
ForeignKey.fetchParents(Record...)
<O extends TableRecord<O>> Result<O> fetchChildren(ForeignKey<O,R> key) throws DataAccessException
DataAccessException
- if something went wrong executing the query.ForeignKey.fetchChildren(java.util.Collection)
,
ForeignKey.fetchChildren(Record)
,
ForeignKey.fetchChildren(Record...)
void attach(Configuration configuration)
Configuration
.attach
in interface Attachable
configuration
- A configuration or null
, if you wish to
detach this Attachable
from its previous
configuration.void detach()
Configuration
.
This is the same as calling attach(null)
.
detach
in interface Attachable
Copyright © 2018. All Rights Reserved.