Top Description Constructors Methods
org.jooq.impl

public Class AutoConverter<T, U>

extends AbstractContextConverter<T, U>
Class Inheritance
Static Imports
org.jooq.ContextConverter.scoped

A base class for automatic conversion using Configuration#converterProvider().
Author
Lukas Eder

Constructor Summary

AccessConstructor and Description
public
AutoConverter(Class<T> fromType, Class<U> toType)

Method Summary

Modifier and TypeMethod and Description
public U
from(T
The database object.
t
,
ConverterContext
The context of this conversion.
ctx
)

Implements org.jooq.ContextConverter.from.

Read and convert a database object to a user object.
public T
to(U
The user object.
u
,
ConverterContext
The context of this conversion.
ctx
)

Implements org.jooq.ContextConverter.to.

Convert and write a user object to a database object.
public String
toString()

Overrides org.jooq.impl.AbstractContextConverter.toString.

Returns a string representation of the object.

Constructor Detail

AutoConverterback to summary
public AutoConverter(Class<T> fromType, Class<U> toType)

Method Detail

fromback to summary
public U from(T t, ConverterContext ctx)

Implements org.jooq.ContextConverter.from.

Doc from org.jooq.ContextConverter.from.

Read and convert a database object to a user object.

Parameters
t:T

The database object.

ctx:ConverterContext

The context of this conversion.

Returns:U

The user object.

Annotations
@Override
toback to summary
public T to(U u, ConverterContext ctx)

Implements org.jooq.ContextConverter.to.

Doc from org.jooq.ContextConverter.to.

Convert and write a user object to a database object.

Parameters
u:U

The user object.

ctx:ConverterContext

The context of this conversion.

Returns:T

The database object.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.jooq.impl.AbstractContextConverter.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override