Top Fields Constructors Methods
org.jooq.impl

public Class DelegatingConverter<T, U>

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

Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final ContextConverter<T, U>

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements org.jooq.ContextConverter.from.

Read and convert a database object to a user object.
public final U
from(T
The database object.
t
)

Overrides default org.jooq.ContextConverter.from.

Implements org.jooq.Converter.from.

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

Implements org.jooq.ContextConverter.to.

Convert and write a user object to a database object.
public final T
to(U
The user object.
u
)

Overrides default org.jooq.ContextConverter.to.

Implements org.jooq.Converter.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.

Field Detail

delegateback to summary
private final ContextConverter<T, U> delegate

Constructor Detail

DelegatingConverterback to summary
public DelegatingConverter(ContextConverter<T, U> delegate)

Method Detail

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

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.

scope:ConverterContext

The context of this conversion.

Returns:U

The user object.

Annotations
@Override
fromback to summary
public final U from(T t)

Overrides default org.jooq.ContextConverter.from.

Implements org.jooq.Converter.from.

Doc from org.jooq.Converter.from.

Read and convert a database object to a user object.

Parameters
t:T

The database object.

Returns:U

The user object.

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

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.

scope:ConverterContext

The context of this conversion.

Returns:T

The database object.

Annotations
@Override
toback to summary
public final T to(U u)

Overrides default org.jooq.ContextConverter.to.

Implements org.jooq.Converter.to.

Doc from org.jooq.Converter.to.

Convert and write a user object to a database object.

Parameters
u:U

The user object.

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