Package | Description |
---|---|
org.jooq |
The
org.jooq package contains jOOQ's public API. |
org.jooq.impl |
The
org.jooq.impl package contains jOOQ's implementation classes. |
org.jooq.tools.jdbc |
The
org.jooq.tools.jdbc package contains compatibility classes
to bridge between JDBC 4.0 and JDBC 4.1. |
Modifier and Type | Method and Description |
---|---|
RecordMapper<R,P> |
DAO.mapper()
Expose the
RecordMapper that is used internally by this
DAO to map from records of type R to POJOs of
type P . |
<R extends Record,E> |
RecordMapperProvider.provide(RecordType<R> recordType,
java.lang.Class<? extends E> type)
Provide a
RecordMapper instance. |
Modifier and Type | Method and Description |
---|---|
Configuration |
Configuration.derive(RecordMapper<?,?> newRecordMapper)
Create a derived configuration from this one, with a new record mapper.
|
<E> java.util.List<E> |
ResultQuery.fetch(RecordMapper<? super R,E> mapper)
Fetch results into a custom mapper callback.
|
<E> java.util.List<E> |
Cursor.fetch(RecordMapper<? super R,E> mapper)
Fetch results into a custom mapper callback.
|
<E> E |
ResultQuery.fetchAny(RecordMapper<? super R,E> mapper)
Execute the query and return at most one resulting record.
|
<K,V> java.util.Map<K,java.util.List<V>> |
ResultQuery.fetchGroups(java.lang.Class<? extends K> keyType,
RecordMapper<? super R,V> valueMapper)
Execute the query and return a
Map with results grouped by the
given key entity and mapped into the given entity type. |
<E> java.util.Map<Record,java.util.List<E>> |
ResultQuery.fetchGroups(Field<?>[] keys,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given keys and mapped by the given mapper. |
<K,E> java.util.Map<K,java.util.List<E>> |
ResultQuery.fetchGroups(Field<K> key,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<E> java.util.Map<Record,java.util.List<E>> |
ResultQuery.fetchGroups(int[] keyFieldIndexes,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given keys and mapped by the given mapper. |
<E> java.util.Map<?,java.util.List<E>> |
ResultQuery.fetchGroups(int keyFieldIndex,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<E> java.util.Map<Record,java.util.List<E>> |
ResultQuery.fetchGroups(Name[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given keys and mapped by the given mapper. |
<E> java.util.Map<?,java.util.List<E>> |
ResultQuery.fetchGroups(Name keyFieldName,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<K> java.util.Map<K,Result<R>> |
ResultQuery.fetchGroups(RecordMapper<? super R,K> keyMapper)
Execute the query and return a
Map with results grouped by the
given key entity and mapped into the given entity type. |
<K,V> java.util.Map<K,java.util.List<V>> |
ResultQuery.fetchGroups(RecordMapper<? super R,K> keyMapper,
java.lang.Class<V> valueType)
Execute the query and return a
Map with results grouped by the
given key entity and mapped into the given entity type. |
<K,V> java.util.Map<K,java.util.List<V>> |
ResultQuery.fetchGroups(RecordMapper<? super R,K> keyMapper,
RecordMapper<? super R,V> valueMapper)
Execute the query and return a
Map with results grouped by the
given key entity and mapped into the given entity type. |
<K,V> java.util.Map<K,java.util.List<V>> |
ResultQuery.fetchGroups(RecordMapper<? super R,K> keyMapper,
RecordMapper<? super R,V> valueMapper)
Execute the query and return a
Map with results grouped by the
given key entity and mapped into the given entity type. |
<E> java.util.Map<Record,java.util.List<E>> |
ResultQuery.fetchGroups(java.lang.String[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given keys and mapped by the given mapper. |
<E> java.util.Map<?,java.util.List<E>> |
ResultQuery.fetchGroups(java.lang.String keyFieldName,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<E,S extends Record> |
ResultQuery.fetchGroups(Table<S> table,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given table and mapped by the given mapper. |
<K,V> java.util.Map<K,V> |
ResultQuery.fetchMap(java.lang.Class<? extends K> keyType,
RecordMapper<? super R,V> valueMapper)
Execute the query and return a
Map with results grouped by the
given key entity and mapped into the given entity type. |
<E> java.util.Map<java.util.List<?>,E> |
ResultQuery.fetchMap(Field<?>[] keys,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given keys and mapped by the given mapper. |
<K,E> java.util.Map<K,E> |
ResultQuery.fetchMap(Field<K> key,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given key and mapped by the given mapper. |
<E> java.util.Map<java.util.List<?>,E> |
ResultQuery.fetchMap(int[] keyFieldIndexes,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given keys and mapped by the given mapper. |
<E> java.util.Map<?,E> |
ResultQuery.fetchMap(int keyFieldIndex,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given key and mapped by the given mapper. |
<E> java.util.Map<java.util.List<?>,E> |
ResultQuery.fetchMap(Name[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given keys and mapped by the given mapper. |
<E> java.util.Map<?,E> |
ResultQuery.fetchMap(Name keyFieldName,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given key and mapped by the given mapper. |
<K> java.util.Map<K,R> |
ResultQuery.fetchMap(RecordMapper<? super R,K> keyMapper)
Execute the query and return a
Map with results grouped by the
given key entity and mapped into the given entity type. |
<K,V> java.util.Map<K,V> |
ResultQuery.fetchMap(RecordMapper<? super R,K> keyMapper,
java.lang.Class<V> valueType)
Execute the query and return a
Map with results grouped by the
given key entity and mapped into the given entity type. |
<K,V> java.util.Map<K,V> |
ResultQuery.fetchMap(RecordMapper<? super R,K> keyMapper,
RecordMapper<? super R,V> valueMapper)
Execute the query and return a
Map with results grouped by the
given key entity and mapped into the given entity type. |
<K,V> java.util.Map<K,V> |
ResultQuery.fetchMap(RecordMapper<? super R,K> keyMapper,
RecordMapper<? super R,V> valueMapper)
Execute the query and return a
Map with results grouped by the
given key entity and mapped into the given entity type. |
<E> java.util.Map<java.util.List<?>,E> |
ResultQuery.fetchMap(java.lang.String[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given keys and mapped by the given mapper. |
<E> java.util.Map<?,E> |
ResultQuery.fetchMap(java.lang.String keyFieldName,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given key and mapped by the given mapper. |
<E,S extends Record> |
ResultQuery.fetchMap(Table<S> table,
RecordMapper<? super R,E> mapper)
Execute the query and return a
Map with results grouped by the
given table and mapped by the given mapper. |
<E> E |
Cursor.fetchNext(RecordMapper<? super R,E> mapper)
Fetch the next record into a custom mapper callback.
|
<E> java.util.Optional<E> |
Cursor.fetchNextOptional(RecordMapper<? super R,E> mapper)
Fetch the next record into a custom mapper callback.
|
<E> E |
ResultQuery.fetchOne(RecordMapper<? super R,E> mapper)
Execute the query and return at most one resulting value into a
custom mapper callback.
|
<E> E |
Cursor.fetchOne(RecordMapper<? super R,E> mapper)
Deprecated.
- 3.10 - [#6363] - Use
Cursor.fetchNext(RecordMapper) instead. |
<E> java.util.Optional<E> |
ResultQuery.fetchOptional(RecordMapper<? super R,E> mapper)
Execute the query and return at most one resulting value into a
custom mapper callback.
|
<E> java.util.Optional<E> |
Cursor.fetchOptional(RecordMapper<? super R,E> mapper)
Deprecated.
- 3.10 - [#6363] - Use
Cursor.fetchNextOptional(RecordMapper) instead. |
<E> E |
ResultQuery.fetchSingle(RecordMapper<? super R,E> mapper)
Execute the query and return exactly one resulting value into a
custom mapper callback.
|
<K,V> java.util.Map<K,java.util.List<V>> |
Result.intoGroups(java.lang.Class<? extends K> keyType,
RecordMapper<? super R,V> valueMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<E> java.util.Map<Record,java.util.List<E>> |
Result.intoGroups(Field<?>[] keys,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
<K,E> java.util.Map<K,java.util.List<E>> |
Result.intoGroups(Field<K> key,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<E> java.util.Map<Record,java.util.List<E>> |
Result.intoGroups(int[] keyFieldIndexes,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
<E> java.util.Map<?,java.util.List<E>> |
Result.intoGroups(int keyFieldIndex,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<E> java.util.Map<Record,java.util.List<E>> |
Result.intoGroups(Name[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
<E> java.util.Map<?,java.util.List<E>> |
Result.intoGroups(Name keyFieldName,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<K> java.util.Map<K,Result<R>> |
Result.intoGroups(RecordMapper<? super R,K> keyMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,java.util.List<V>> |
Result.intoGroups(RecordMapper<? super R,K> keyMapper,
java.lang.Class<V> valueType)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,java.util.List<V>> |
Result.intoGroups(RecordMapper<? super R,K> keyMapper,
RecordMapper<? super R,V> valueMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,java.util.List<V>> |
Result.intoGroups(RecordMapper<? super R,K> keyMapper,
RecordMapper<? super R,V> valueMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<E> java.util.Map<Record,java.util.List<E>> |
Result.intoGroups(java.lang.String[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped
into the given entity type. |
<E> java.util.Map<?,java.util.List<E>> |
Result.intoGroups(java.lang.String keyFieldName,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<E,S extends Record> |
Result.intoGroups(Table<S> table,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key table and
mapped into the given entity type. |
<K,V> java.util.Map<K,V> |
Result.intoMap(java.lang.Class<? extends K> keyType,
RecordMapper<? super R,V> valueMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<E> java.util.Map<java.util.List<?>,E> |
Result.intoMap(Field<?>[] keys,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped by
the given mapper. |
<K,E> java.util.Map<K,E> |
Result.intoMap(Field<K> key,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<E> java.util.Map<java.util.List<?>,E> |
Result.intoMap(int[] keyFieldIndexes,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped by
the given mapper. |
<E> java.util.Map<?,E> |
Result.intoMap(int keyFieldIndex,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<E> java.util.Map<java.util.List<?>,E> |
Result.intoMap(Name[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped by
the given mapper. |
<E> java.util.Map<?,E> |
Result.intoMap(Name keyFieldName,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<K> java.util.Map<K,R> |
Result.intoMap(RecordMapper<? super R,K> keyMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,V> |
Result.intoMap(RecordMapper<? super R,K> keyMapper,
java.lang.Class<V> valueType)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,V> |
Result.intoMap(RecordMapper<? super R,K> keyMapper,
RecordMapper<? super R,V> valueMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<K,V> java.util.Map<K,V> |
Result.intoMap(RecordMapper<? super R,K> keyMapper,
RecordMapper<? super R,V> valueMapper)
Return a
Map with results grouped by the given key entity and
mapped into the given entity type. |
<E> java.util.Map<java.util.List<?>,E> |
Result.intoMap(java.lang.String[] keyFieldNames,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given keys and mapped by
the given mapper. |
<E> java.util.Map<?,E> |
Result.intoMap(java.lang.String keyFieldName,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key and mapped by
the given mapper. |
<E,S extends Record> |
Result.intoMap(Table<S> table,
RecordMapper<? super R,E> mapper)
Return a
Map with results grouped by the given key table and
mapped by the given mapper. |
<E> java.util.List<E> |
Result.map(RecordMapper<? super R,E> mapper)
Map results into a custom mapper callback.
|
<E> E |
Record.map(RecordMapper<Record,E> mapper)
Map this record into a custom mapper callback.
|
Configuration |
Configuration.set(RecordMapper<?,?> newRecordMapper)
Change this configuration to hold a new record mapper.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultRecordMapper<R extends Record,E>
This is the default implementation for
RecordMapper types. |
Modifier and Type | Method and Description |
---|---|
RecordMapper<R,P> |
DAOImpl.mapper()
Expose the
RecordMapper that is used internally by this
DAO to map from records of type R to POJOs of
type P . |
<R extends Record,E> |
DefaultRecordMapperProvider.provide(RecordType<R> rowType,
java.lang.Class<? extends E> type) |
Modifier and Type | Method and Description |
---|---|
Configuration |
DefaultConfiguration.derive(RecordMapper<?,?> newRecordMapper) |
Configuration |
DefaultConfiguration.set(RecordMapper<?,?> newRecordMapper) |
Modifier and Type | Method and Description |
---|---|
Configuration |
MockConfiguration.derive(RecordMapper<?,?> newRecordMapper) |
Configuration |
MockConfiguration.set(RecordMapper<?,?> newRecordMapper) |
Copyright © 2018. All Rights Reserved.