Top Description Inners Fields Constructors Methods
org.jooq.impl

public Class DefaultRecordUnmapper<E, R extends org.jooq.Record>

extends Object
implements RecordUnmapper<E, R extends Record>
Class Inheritance
All Implemented Interfaces
org.jooq.RecordUnmapper
Static Imports
org.jooq.impl.Tools.getAnnotatedGetter, .Tools.getAnnotatedMembers, .Tools.getMatchingGetter, .Tools.getMatchingMembers, .Tools.hasColumnAnnotations

A default implementation for unmapping a custom type to a Record.

This default implementation currently supports unmapping the following types to a Record:

Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
private class
private class

Field Summary

Modifier and TypeField and Description
private final Configuration
private RecordUnmapper<E, R>
private final Field<?>[]
fields

Deprecated as a consequence of Field being deprecated.
private final Class<? extends AbstractRecord>
private final AbstractRow<R>
private final RecordType<R>
private final Class<? extends E>

Constructor Summary

AccessConstructor and Description
public
DefaultRecordUnmapper(Class<? extends E> type, RecordType<R> rowType, Configuration configuration)

Method Summary

Modifier and TypeMethod and Description
private final void
init()

private static final String
private final Record
private static final void
setValue(Record record, Object source, Field member, Field<?> field)

Deprecated as a consequence of Field being deprecated.
public final R
unmap(E
The source object to copy data from. This is never null.
source
)

Implements org.jooq.RecordUnmapper.unmap.

Unmap a POJO into a record.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configurationback to summary
private final Configuration configuration
delegateback to summary
private RecordUnmapper<E, R> delegate
fieldsback to summary
private final Field<?>[] fields

Deprecated

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

recordTypeback to summary
private final Class<? extends AbstractRecord> recordType
rowback to summary
private final AbstractRow<R> row
rowTypeback to summary
private final RecordType<R> rowType
typeback to summary
private final Class<? extends E> type

Constructor Detail

DefaultRecordUnmapperback to summary
public DefaultRecordUnmapper(Class<? extends E> type, RecordType<R> rowType, Configuration configuration)

Method Detail

initback to summary
private final void init()
klassback to summary
private static final String klass(Object o)
newRecordback to summary
private final Record newRecord()
setValueback to summary
private static final void setValue(Record record, Object source, Field member, Field<?> field) throws IllegalAccessException

Deprecated

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

unmapback to summary
public final R unmap(E source)

Implements org.jooq.RecordUnmapper.unmap.

Doc from org.jooq.RecordUnmapper.unmap.

Unmap a POJO into a record.

Parameters
source:E

The source object to copy data from. This is never null.

Annotations
@Override
org.jooq.impl back to summary

private final Class DefaultRecordUnmapper.ArrayUnmapper

extends Object
implements RecordUnmapper<E, R extends Record>
Class Inheritance
All Implemented Interfaces
org.jooq.RecordUnmapper

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public final R
unmap(E
The source object to copy data from. This is never null.
source
)

Implements org.jooq.RecordUnmapper.unmap.

Unmap a POJO into a record.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ArrayUnmapperback to summary
private ArrayUnmapper()

Method Detail

unmapback to summary
public final R unmap(E source)

Implements org.jooq.RecordUnmapper.unmap.

Doc from org.jooq.RecordUnmapper.unmap.

Unmap a POJO into a record.

Parameters
source:E

The source object to copy data from. This is never null.

Annotations
@SuppressWarnings:unchecked
@Override
org.jooq.impl back to summary

private final Class DefaultRecordUnmapper.IterableUnmapper

extends Object
implements RecordUnmapper<E, R extends Record>
Class Inheritance
All Implemented Interfaces
org.jooq.RecordUnmapper

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public final R
unmap(E
The source object to copy data from. This is never null.
source
)

Implements org.jooq.RecordUnmapper.unmap.

Unmap a POJO into a record.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IterableUnmapperback to summary
private IterableUnmapper()

Method Detail

unmapback to summary
public final R unmap(E source)

Implements org.jooq.RecordUnmapper.unmap.

Doc from org.jooq.RecordUnmapper.unmap.

Unmap a POJO into a record.

Parameters
source:E

The source object to copy data from. This is never null.

Annotations
@SuppressWarnings:unchecked
@Override
org.jooq.impl back to summary

private final Class DefaultRecordUnmapper.MapUnmapper

extends Object
implements RecordUnmapper<E, R extends Record>
Class Inheritance
All Implemented Interfaces
org.jooq.RecordUnmapper

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public R
unmap(E
The source object to copy data from. This is never null.
source
)

Implements org.jooq.RecordUnmapper.unmap.

Unmap a POJO into a record.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

MapUnmapperback to summary
private MapUnmapper()

Method Detail

unmapback to summary
public R unmap(E source)

Implements org.jooq.RecordUnmapper.unmap.

Doc from org.jooq.RecordUnmapper.unmap.

Unmap a POJO into a record.

Parameters
source:E

The source object to copy data from. This is never null.

Annotations
@SuppressWarnings:unchecked
@Override
org.jooq.impl back to summary

private final Class DefaultRecordUnmapper.PojoUnmapper

extends Object
implements RecordUnmapper<E, R extends Record>
Class Inheritance
All Implemented Interfaces
org.jooq.RecordUnmapper

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public R
unmap(E
The source object to copy data from. This is never null.
source
)

Implements org.jooq.RecordUnmapper.unmap.

Unmap a POJO into a record.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PojoUnmapperback to summary
private PojoUnmapper()

Method Detail

unmapback to summary
public R unmap(E source)

Implements org.jooq.RecordUnmapper.unmap.

Doc from org.jooq.RecordUnmapper.unmap.

Unmap a POJO into a record.

Parameters
source:E

The source object to copy data from. This is never null.

Annotations
@SuppressWarnings:unchecked
@Override