- Type Parameters:
- R- The record type contained in this result
- All Superinterfaces:
- Attachable,- Collection<R>,- Fields,- Formattable,- Iterable<R>,- List<R>,- SequencedCollection<R>,- Serializable
SelectQuery- Author:
- Lukas Eder
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidattach(Configuration configuration) Attach this result and all of its contained records to a newConfiguration.<O extends TableRecord<O>>
 @NotNull Table<O> children(ForeignKey<O, R> key) Get a table expression representing the children of all of this result's records, given a foreign key.<X,A> X Collect all records of this result.voiddetach()Detach this result and all of its contained records from their currentConfiguration.<O extends TableRecord<O>>
 @NotNull Result<O> fetchChildren(ForeignKey<O, R> key) Fetch child records of this record, given a foreign key, as if fetching fromchildren(ForeignKey).<O extends UpdatableRecord<O>>
 @NotNull Result<O> fetchParents(ForeignKey<R, O> key) Fetch parent records of this record, given a foreign key, as if fetching fromparents(ForeignKey).@Nullable ObjectgetValue(int index, int fieldIndex) Convenience method to fetch a value at a given position in the result.@Nullable ObjectConvenience method to fetch a value at a given position in the result, usingFields.field(String)for lookup.<T> TConvenience method to fetch a value at a given position in the result, usingFields.field(Field)for lookup.@NotNull List<?> getValues(int index) Convenience method to fetch all values for a given field.<U> @NotNull List<U> Convenience method to fetch all values for a given field.<U> @NotNull List<U> Convenience method to fetch all values for a given field.@NotNull List<?> Convenience method to fetch all values for a given field.<U> @NotNull List<U> Convenience method to fetch all values for a given field.<U> @NotNull List<U> Convenience method to fetch all values for a given field.<U> @NotNull List<U> Convenience method to fetch all values for a given field.<T> @NotNull List<T> Convenience method to fetch all values for a given field.<T,U> @NotNull List <U> Convenience method to fetch all values for a given field.@NotNull List<?> Convenience method to fetch all values for a given field.<U> @NotNull List<U> Convenience method to fetch all values for a given field.<U> @NotNull List<U> Convenience method to fetch all values for a given field.<H extends RecordHandler<? super R>>
 Hinto(H handler) Deprecated, for removal: This API element is subject to removal in a future version.<E> @NotNull List<E> Map resulting records onto a custom type.Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.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, usingFields.field(Field)for lookup.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, usingFields.field(Field)for lookup.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, usingFields.field(Field)for lookup.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, usingFields.field(Field)for lookup.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, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> 
 @NotNull 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) Copy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.Map resulting records onto a custom record.@Nullable Object @NotNull []intoArray(int fieldIndex) Return all values for a field index from the result.<U> U @NotNull []Return all values for a field index from the result.<U> U @NotNull []Return all values for a field index from the result.@Nullable Object @NotNull []Return all values for a field name from the result, usingFields.field(String)for lookup.<U> U @NotNull []Return all values for a field name from the result, usingFields.field(String)for lookup.<U> U @NotNull []Return all values for a field name from the result, usingFields.field(String)for lookup.<U> U @NotNull []Return all values for a field from the result, usingFields.field(Field)for lookup.<T> T @NotNull []Return all values for a field from the result, usingFields.field(Field)for lookup.<T,U> U @NotNull [] Return all values for a field from the result, usingFields.field(Field)for lookup.@Nullable Object @NotNull []Return all values for a field name from the result, usingFields.field(Name)for lookup.<U> U @NotNull []Return all values for a field name from the result, usingFields.field(Name)for lookup.<U> U @NotNull []Return all values for a field name from the result, usingFields.field(Name)for lookup.@Nullable Object @NotNull [] @NotNull []Convert this result into an array of arrays.intoGroups(int keyFieldIndex) Return aMapwith one of the result's columns as key and a list of corresponding records as value.intoGroups(int[] keyFieldIndexes) Return aMapwith the result grouped by the given keys.intoGroups(int[] keyFieldIndexes, int[] valueFieldIndexes) Return aMapwith the result grouped by the given keys.intoGroups(int[] keyFieldIndexes, Class<? extends E> type) Return aMapwith results grouped by the given keys and mapped into the given entity type.intoGroups(int[] keyFieldIndexes, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given keys and mapped into the given entity type.intoGroups(int keyFieldIndex, int valueFieldIndex) Return aMapwith one of the result's columns as key and another one of the result's columns as value.intoGroups(int keyFieldIndex, Class<? extends E> type) Return aMapwith results grouped by the given key and mapped into the given entity type.intoGroups(int keyFieldIndex, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given key and mapped by the given mapper.intoGroups(Class<? extends K> keyType) Return aMapwith results grouped by the given key entity.intoGroups(Class<? extends K> keyType, Class<? extends V> valueType) Return aMapwith results grouped by the given key entity and mapped into the given entity type.intoGroups(Class<? extends K> keyType, RecordMapper<? super R, V> valueMapper) Return aMapwith results grouped by the given key entity and mapped into the given entity type.intoGroups(String keyFieldName) Return aMapwith one of the result's columns as key and a list of corresponding records as value, usingFields.field(String)for lookup.intoGroups(String[] keyFieldNames) Return aMapwith the result grouped by the given keys, usingFields.field(String)for lookup.intoGroups(String[] keyFieldNames, Class<? extends E> type) Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(String)for lookup.intoGroups(String[] keyFieldNames, String[] valueFieldNames) Return aMapwith the result grouped by the given keys, usingFields.field(String)for lookup.intoGroups(String[] keyFieldNames, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(String)for lookup.intoGroups(String keyFieldName, Class<? extends E> type) Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(String)for lookup.intoGroups(String keyFieldName, String valueFieldName) Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(String)for lookup.intoGroups(String keyFieldName, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(String)for lookup.intoGroups(Field<?>[] keys) Return aMapwith the result grouped by the given keys, usingFields.field(Field)for lookup.intoGroups(Field<?>[] keys, Class<? extends E> type) Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Field)for lookup.intoGroups(Field<?>[] keys, Field<?>[] values) Return aMapwith the result grouped by the given keys, usingFields.field(Field)for lookup.intoGroups(Field<?>[] keys, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Field)for lookup.intoGroups(Field<K> key) Return aMapwith one of the result's columns as key and a list of corresponding records as value, usingFields.field(Field)for lookup.intoGroups(Field<K> key, Class<? extends E> type) Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(Field)for lookup.intoGroups(Field<K> key, Field<V> value) Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(Field)for lookup.intoGroups(Field<K> key, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(Field)for lookup.intoGroups(Name keyFieldName) Return aMapwith one of the result's columns as key and a list of corresponding records as value, usingFields.field(Name)for lookup.intoGroups(Name[] keyFieldNames) Return aMapwith the result grouped by the given keys, usingFields.field(Name)for lookup.intoGroups(Name[] keyFieldNames, Class<? extends E> type) Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Name)for lookup.intoGroups(Name[] keyFieldNames, Name[] valueFieldNames) Return aMapwith the result grouped by the given keys, usingFields.field(Name)for lookup.intoGroups(Name[] keyFieldNames, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Name)for lookup.intoGroups(Name keyFieldName, Class<? extends E> type) Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(Name)for lookup.intoGroups(Name keyFieldName, Name valueFieldName) Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(Name)for lookup.intoGroups(Name keyFieldName, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(Name)for lookup.intoGroups(RecordMapper<? super R, K> keyMapper) Return aMapwith results grouped by the given key entity and mapped into the given entity type.intoGroups(RecordMapper<? super R, K> keyMapper, Class<V> valueType) Return aMapwith results grouped by the given key entity and mapped into the given entity type.intoGroups(RecordMapper<? super R, K> keyMapper, RecordMapper<? super R, V> valueMapper) Return aMapwith results grouped by the given key entity and mapped into the given entity type.intoGroups(Table<S> table) Return aMapwith the result grouped by the given key table.intoGroups(Table<S> table, Class<? extends E> type) Return aMapwith results grouped by the given key table and mapped into the given entity type.intoGroups(Table<S> table, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given key table and mapped into the given entity type.intoGroups(Table<S> keyTable, Table<T> valueTable) Return aMapwith the result grouped by the given key table.intoMap(int keyFieldIndex) Return aMapwith one of the result's columns as key and the corresponding records as value.intoMap(int[] keyFieldIndexes) Return aMapwith the given keys as a map key and the corresponding record as value.intoMap(int[] keyFieldIndexes, int[] valueFieldIndexes) Return aMapwith the given keys as a map key and the corresponding record as value.Return aMapwith results grouped by the given keys and mapped into the given entity type.intoMap(int[] keyFieldIndexes, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given keys and mapped by the given mapper.@NotNull Map<?, ?> intoMap(int keyFieldIndex, int valueFieldIndex) Return aMapwith one of the result's columns as key and another one of the result's columns as value<E> @NotNull Map<?, E> Return aMapwith results grouped by the given key and mapped into the given entity type.<E> @NotNull Map<?, E> intoMap(int keyFieldIndex, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given key and mapped by the given mapper.Return aMapwith results grouped by the given key entity.<K,V> @NotNull Map <K, V> Return aMapwith results grouped by the given key entity and mapped into the given entity type.<K,V> @NotNull Map <K, V> intoMap(Class<? extends K> keyType, RecordMapper<? super R, V> valueMapper) Return aMapwith results grouped by the given key entity and mapped into the given entity type.Return aMapwith one of the result's columns as key and the corresponding records as value, usingFields.field(String)for lookup.Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(String)for lookup.Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(String)for lookup.Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(String)for lookup.intoMap(String[] keyFieldNames, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given keys and mapped by the given mapper, usingFields.field(String)for lookup.<E> @NotNull Map<?, E> Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(String)for lookup.@NotNull Map<?, ?> Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(String)for lookup.<E> @NotNull Map<?, E> intoMap(String keyFieldName, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(String)for lookup.Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(Field)for lookup.Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Field)for lookup.Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(Field)for lookup.intoMap(Field<?>[] keys, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given keys and mapped by the given mapper, usingFields.field(Field)for lookup.Return aMapwith one of the result's columns as key and the corresponding records as value, usingFields.field(Field)for lookup.<K,E> @NotNull Map <K, E> Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(Field)for lookup.<K,V> @NotNull Map <K, V> Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(Field)for lookup.<K,E> @NotNull Map <K, E> intoMap(Field<K> key, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(Field)for lookup.Return aMapwith one of the result's columns as key and the corresponding records as value, usingFields.field(Name)for lookup.Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(Name)for lookup.Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Name)for lookup.Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(Name)for lookup.intoMap(Name[] keyFieldNames, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given keys and mapped by the given mapper, usingFields.field(Name)for lookup.<E> @NotNull Map<?, E> Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(Name)for lookup.@NotNull Map<?, ?> Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(Name)for lookup.<E> @NotNull Map<?, E> intoMap(Name keyFieldName, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(Name)for lookup.intoMap(RecordMapper<? super R, K> keyMapper) Return aMapwith results grouped by the given key entity and mapped into the given entity type.<K,V> @NotNull Map <K, V> intoMap(RecordMapper<? super R, K> keyMapper, Class<V> valueType) Return aMapwith results grouped by the given key entity and mapped into the given entity type.<K,V> @NotNull Map <K, V> intoMap(RecordMapper<? super R, K> keyMapper, RecordMapper<? super R, V> valueMapper) Return aMapwith results grouped by the given key entity and mapped into the given entity type.Return aMapwith the given key table as a map key and the corresponding record as value.Return aMapwith results grouped by the given key table and mapped into the given entity type.intoMap(Table<S> table, RecordMapper<? super R, E> mapper) Return aMapwith results grouped by the given key table and mapped by the given mapper.Return aMapwith the given key table as a map key and the corresponding record as value.intoMaps()Return the generated result as a list of name/value maps.@NotNull ResultSetGenerate an in-memory JDBCResultSetcontaining the data of thisResult.@NotNull Set<?> intoSet(int fieldIndex) Return all values for a field index from the result.<U> @NotNull Set<U> Return all values for a field index from the result.<U> @NotNull Set<U> Return all values for a field index from the result.@NotNull Set<?> Return all values for a field name from the result, usingFields.field(String)for lookup.<U> @NotNull Set<U> Return all values for a field name from the result, usingFields.field(String)for lookup.<U> @NotNull Set<U> Return all values for a field name from the result, usingFields.field(String)for lookup.<U> @NotNull Set<U> Return all values for a field from the result, usingFields.field(Field)for lookup.<T> @NotNull Set<T> Return all values for a field from the result, usingFields.field(Field)for lookup.<T,U> @NotNull Set <U> Return all values for a field from the result, usingFields.field(Field)for lookup.@NotNull Set<?> Return all values for a field name from the result, usingFields.field(Name)for lookup.<U> @NotNull Set<U> Return all values for a field name from the result, usingFields.field(Name)for lookup.<U> @NotNull Set<U> Return all values for a field name from the result, usingFields.field(Name)for lookup.<E> @NotNull Set<E> intoSet(RecordMapper<? super R, E> mapper) Map results into a custom mapper callback.booleanisEmpty()Whether there are any records contained in thisResult.booleanWhether there are any records contained in thisResult.<E> @NotNull List<E> map(RecordMapper<? super R, E> mapper) Map results into a custom mapper callback.<O extends UpdatableRecord<O>>
 @NotNull Table<O> parents(ForeignKey<R, O> key) Get a table expression representing the parents of all of this result's records, given a foreign key.@NotNull RecordType<R> Get this result's record type.sortAsc(int fieldIndex) Sort this result by one of its contained fields.sortAsc(int fieldIndex, Comparator<?> comparator) Sort this result by one of its contained fields using a comparator.Sort this result by one of its contained fields, usingFields.field(String)for lookup.sortAsc(String fieldName, Comparator<?> comparator) Sort this result by one of its contained fields using a comparator, usingFields.field(String)for lookup.sortAsc(Comparator<? super R> comparator) Sort this result using a comparator that can compare records.<T extends Comparable<? super T>>
 @NotNull Result<R> Sort this result by one of its contained fields, usingFields.field(Field)for lookup.sortAsc(Field<T> field, Comparator<? super T> comparator) Sort this result by one of its contained fields using a comparator, usingFields.field(Field)for lookup.Sort this result by one of its contained fields, usingFields.field(Name)for lookup.sortAsc(Name fieldName, Comparator<?> comparator) Sort this result by one of its contained fields using a comparator, usingFields.field(Name)for lookup.sortDesc(int fieldIndex) Reverse-sort this result by one of its contained fields.sortDesc(int fieldIndex, Comparator<?> comparator) Reverse-sort this result by one of its contained fields using a comparator.Reverse-sort this result by one of its contained fields, usingFields.field(String)for lookup.sortDesc(String fieldName, Comparator<?> comparator) Reverse-sort this result by one of its contained fields using a comparator, usingFields.field(String)for lookup.sortDesc(Comparator<? super R> comparator) Reverse-sort this result using a comparator that can compare records.<T extends Comparable<? super T>>
 @NotNull Result<R> Reverse-sort this result by one of its contained fields, usingFields.field(Field)for lookup.sortDesc(Field<T> field, Comparator<? super T> comparator) Reverse-sort this result by one of its contained fields using a comparator, usingFields.field(Field)for lookup.Reverse-sort this result by one of its contained fields, usingFields.field(Name)for lookup.sortDesc(Name fieldName, Comparator<?> comparator) Reverse-sort this result by one of its contained fields using a comparator, usingFields.field(Name)for lookup.Methods inherited from interface org.jooq.AttachableconfigurationMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface org.jooq.FieldsdataType, dataType, dataType, dataTypes, field, field, field, field, field, field, field, field, field, field, fields, fields, fields, fields, fields, fieldsIncludingHidden, fieldsRow, fieldStream, indexOf, indexOf, indexOf, type, type, type, typesMethods inherited from interface org.jooq.Formattableformat, format, format, format, format, format, format, format, format, formatChart, formatChart, formatChart, formatChart, formatChart, formatChart, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatCSV, formatHTML, formatHTML, formatHTML, formatInsert, formatInsert, formatInsert, formatInsert, formatInsert, formatInsert, formatJSON, formatJSON, formatJSON, formatJSON, formatJSON, formatJSON, formatXML, formatXML, formatXML, formatXML, formatXML, formatXML, intoXML, intoXML, intoXML, intoXMLMethods inherited from interface java.util.Listadd, add, addAll, addAll, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, set, size, sort, spliterator, subList, toArray, toArray
- 
Method Details- 
recordTypeGet this result's record type.
- 
getValue<T> T getValue(int index, Field<T> field) throws IndexOutOfBoundsException, IllegalArgumentException Convenience method to fetch a value at a given position in the result, usingFields.field(Field)for lookup.- Type Parameters:
- T- The value's field's generic type parameter
- Parameters:
- index- The record's 0-based index in the record list
- field- The value's field
- Returns:
- The value
- Throws:
- IndexOutOfBoundsException- if the index is out of range (- index < 0 || index >= size())
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
getValue@Nullable @Nullable Object getValue(int index, int fieldIndex) throws IndexOutOfBoundsException, IllegalArgumentException Convenience method to fetch a value at a given position in the result.- Parameters:
- index- The record's 0-based index in the record list
- fieldIndex- The value's field index
- Returns:
- The value
- Throws:
- IndexOutOfBoundsException- if the index is out of range (- index < 0 || index >= size())
- IllegalArgumentException- If the argument fieldIndex is not contained in- Fields.fieldsRow()
 
- 
getValue@Nullable @Nullable Object getValue(int index, String fieldName) throws IndexOutOfBoundsException, IllegalArgumentException Convenience method to fetch a value at a given position in the result, usingFields.field(String)for lookup.- Parameters:
- index- The record's 0-based index in the record list
- fieldName- The value's field name
- Returns:
- The value
- Throws:
- IndexOutOfBoundsException- if the index is out of range (- index < 0 || index >= size())
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
 
- 
getValuesConvenience method to fetch all values for a given field. This is especially useful, when selecting only a single field, usingFields.field(Field)for lookup.- Type Parameters:
- T- The values' field's generic type parameter
- Parameters:
- field- The values' field
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
getValues@NotNull <U> @NotNull List<U> getValues(Field<?> field, Class<? extends U> type) throws IllegalArgumentException Convenience method to fetch all values for a given field. This is especially useful, when selecting only a single field, usingFields.field(Field)for lookup.The Converterthat is provided byConfiguration.converterProvider()will be used to convert the value toU- Parameters:
- field- The values' field
- type- The type used for type conversion
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- See Also:
 
- 
getValues@NotNull <T,U> @NotNull List<U> getValues(Field<T> field, Converter<? super T, ? extends U> converter) throws IllegalArgumentExceptionConvenience method to fetch all values for a given field. This is especially useful, when selecting only a single field, usingFields.field(Field)for lookup.- Parameters:
- field- The values' field
- converter- The data type converter used for type conversion
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- See Also:
 
- 
getValuesConvenience method to fetch all values for a given field. This is especially useful, when selecting only a single field.- Parameters:
- index- The values' 0-based field index
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument fieldIndex is not contained in- Fields.fieldsRow()
 
- 
getValues@NotNull <U> @NotNull List<U> getValues(int index, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Convenience method to fetch all values for a given field. This is especially useful, when selecting only a single field.The Converterthat is provided byConfiguration.converterProvider()will be used to convert the value toU- Parameters:
- index- The values' 0-based field index
- type- The type used for type conversion
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument fieldIndex is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
getValues@NotNull <U> @NotNull List<U> getValues(int index, Converter<?, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionConvenience method to fetch all values for a given field. This is especially useful, when selecting only a single field.- Parameters:
- index- The values' 0-based field index
- converter- The data type converter used for type conversion
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument fieldIndex is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
getValuesConvenience method to fetch all values for a given field. This is especially useful, when selecting only a single field, usingFields.field(String)for lookup.- Parameters:
- fieldName- The values' field name
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
 
- 
getValues@NotNull <U> @NotNull List<U> getValues(String fieldName, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Convenience method to fetch all values for a given field. This is especially useful, when selecting only a single field, usingFields.field(String)for lookup.The Converterthat is provided byConfiguration.converterProvider()will be used to convert the value toU- Parameters:
- fieldName- The values' field name
- type- The type used for type conversion
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
getValues@NotNull <U> @NotNull List<U> getValues(String fieldName, Converter<?, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionConvenience method to fetch all values for a given field. This is especially useful, when selecting only a single field, usingFields.field(String)for lookup.- Parameters:
- fieldName- The values' field name
- converter- The data type converter used for type conversion
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
getValuesConvenience method to fetch all values for a given field. This is especially useful, when selecting only a single field, usingFields.field(Name)for lookup.- Parameters:
- fieldName- The values' field name
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
 
- 
getValues@NotNull <U> @NotNull List<U> getValues(Name fieldName, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Convenience method to fetch all values for a given field. This is especially useful, when selecting only a single field, usingFields.field(Name)for lookup.The Converterthat is provided byConfiguration.converterProvider()will be used to convert the value toU- Parameters:
- fieldName- The values' field name
- type- The type used for type conversion
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
getValues@NotNull <U> @NotNull List<U> getValues(Name fieldName, Converter<?, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionConvenience method to fetch all values for a given field. This is especially useful, when selecting only a single field, usingFields.field(Name)for lookup.- Parameters:
- fieldName- The values' field name
- converter- The data type converter used for type conversion
- Returns:
- The values
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
isEmptyboolean isEmpty()Whether there are any records contained in thisResult.
- 
isNotEmptyboolean isNotEmpty()Whether there are any records contained in thisResult.
- 
collectCollect all records of this result.This is the same as calling Stream.collect(Collector)onCollection.stream().
- 
intoMapsReturn the generated result as a list of name/value maps.- Returns:
- The result.
- See Also:
 
- 
intoMap@NotNull <K> @NotNull Map<K,R> intoMap(Field<K> key) throws IllegalArgumentException, InvalidResultException Return aMapwith one of the result's columns as key and the corresponding records as value, usingFields.field(Field)for lookup.An InvalidResultExceptionis thrown, if the key turns out to be non-unique in the result set. UseintoGroups(Field)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Type Parameters:
- K- The key's generic field type.
- Parameters:
- key- The key field. Client code must assure that this field is unique in the result set.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- InvalidResultException- if the key field returned two or more equal values from the result set.
 
- 
intoMap@NotNull @NotNull Map<?,R> intoMap(int keyFieldIndex) throws IllegalArgumentException, InvalidResultException Return aMapwith one of the result's columns as key and the corresponding records as value.An InvalidResultExceptionis thrown, if the key turns out to be non-unique in the result set. UseintoGroups(int)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndex- The 0-based key field index. Client code must assure that this field is unique in the result set.
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If the argument keyFieldIndex is not contained in- Fields.fieldsRow()
- InvalidResultException- if the key field returned two or more equal values from the result set.
 
- 
intoMap@NotNull @NotNull Map<?,R> intoMap(String keyFieldName) throws IllegalArgumentException, InvalidResultException Return aMapwith one of the result's columns as key and the corresponding records as value, usingFields.field(String)for lookup.An InvalidResultExceptionis thrown, if the key turns out to be non-unique in the result set. UseintoGroups(String)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name. Client code must assure that this field is unique in the result set.
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If the argument keyFieldName is not contained in- Fields.fieldsRow()
- InvalidResultException- if the key field returned two or more equal values from the result set.
 
- 
intoMap@NotNull @NotNull Map<?,R> intoMap(Name keyFieldName) throws IllegalArgumentException, InvalidResultException Return aMapwith one of the result's columns as key and the corresponding records as value, usingFields.field(Name)for lookup.An InvalidResultExceptionis thrown, if the key turns out to be non-unique in the result set. UseintoGroups(Name)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name. Client code must assure that this field is unique in the result set.
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If the argument keyFieldName is not contained in- Fields.fieldsRow()
- InvalidResultException- if the key field returned two or more equal values from the result set.
 
- 
intoMap@NotNull <K,V> @NotNull Map<K,V> intoMap(Field<K> key, Field<V> value) throws IllegalArgumentException, InvalidResultException Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(Field)for lookup.An InvalidResultExceptionis thrown, if the key turns out to be non-unique in the result set. UseintoGroups(Field, Field)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Type Parameters:
- K- The key's generic field type
- V- The value's generic field type
- Parameters:
- key- The key field. Client code must assure that this field is unique in the result set.
- value- The value field
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.fieldsRow()
- InvalidResultException- if the key field returned two or more equal values from the result set.
 
- 
intoMap@NotNull @NotNull Map<?,?> intoMap(int keyFieldIndex, int valueFieldIndex) throws IllegalArgumentException, InvalidResultException Return aMapwith one of the result's columns as key and another one of the result's columns as valueAn InvalidResultExceptionis thrown, if the key turns out to be non-unique in the result set. UseintoGroups(int, int)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndex- The 0-based key field index. Client code must assure that this field is unique in the result set.
- valueFieldIndex- The 0-based value field index
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If any of the argument field indexes is not contained in- Fields.fieldsRow()
- InvalidResultException- if the key field returned two or more equal values from the result set.
 
- 
intoMap@NotNull @NotNull Map<?,?> intoMap(String keyFieldName, String valueFieldName) throws IllegalArgumentException, InvalidResultException Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(String)for lookup.An InvalidResultExceptionis thrown, if the key turns out to be non-unique in the result set. UseintoGroups(String, String)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name. Client code must assure that this field is unique in the result set.
- valueFieldName- The value field name
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
- InvalidResultException- if the key field returned two or more equal values from the result set.
 
- 
intoMap@NotNull @NotNull Map<?,?> intoMap(Name keyFieldName, Name valueFieldName) throws IllegalArgumentException, InvalidResultException Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(Name)for lookup.An InvalidResultExceptionis thrown, if the key turns out to be non-unique in the result set. UseintoGroups(Name, Name)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name. Client code must assure that this field is unique in the result set.
- valueFieldName- The value field name
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
- InvalidResultException- if the key field returned two or more equal values from the result set.
 
- 
intoMap@NotNull <K,E> @NotNull Map<K,E> intoMap(Field<K> key, Class<? extends E> type) throws IllegalArgumentException, InvalidResultException, MappingException Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(Field)for lookup.An InvalidResultExceptionis thrown, if the key is non-unique in the result set. UseintoGroups(Field, Class)instead, if your key is non-unique.The resulting map is iteration order preserving. - Parameters:
- key- The key. Client code must assure that key is unique in the result set.
- type- The entity type.
- Returns:
- A Map containing the result.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<?,E> intoMap(int keyFieldIndex, Class<? extends E> type) throws IllegalArgumentException, InvalidResultException, MappingException Return aMapwith results grouped by the given key and mapped into the given entity type.An InvalidResultExceptionis thrown, if the key is non-unique in the result set. UseintoGroups(int, Class)instead, if your key is non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndex- The 0-based key field index. Client code must assure that key is unique in the result set.
- type- The entity type.
- Returns:
- A Map containing the result.
- Throws:
- IllegalArgumentException- If the argument field index is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<?,E> intoMap(String keyFieldName, Class<? extends E> type) throws IllegalArgumentException, InvalidResultException, MappingException Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(String)for lookup.An InvalidResultExceptionis thrown, if the key is non-unique in the result set. UseintoGroups(String, Class)instead, if your key is non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key. Client code must assure that key is unique in the result set.
- type- The entity type.
- Returns:
- A Map containing the result.
- Throws:
- IllegalArgumentException- If the argument field name is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<?,E> intoMap(Name keyFieldName, Class<? extends E> type) throws IllegalArgumentException, InvalidResultException, MappingException Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(Name)for lookup.An InvalidResultExceptionis thrown, if the key is non-unique in the result set. UseintoGroups(Name, Class)instead, if your key is non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key. Client code must assure that key is unique in the result set.
- type- The entity type.
- Returns:
- A Map containing the result.
- Throws:
- IllegalArgumentException- If the argument field name is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <K,E> @NotNull Map<K,E> intoMap(Field<K> key, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, InvalidResultException, MappingExceptionReturn aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(Field)for lookup.An InvalidResultExceptionis thrown, if the key is non-unique in the result set. UseintoGroups(Field, Class)instead, if your key is non-unique.The resulting map is iteration order preserving. - Parameters:
- key- The key. Client code must assure that key is unique in the result set.
- mapper- The mapper callback.
- Returns:
- A Map containing the result.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<?,E> intoMap(int keyFieldIndex, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, InvalidResultException, MappingExceptionReturn aMapwith results grouped by the given key and mapped by the given mapper.An InvalidResultExceptionis thrown, if the key is non-unique in the result set. UseintoGroups(int, Class)instead, if your key is non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndex- The 0-based key field index. Client code must assure that key is unique in the result set.
- mapper- The mapper callback.
- Returns:
- A Map containing the result.
- Throws:
- IllegalArgumentException- If the argument field index is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<?,E> intoMap(String keyFieldName, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, InvalidResultException, MappingExceptionReturn aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(String)for lookup.An InvalidResultExceptionis thrown, if the key is non-unique in the result set. UseintoGroups(String, Class)instead, if your key is non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key. Client code must assure that key is unique in the result set.
- mapper- The mapper callback.
- Returns:
- A Map containing the result.
- Throws:
- IllegalArgumentException- If the argument field name is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<?,E> intoMap(Name keyFieldName, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, InvalidResultException, MappingExceptionReturn aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(Name)for lookup.An InvalidResultExceptionis thrown, if the key is non-unique in the result set. UseintoGroups(Name, Class)instead, if your key is non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key. Client code must assure that key is unique in the result set.
- mapper- The mapper callback.
- Returns:
- A Map containing the result.
- Throws:
- IllegalArgumentException- If the argument field name is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull @NotNull Map<Record,R> intoMap(Field<?>[] keys) throws IllegalArgumentException, InvalidResultException Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(Field)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Field[])instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keys- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.fieldsRow()
- InvalidResultException- if the keys are non-unique in the result set.
 
- 
intoMap@NotNull @NotNull Map<Record,R> intoMap(int[] keyFieldIndexes) throws IllegalArgumentException, InvalidResultException Return aMapwith the given keys as a map key and the corresponding record as value.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(int[])instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndexes- The 0-based key field indexes. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field indexes is not contained in- Fields.fieldsRow()
- InvalidResultException- if the keys are non-unique in the result set.
 
- 
intoMap@NotNull @NotNull Map<Record,R> intoMap(String[] keyFieldNames) throws IllegalArgumentException, InvalidResultException Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(String)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(String[])instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
- InvalidResultException- if the keys are non-unique in the result set.
 
- 
intoMap@NotNull @NotNull Map<Record,R> intoMap(Name[] keyFieldNames) throws IllegalArgumentException, InvalidResultException Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(Name)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Name[])instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
- InvalidResultException- if the keys are non-unique in the result set.
 
- 
intoMap@NotNull @NotNull Map<Record,Record> intoMap(Field<?>[] keys, Field<?>[] values) throws IllegalArgumentException, InvalidResultException Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(Field)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Field[], Field[])instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keys- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- values- The values.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.fieldsRow()
- InvalidResultException- if the keys are non-unique in the result set.
 
- 
intoMap@NotNull @NotNull Map<Record,Record> intoMap(int[] keyFieldIndexes, int[] valueFieldIndexes) throws IllegalArgumentException, InvalidResultException Return aMapwith the given keys as a map key and the corresponding record as value.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(int[], int[])instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndexes- The 0-based key field indexes. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- valueFieldIndexes- The values.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field indexes is not contained in- Fields.fieldsRow()
- InvalidResultException- if the keys are non-unique in the result set.
 
- 
intoMap@NotNull @NotNull Map<Record,Record> intoMap(String[] keyFieldNames, String[] valueFieldNames) throws IllegalArgumentException, InvalidResultException Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(String)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(String[], String[])instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- valueFieldNames- The values.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
- InvalidResultException- if the keys are non-unique in the result set.
 
- 
intoMap@NotNull @NotNull Map<Record,Record> intoMap(Name[] keyFieldNames, Name[] valueFieldNames) throws IllegalArgumentException, InvalidResultException Return aMapwith the given keys as a map key and the corresponding record as value, usingFields.field(Name)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Name[], Name[])instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- valueFieldNames- The values.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
- InvalidResultException- if the keys are non-unique in the result set.
 
- 
intoMap@NotNull <E> @NotNull Map<List<?>,E> intoMap(Field<?>[] keys, Class<? extends E> type) throws IllegalArgumentException, InvalidResultException, MappingException Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Field)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Field[], Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keys- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- type- The entity type.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<List<?>,E> intoMap(int[] keyFieldIndexes, Class<? extends E> type) throws IllegalArgumentException, InvalidResultException, MappingException Return aMapwith results grouped by the given keys and mapped into the given entity type.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(int[], Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndexes- The 0-based key field indexes. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- type- The entity type.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field indexes is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<List<?>,E> intoMap(String[] keyFieldNames, Class<? extends E> type) throws IllegalArgumentException, InvalidResultException, MappingException Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(String)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(String[], Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- type- The entity type.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<List<?>,E> intoMap(Name[] keyFieldNames, Class<? extends E> type) throws IllegalArgumentException, InvalidResultException, MappingException Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Name)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Name[], Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- type- The entity type.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<List<?>,E> intoMap(Field<?>[] keys, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, InvalidResultException, MappingExceptionReturn aMapwith results grouped by the given keys and mapped by the given mapper, usingFields.field(Field)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Field[], Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keys- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- mapper- The mapper callback.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<List<?>,E> intoMap(int[] keyFieldIndexes, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, InvalidResultException, MappingExceptionReturn aMapwith results grouped by the given keys and mapped by the given mapper.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(int[], Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndexes- The 0-based key field indexes. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- mapper- The mapper callback.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field indexes is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<List<?>,E> intoMap(String[] keyFieldNames, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, InvalidResultException, MappingExceptionReturn aMapwith results grouped by the given keys and mapped by the given mapper, usingFields.field(String)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(String[], Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- mapper- The mapper callback.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E> @NotNull Map<List<?>,E> intoMap(Name[] keyFieldNames, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, InvalidResultException, MappingExceptionReturn aMapwith results grouped by the given keys and mapped by the given mapper, usingFields.field(Name)for lookup.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Name[], Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. Client code must assure that keys are unique in the result set. If this is- nullor an empty array, the resulting map will contain at most one entry.
- mapper- The mapper callback.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <K> @NotNull Map<K,R> intoMap(Class<? extends K> keyType) throws MappingException, InvalidResultException Return aMapwith results grouped by the given key entity.The grouping semantics is governed by the key type's Object.equals(Object)andObject.hashCode()implementation, not necessarily the values as fetched from the database.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyType- The key type. If this is- null, the resulting map will contain at most one entry.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- InvalidResultException- if the keys are non-unique in the result set.
- See Also:
 
- 
intoMap@NotNull <K,V> @NotNull Map<K,V> intoMap(Class<? extends K> keyType, Class<? extends V> valueType) throws MappingException, InvalidResultException Return aMapwith 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)andObject.hashCode()implementation, not necessarily the values as fetched from the database.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Class, Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyType- The key type. If this is- null, the resulting map will contain at most one entry.
- valueType- The value type.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- InvalidResultException- if the keys are non-unique in the result set.
- See Also:
 
- 
intoMap@NotNull <K,V> @NotNull Map<K,V> intoMap(Class<? extends K> keyType, RecordMapper<? super R, V> valueMapper) throws InvalidResultException, MappingExceptionReturn aMapwith 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)andObject.hashCode()implementation, not necessarily the values as fetched from the database.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Class, RecordMapper)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyType- The key type. If this is- null, the resulting map will contain at most one entry.
- valueMapper- The value mapper.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- InvalidResultException- if the keys are non-unique in the result set.
- See Also:
 
- 
intoMap@NotNull <K> @NotNull Map<K,R> intoMap(RecordMapper<? super R, K> keyMapper) throws InvalidResultException, MappingExceptionReturn aMapwith 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)andObject.hashCode()implementation, not necessarily the values as fetched from the database.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(RecordMapper)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyMapper- The key mapper.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- InvalidResultException- if the keys are non-unique in the result set.
- See Also:
 
- 
intoMap@NotNull <K,V> @NotNull Map<K,V> intoMap(RecordMapper<? super R, K> keyMapper, Class<V> valueType) throws InvalidResultException, MappingExceptionReturn aMapwith 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)andObject.hashCode()implementation, not necessarily the values as fetched from the database.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(RecordMapper, Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyMapper- The key mapper.
- valueType- The value type.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- InvalidResultException- if the keys are non-unique in the result set.
- See Also:
 
- 
intoMap@NotNull <K,V> @NotNull Map<K,V> intoMap(RecordMapper<? super R, K> keyMapper, RecordMapper<? super R, throws InvalidResultException, MappingExceptionV> valueMapper) Return aMapwith 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)andObject.hashCode()implementation, not necessarily the values as fetched from the database.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(RecordMapper, RecordMapper)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- keyMapper- The key mapper.
- valueMapper- The value mapper.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- InvalidResultException- if the keys are non-unique in the result set.
- See Also:
 
- 
intoMap@NotNull <S extends Record> @NotNull Map<S,R> intoMap(Table<S> table) throws IllegalArgumentException, InvalidResultException Return aMapwith the given key table as a map key and the corresponding record as value.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Table)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- table- The key table. Client code must assure that keys are unique in the result set. May not be- null.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.fieldsRow()
- InvalidResultException- if the keys are non-unique in the result set.
 
- 
intoMap@NotNull <S extends Record,T extends Record> @NotNull Map<S,T> intoMap(Table<S> keyTable, Table<T> valueTable) throws IllegalArgumentException, InvalidResultException Return aMapwith the given key table as a map key and the corresponding record as value.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Table, Table)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- 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.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.fieldsRow()
- InvalidResultException- if the keys are non-unique in the result set.
 
- 
intoMap@NotNull <E,S extends Record> @NotNull Map<S,E> intoMap(Table<S> table, Class<? extends E> type) throws IllegalArgumentException, InvalidResultException, MappingException Return aMapwith results grouped by the given key table and mapped into the given entity type.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Table, Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- table- The key table. Client code must assure that keys are unique in the result set. May not be- null.
- type- The entity type.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.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 records
- See Also:
 
- 
intoMap@NotNull <E,S extends Record> @NotNull Map<S,E> intoMap(Table<S> table, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, InvalidResultException, MappingExceptionReturn aMapwith results grouped by the given key table and mapped by the given mapper.An InvalidResultExceptionis thrown, if the keys are non-unique in the result set. UseintoGroups(Table, Class)instead, if your keys are non-unique.The resulting map is iteration order preserving. - Parameters:
- table- The key table. Client code must assure that keys are unique in the result set. May not be- null.
- mapper- The mapper callback.
- Returns:
- A Map containing the results.
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.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 records
- See Also:
 
- 
intoGroupsReturn aMapwith one of the result's columns as key and a list of corresponding records as value, usingFields.field(Field)for lookup.Unlike intoMap(Field), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Type Parameters:
- K- The key's generic field type
- Parameters:
- key- The key field.
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
intoGroupsReturn aMapwith 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.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndex- The 0-based key field index.
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If the argument field index is not contained in- Fields.fieldsRow()
 
- 
intoGroupsReturn aMapwith one of the result's columns as key and a list of corresponding records as value, usingFields.field(String)for lookup.Unlike intoMap(String), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name.
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If the argument field name is not contained in- Fields.fieldsRow()
 
- 
intoGroupsReturn aMapwith one of the result's columns as key and a list of corresponding records as value, usingFields.field(Name)for lookup.Unlike intoMap(Name), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name.
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If the argument field name is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull <K,V> @NotNull Map<K,List<V>> intoGroups(Field<K> key, Field<V> value) throws IllegalArgumentException Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(Field)for lookup.Unlike intoMap(Field, Field), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Type Parameters:
- K- The key's generic field type
- V- The value's generic field type
- Parameters:
- key- The key field.
- value- The value field
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull @NotNull Map<?,List<?>> intoGroups(int keyFieldIndex, int valueFieldIndex) throws IllegalArgumentException Return aMapwith 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.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndex- The 0-based key field index.
- valueFieldIndex- The 0-based value field index.
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If any of the argument field indexes is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull @NotNull Map<?,List<?>> intoGroups(String keyFieldName, String valueFieldName) throws IllegalArgumentException Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(String)for lookup.Unlike intoMap(String, String), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name.
- valueFieldName- The value field name.
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull @NotNull Map<?,List<?>> intoGroups(Name keyFieldName, Name valueFieldName) throws IllegalArgumentException Return aMapwith one of the result's columns as key and another one of the result's columns as value, usingFields.field(Name)for lookup.Unlike intoMap(Name, Name), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name.
- valueFieldName- The value field name.
- Returns:
- A Map containing the results
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull <K,E> @NotNull Map<K,List<E>> intoGroups(Field<K> key, Class<? extends E> type) throws IllegalArgumentException, MappingException Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(Field)for lookup.Unlike intoMap(Field, Class), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Type Parameters:
- K- The key's generic field type
- E- The generic entity type.
- Parameters:
- key- The key field.
- type- The entity type.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E> @NotNull Map<?,List<E>> intoGroups(int keyFieldIndex, Class<? extends E> type) throws IllegalArgumentException, MappingException Return aMapwith results grouped by the given key and mapped into the given entity type.Unlike intoMap(int, Class), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndex- The 0-based key field index.
- type- The entity type.
- Throws:
- IllegalArgumentException- If the argument field index is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E> @NotNull Map<?,List<E>> intoGroups(String keyFieldName, Class<? extends E> type) throws IllegalArgumentException, MappingException Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(String)for lookup.Unlike intoMap(String, Class), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name.
- type- The entity type.
- Throws:
- IllegalArgumentException- If the argument field name is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E> @NotNull Map<?,List<E>> intoGroups(Name keyFieldName, Class<? extends E> type) throws IllegalArgumentException, MappingException Return aMapwith results grouped by the given key and mapped into the given entity type, usingFields.field(Name)for lookup.Unlike intoMap(Name, Class), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name.
- type- The entity type.
- Throws:
- IllegalArgumentException- If the argument field name is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <K,E> @NotNull Map<K,List<E>> intoGroups(Field<K> key, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, MappingExceptionReturn aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(Field)for lookup.Unlike intoMap(Field, RecordMapper), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Type Parameters:
- K- The key's generic field type
- E- The generic entity type.
- Parameters:
- key- The key field.
- mapper- The mapper callback.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
 
- 
intoGroups@NotNull <E> @NotNull Map<?,List<E>> intoGroups(int keyFieldIndex, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, MappingExceptionReturn aMapwith results grouped by the given key and mapped by the given mapper.Unlike intoMap(int, RecordMapper), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndex- The 0-based key field index.
- mapper- The mapper callback.
- Throws:
- IllegalArgumentException- If the argument field index is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
 
- 
intoGroups@NotNull <E> @NotNull Map<?,List<E>> intoGroups(String keyFieldName, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, MappingExceptionReturn aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(String)for lookup.Unlike intoMap(String, RecordMapper), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name.
- mapper- The mapper callback.
- Throws:
- IllegalArgumentException- If the argument field name is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
 
- 
intoGroups@NotNull <E> @NotNull Map<?,List<E>> intoGroups(Name keyFieldName, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, MappingExceptionReturn aMapwith results grouped by the given key and mapped by the given mapper, usingFields.field(Name)for lookup.Unlike intoMap(Name, RecordMapper), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldName- The key field name.
- mapper- The mapper callback.
- Throws:
- IllegalArgumentException- If the argument field name is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
 
- 
intoGroupsReturn aMapwith the result grouped by the given keys, usingFields.field(Field)for lookup.Unlike intoMap(Field[]), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keys- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull @NotNull Map<Record,Result<R>> intoGroups(int[] keyFieldIndexes) throws IllegalArgumentException Return aMapwith the result grouped by the given keys.Unlike intoMap(int[]), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndexes- The 0-based key field indexes. If this is- nullor an empty array, the resulting map will contain at most one entry.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If any of the argument field indexes is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull @NotNull Map<Record,Result<R>> intoGroups(String[] keyFieldNames) throws IllegalArgumentException Return aMapwith the result grouped by the given keys, usingFields.field(String)for lookup.Unlike intoMap(String[]), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull @NotNull Map<Record,Result<R>> intoGroups(Name[] keyFieldNames) throws IllegalArgumentException Return aMapwith the result grouped by the given keys, usingFields.field(Name)for lookup.Unlike intoMap(Name[]), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull @NotNull Map<Record,Result<Record>> intoGroups(Field<?>[] keys, Field<?>[] values) throws IllegalArgumentException Return aMapwith the result grouped by the given keys, usingFields.field(Field)for lookup.Unlike intoMap(Field[], Field[]), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keys- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- values- The values.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull @NotNull Map<Record,Result<Record>> intoGroups(int[] keyFieldIndexes, int[] valueFieldIndexes) throws IllegalArgumentException Return aMapwith the result grouped by the given keys.Unlike intoMap(int[], int[]), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndexes- The 0-based key field indexes. If this is- nullor an empty array, the resulting map will contain at most one entry.
- valueFieldIndexes- The 0-based value field indexes.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If any of the argument field indexes is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull @NotNull Map<Record,Result<Record>> intoGroups(String[] keyFieldNames, String[] valueFieldNames) throws IllegalArgumentException Return aMapwith the result grouped by the given keys, usingFields.field(String)for lookup.Unlike intoMap(String[], String[]), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- valueFieldNames- The values.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull @NotNull Map<Record,Result<Record>> intoGroups(Name[] keyFieldNames, Name[] valueFieldNames) throws IllegalArgumentException Return aMapwith the result grouped by the given keys, usingFields.field(Name)for lookup.Unlike intoMap(Name[], Name[]), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- valueFieldNames- The values.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If any of the argument field names is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull <E> @NotNull Map<Record,List<E>> intoGroups(Field<?>[] keys, Class<? extends E> type) throws IllegalArgumentException, MappingException Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Field)for lookup.Unlike intoMap(Field[], Class), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keys- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- type- The entity type.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If the any of the argument fields is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E> @NotNull Map<Record,List<E>> intoGroups(int[] keyFieldIndexes, Class<? extends E> type) throws IllegalArgumentException, MappingException Return aMapwith 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.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndexes- The 0-based key field indexes. If this is- nullor an empty array, the resulting map will contain at most one entry.
- type- The entity type.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If the any of the argument field indexes is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E> @NotNull Map<Record,List<E>> intoGroups(String[] keyFieldNames, Class<? extends E> type) throws IllegalArgumentException, MappingException Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(String)for lookup.Unlike intoMap(String[], Class), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- type- The entity type.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If the any of the argument field names is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E> @NotNull Map<Record,List<E>> intoGroups(Name[] keyFieldNames, Class<? extends E> type) throws IllegalArgumentException, MappingException Return aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Name)for lookup.Unlike intoMap(Name[], Class), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- type- The entity type.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If the any of the argument field names is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E> @NotNull Map<Record,List<E>> intoGroups(Field<?>[] keys, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, MappingExceptionReturn aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Field)for lookup.Unlike intoMap(Field[], RecordMapper), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keys- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- mapper- The mapper callback.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If the any of the argument fields is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E> @NotNull Map<Record,List<E>> intoGroups(int[] keyFieldIndexes, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, MappingExceptionReturn aMapwith 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.The resulting map is iteration order preserving. - Parameters:
- keyFieldIndexes- The 0-based key field indexes. If this is- nullor an empty array, the resulting map will contain at most one entry.
- mapper- The mapper callback.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If the any of the argument field indexes is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E> @NotNull Map<Record,List<E>> intoGroups(String[] keyFieldNames, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, MappingExceptionReturn aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(String)for lookup.Unlike intoMap(String[], RecordMapper), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- mapper- The mapper callback.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If the any of the argument field indexes is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E> @NotNull Map<Record,List<E>> intoGroups(Name[] keyFieldNames, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, MappingExceptionReturn aMapwith results grouped by the given keys and mapped into the given entity type, usingFields.field(Name)for lookup.Unlike intoMap(Name[], RecordMapper), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyFieldNames- The keys. If this is- nullor an empty array, the resulting map will contain at most one entry.
- mapper- The mapper callback.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If the any of the argument field indexes is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <K> @NotNull Map<K,Result<R>> intoGroups(Class<? extends K> keyType) throws MappingException Return aMapwith results grouped by the given key entity.The grouping semantics is governed by the key type's Object.equals(Object)andObject.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.The resulting map is iteration order preserving. - Parameters:
- keyType- The key type. If this is- null, the resulting map will contain at most one entry.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <K,V> @NotNull Map<K,List<V>> intoGroups(Class<? extends K> keyType, Class<? extends V> valueType) throws MappingException Return aMapwith 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)andObject.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.The resulting map is iteration order preserving. - Parameters:
- keyType- The key type. If this is- null, the resulting map will contain at most one entry.
- valueType- The value type.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <K,V> @NotNull Map<K,List<V>> intoGroups(Class<? extends K> keyType, RecordMapper<? super R, V> valueMapper) throws MappingExceptionReturn aMapwith 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)andObject.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.The resulting map is iteration order preserving. - Parameters:
- keyType- The key type. If this is- null, the resulting map will contain at most one entry.
- valueMapper- The value mapper.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <K> @NotNull Map<K,Result<R>> intoGroups(RecordMapper<? super R, K> keyMapper) throws MappingExceptionReturn aMapwith 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)andObject.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.The resulting map is iteration order preserving. - Parameters:
- keyMapper- The key mapper.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <K,V> @NotNull Map<K,List<V>> intoGroups(RecordMapper<? super R, K> keyMapper, Class<V> valueType) throws MappingExceptionReturn aMapwith 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)andObject.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.The resulting map is iteration order preserving. - Parameters:
- keyMapper- The key mapper.
- valueType- The value type.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <K,V> @NotNull Map<K,List<V>> intoGroups(RecordMapper<? super R, K> keyMapper, RecordMapper<? super R, throws MappingExceptionV> valueMapper) Return aMapwith 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)andObject.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.The resulting map is iteration order preserving. - Parameters:
- keyMapper- The key mapper.
- valueMapper- The value mapper.
- Returns:
- A Map containing grouped results
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <S extends Record> @NotNull Map<S,Result<R>> intoGroups(Table<S> table) throws IllegalArgumentException Return aMapwith the result grouped by the given key table.Unlike intoMap(Table), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- table- The key table. May not be- null.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull <S extends Record,T extends Record> @NotNull Map<S,Result<T>> intoGroups(Table<S> keyTable, Table<T> valueTable) throws IllegalArgumentException Return aMapwith the result grouped by the given key table.Unlike intoMap(Table, Table), this method allows for non-unique keys in the result set.The resulting map is iteration order preserving. - Parameters:
- keyTable- The key table. May not be- null.
- valueTable- The value table. May not be- null.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If any of the argument fields is not contained in- Fields.fieldsRow()
 
- 
intoGroups@NotNull <E,S extends Record> @NotNull Map<S,List<E>> intoGroups(Table<S> table, Class<? extends E> type) throws IllegalArgumentException, MappingException Return aMapwith 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.The resulting map is iteration order preserving. - Parameters:
- table- The key table. May not be- null.
- type- The entity type.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If the any of the argument fields is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoGroups@NotNull <E,S extends Record> @NotNull Map<S,List<E>> intoGroups(Table<S> table, RecordMapper<? super R, E> mapper) throws IllegalArgumentException, MappingExceptionReturn aMapwith 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.The resulting map is iteration order preserving. - Parameters:
- table- The key table. May not be- null.
- mapper- The mapper callback.
- Returns:
- A Map containing grouped results
- Throws:
- IllegalArgumentException- If the any of the argument fields is not contained in- Fields.fieldsRow()
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoArraysConvert this result into an array of arrays.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]- Returns:
- This result as an array of arrays
- See Also:
 
- 
intoArrayReturn all values for a field index from the result.You can access data like this result.intoArray(fieldIndex)[recordIndex]- Parameters:
- fieldIndex- The 0-based field index
- Returns:
- The resulting values. This may be an array type more concrete
         than Object[], depending on whether jOOQ has any knowledge aboutfieldIndex's actual type.
- Throws:
- IllegalArgumentException- If the argument fieldIndex is not contained in- Fields.fieldsRow()
- See Also:
 
- 
intoArray<U> U @NotNull [] intoArray(int fieldIndex, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Return all values for a field index from the result.You can access data like this result.intoArray(fieldIndex)[recordIndex]- Parameters:
- fieldIndex- The 0-based field index
- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldIndex is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoArray<U> U @NotNull [] intoArray(int fieldIndex, Converter<?, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionReturn all values for a field index from the result.You can access data like this result.intoArray(fieldIndex)[recordIndex]- Parameters:
- fieldIndex- The 0-based field index
- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldIndex is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoArrayReturn all values for a field name from the result, usingFields.field(String)for lookup.You can access data like this result.intoArray(fieldName)[recordIndex]- Returns:
- The resulting values. This may be an array type more concrete
         than Object[], depending on whether jOOQ has any knowledge aboutfieldName's actual type.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- See Also:
 
- 
intoArray<U> U @NotNull [] intoArray(String fieldName, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Return all values for a field name from the result, usingFields.field(String)for lookup.You can access data like this result.intoArray(fieldName)[recordIndex]- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoArray<U> U @NotNull [] intoArray(String fieldName, Converter<?, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionReturn all values for a field name from the result, usingFields.field(String)for lookup.You can access data like this result.intoArray(fieldName)[recordIndex]- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoArrayReturn all values for a field name from the result, usingFields.field(Name)for lookup.You can access data like this result.intoArray(fieldName)[recordIndex]- Returns:
- The resulting values. This may be an array type more concrete
         than Object[], depending on whether jOOQ has any knowledge aboutfieldName's actual type.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- See Also:
 
- 
intoArray<U> U @NotNull [] intoArray(Name fieldName, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Return all values for a field name from the result, usingFields.field(Name)for lookup.You can access data like this result.intoArray(fieldName)[recordIndex]- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoArray<U> U @NotNull [] intoArray(Name fieldName, Converter<?, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionReturn all values for a field name from the result, usingFields.field(Name)for lookup.You can access data like this result.intoArray(fieldName)[recordIndex]- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoArrayReturn all values for a field from the result, usingFields.field(Field)for lookup.You can access data like this result.intoArray(field)[recordIndex]- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- See Also:
 
- 
intoArray<U> U @NotNull [] intoArray(Field<?> field, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Return all values for a field from the result, usingFields.field(Field)for lookup.You can access data like this result.intoArray(field)[recordIndex]- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoArray<T,U> U @NotNull [] intoArray(Field<T> field, Converter<? super T, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionReturn all values for a field from the result, usingFields.field(Field)for lookup.You can access data like this result.intoArray(field)[recordIndex]- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoSetMap results into a custom mapper callback.- Parameters:
- mapper- The mapper callback
- Returns:
- The custom mapped records
 
- 
intoSetReturn all values for a field index from the result.- Parameters:
- fieldIndex- The 0-based field index
- Returns:
- The resulting values. This may be an array type more concrete
         than Object[], depending on whether jOOQ has any knowledge aboutfieldIndex's actual type.
- Throws:
- IllegalArgumentException- If the argument fieldIndex is not contained in- Fields.fieldsRow()
- See Also:
 
- 
intoSet@NotNull <U> @NotNull Set<U> intoSet(int fieldIndex, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Return all values for a field index from the result.- Parameters:
- fieldIndex- The 0-based field index
- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldIndex is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoSet@NotNull <U> @NotNull Set<U> intoSet(int fieldIndex, Converter<?, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionReturn all values for a field index from the result.- Parameters:
- fieldIndex- The 0-based field index
- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldIndex is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoSetReturn all values for a field name from the result, usingFields.field(String)for lookup.- Returns:
- The resulting values. This may be an array type more concrete
         than Object[], depending on whether jOOQ has any knowledge aboutfieldName's actual type.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- See Also:
 
- 
intoSet@NotNull <U> @NotNull Set<U> intoSet(String fieldName, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Return all values for a field name from the result, usingFields.field(String)for lookup.- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoSet@NotNull <U> @NotNull Set<U> intoSet(String fieldName, Converter<?, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionReturn all values for a field name from the result, usingFields.field(String)for lookup.- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoSetReturn all values for a field name from the result, usingFields.field(Name)for lookup.- Returns:
- The resulting values. This may be an array type more concrete
         than Object[], depending on whether jOOQ has any knowledge aboutfieldName's actual type.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- See Also:
 
- 
intoSet@NotNull <U> @NotNull Set<U> intoSet(Name fieldName, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Return all values for a field name from the result, usingFields.field(Name)for lookup.- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoSet@NotNull <U> @NotNull Set<U> intoSet(Name fieldName, Converter<?, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionReturn all values for a field name from the result, usingFields.field(Name)for lookup.- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument fieldName is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoSetReturn all values for a field from the result, usingFields.field(Field)for lookup.- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- See Also:
 
- 
intoSet@NotNull <U> @NotNull Set<U> intoSet(Field<?> field, Class<? extends U> type) throws IllegalArgumentException, DataTypeException Return all values for a field from the result, usingFields.field(Field)for lookup.- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoSet@NotNull <T,U> @NotNull Set<U> intoSet(Field<T> field, Converter<? super T, ? extends U> converter) throws IllegalArgumentException, DataTypeExceptionReturn all values for a field from the result, usingFields.field(Field)for lookup.- Returns:
- The resulting values.
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
- DataTypeException- wrapping any data type conversion exception that might have occurred
- See Also:
 
- 
intoCopy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.- Parameters:
- fields- The fields of the new records
- Returns:
- The new result
 
- 
intoCopy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
intoCopy all records from this result into a new result with new records holding only a subset of the previous fields, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record3<T1,T3> T2, intoT3>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record4<T1,T3, T4> T2, intoT3, T4>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record5<T1,T3, T4, T5> T2, intoT3, T4, T5>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record6<T1,T3, T4, T5, T6> T2, intoT3, T4, T5, T6>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record7<T1,T3, T4, T5, T6, T7> T2, intoT3, T4, T5, T6, T7>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record8<T1,T3, T4, T5, T6, T7, T8> T2, intoT3, T4, T5, T6, T7, T8>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record9<T1,T3, T4, T5, T6, T7, T8, T9> T2, intoT3, T4, T5, T6, T7, T8, T9>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record10<T1,T3, T4, T5, T6, T7, T8, T9, T10> T2, intoT3, T4, T5, T6, T7, T8, T9, T10>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record11<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record12<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record13<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record14<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record15<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record16<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record17<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record18<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record19<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record20<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record21<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
into@NotNull <T1,T2, @NotNull Result<Record22<T1,T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22> T2, intoT3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21, T22>> (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, usingFields.field(Field)for lookup.- Returns:
- The new result
 
- 
intoMap resulting records onto a custom type.This is the same as calling record.into(type)on every record contained in thisResult. SeeRecord.into(Class)for more details- Type Parameters:
- E- The generic entity type.
- Parameters:
- type- The entity type.
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
intoMap resulting records onto a custom record.This is the same as calling record.into(table)on every record contained in thisResult. SeeRecord.into(Table)for more details- Type Parameters:
- Z- The generic table record type.
- Parameters:
- table- The table type.
- Throws:
- MappingException- wrapping any reflection or data type conversion exception that might have occurred while mapping records
- See Also:
 
- 
into@Deprecated(forRemoval=true, since="3.15") @NotNull <H extends RecordHandler<? super R>> H into(H handler) Deprecated, for removal: This API element is subject to removal in a future version.- 3.15.0 - [#11902] - UseIterable.forEach(Consumer)based methods, instead.Map results into a custom handler callback.- Parameters:
- handler- The handler callback
- Returns:
- Convenience result, returning the parameter handler itself
 
- 
intoResultSetGenerate an in-memory JDBCResultSetcontaining the data of thisResult.Use this as an adapter for JDBC-compliant code that expects a ResultSetto operate on, rather than a jOOQResult. The returnedResultSetallows for the following behaviour according to the JDBC specification:- ResultSet.CLOSE_CURSORS_AT_COMMIT: The cursors (i.e.- Statementobject) are no longer available
- ResultSet.CONCUR_READ_ONLY: You cannot update the database through this- ResultSet, as the underlying- Resultobject does not hold any open database refences anymore
- ResultSet.FETCH_FORWARD: The fetch direction is forward only, and cannot be changed
- ResultSet.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.- Returns:
- A wrapper JDBC ResultSet
 
- 
mapMap results into a custom mapper callback.- Parameters:
- mapper- The mapper callback
- Returns:
- The custom mapped records
 
- 
sortAsc@NotNull <T extends Comparable<? super T>> @NotNull Result<R> sortAsc(Field<T> field) throws IllegalArgumentException Sort this result by one of its contained fields, usingFields.field(Field)for lookup.nullsare sorted last by this method.- Parameters:
- field- The sort field
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortDesc@NotNull <T extends Comparable<? super T>> @NotNull Result<R> sortDesc(Field<T> field) throws IllegalArgumentException Reverse-sort this result by one of its contained fields, usingFields.field(Field)for lookup.nullsare sorted last by this method.- Parameters:
- field- The sort field
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortAscSort this result by one of its contained fields.nullsare sorted last by this method.- Parameters:
- fieldIndex- The 0-based sort field index
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortDescReverse-sort this result by one of its contained fields.nullsare sorted last by this method.- Parameters:
- fieldIndex- The 0-based sort field index
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortAscSort this result by one of its contained fields, usingFields.field(String)for lookup.nullsare sorted last by this method.- Parameters:
- fieldName- The sort field name
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortDescReverse-sort this result by one of its contained fields, usingFields.field(String)for lookup.nullsare sorted last by this method.- Parameters:
- fieldName- The sort field name
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortAscSort this result by one of its contained fields, usingFields.field(Name)for lookup.nullsare sorted last by this method.- Parameters:
- fieldName- The sort field name
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortDescReverse-sort this result by one of its contained fields, usingFields.field(Name)for lookup.nullsare sorted last by this method.- Parameters:
- fieldName- The sort field name
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortAsc@NotNull <T> @NotNull Result<R> sortAsc(Field<T> field, Comparator<? super T> comparator) throws IllegalArgumentException Sort this result by one of its contained fields using a comparator, usingFields.field(Field)for lookup.nullsorting must be handled by the suppliedcomparator.- Parameters:
- field- The sort field
- comparator- The comparator used to sort this result.
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortDesc@NotNull <T> @NotNull Result<R> sortDesc(Field<T> field, Comparator<? super T> comparator) throws IllegalArgumentException Reverse-sort this result by one of its contained fields using a comparator, usingFields.field(Field)for lookup.nullsorting must be handled by the suppliedcomparator.- Parameters:
- field- The sort field
- comparator- The comparator used to sort this result.
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortAsc@NotNull @NotNull Result<R> sortAsc(int fieldIndex, Comparator<?> comparator) throws IllegalArgumentException Sort this result by one of its contained fields using a comparator.nullsorting must be handled by the suppliedcomparator.- Parameters:
- fieldIndex- The 0-based sort field index
- comparator- The comparator used to sort this result.
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortDesc@NotNull @NotNull Result<R> sortDesc(int fieldIndex, Comparator<?> comparator) throws IllegalArgumentException Reverse-sort this result by one of its contained fields using a comparator.nullsorting must be handled by the suppliedcomparator.- Parameters:
- fieldIndex- The 0-based sort field index
- comparator- The comparator used to sort this result.
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortAsc@NotNull @NotNull Result<R> sortAsc(String fieldName, Comparator<?> comparator) throws IllegalArgumentException Sort this result by one of its contained fields using a comparator, usingFields.field(String)for lookup.nullsorting must be handled by the suppliedcomparator.- Parameters:
- fieldName- The sort field name
- comparator- The comparator used to sort this result.
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortDesc@NotNull @NotNull Result<R> sortDesc(String fieldName, Comparator<?> comparator) throws IllegalArgumentException Reverse-sort this result by one of its contained fields using a comparator, usingFields.field(String)for lookup.nullsorting must be handled by the suppliedcomparator.- Parameters:
- fieldName- The sort field name
- comparator- The comparator used to sort this result.
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortAsc@NotNull @NotNull Result<R> sortAsc(Name fieldName, Comparator<?> comparator) throws IllegalArgumentException Sort this result by one of its contained fields using a comparator, usingFields.field(Name)for lookup.nullsorting must be handled by the suppliedcomparator.- Parameters:
- fieldName- The sort field name
- comparator- The comparator used to sort this result.
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortDesc@NotNull @NotNull Result<R> sortDesc(Name fieldName, Comparator<?> comparator) throws IllegalArgumentException Reverse-sort this result by one of its contained fields using a comparator, usingFields.field(Name)for lookup.nullsorting must be handled by the suppliedcomparator.- Parameters:
- fieldName- The sort field name
- comparator- The comparator used to sort this result.
- Returns:
- The result itself
- Throws:
- IllegalArgumentException- If the argument field is not contained in- Fields.fieldsRow()
 
- 
sortAscSort this result using a comparator that can compare records.- Parameters:
- comparator- The comparator used to sort this result.
- Returns:
- The result itself
 
- 
sortDescReverse-sort this result using a comparator that can compare records.- Parameters:
- comparator- The comparator used to sort this result.
- Returns:
- The result itself
 
- 
fetchParents@NotNull @Blocking <O extends UpdatableRecord<O>> @NotNull Result<O> fetchParents(ForeignKey<R, O> key) throws DataAccessExceptionFetch parent records of this record, given a foreign key, as if fetching fromparents(ForeignKey).- Throws:
- DataAccessException- if something went wrong executing the query.
- See Also:
 
- 
fetchChildren@NotNull @Blocking <O extends TableRecord<O>> @NotNull Result<O> fetchChildren(ForeignKey<O, R> key) throws DataAccessExceptionFetch child records of this record, given a foreign key, as if fetching fromchildren(ForeignKey).- Throws:
- DataAccessException- if something went wrong executing the query.
- See Also:
 
- 
parentsGet a table expression representing the parents of all of this result's records, given a foreign key.
- 
childrenGet a table expression representing the children of all of this result's records, given a foreign key.
- 
attachAttach this result and all of its contained records to a newConfiguration.- Specified by:
- attachin interface- Attachable
- Parameters:
- configuration- A configuration or- null, if you wish to detach this- Attachablefrom its previous configuration.
 
- 
detachvoid detach()Detach this result and all of its contained records from their currentConfiguration.This is the same as calling attach(null).- Specified by:
- detachin interface- Attachable
 
 
- 
Iterable.forEach(Consumer)based methods, instead.