Top Description Fields Constructors Methods
org.jooq.impl

public final Class IdentityConverter<T>

extends Object
implements ContextConverter<T, T>
Class Inheritance
All Implemented Interfaces
org.jooq.ContextConverter, org.jooq.Converter, java.io.Serializable
Imports
org.jooq.Converter, .ConverterContext, .ContextConverter

A converter that doesn't convert anything.
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private final Class<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final T
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 Class<T>
fromType()

Implements org.jooq.Converter.fromType.

The database type.
public final T
to(T
The user object.
t
,
ConverterContext
The context of this conversion.
scope
)

Implements org.jooq.ContextConverter.to.

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

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public final Class<T>
toType()

Implements org.jooq.Converter.toType.

The user type.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

typeback to summary
private final Class<T> type

Constructor Detail

IdentityConverterback to summary
public IdentityConverter(Class<T> type)

Method Detail

fromback to summary
public final T 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:T

The user object.

Annotations
@Override
fromTypeback to summary
public final Class<T> fromType()

Implements org.jooq.Converter.fromType.

Doc from org.jooq.Converter.fromType.

The database type.

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

Implements org.jooq.ContextConverter.to.

Doc from org.jooq.ContextConverter.to.

Convert and write a user object to a database object.

Parameters
t:T

The user object.

scope:ConverterContext

The context of this conversion.

Returns:T

The database object.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
toTypeback to summary
public final Class<T> toType()

Implements org.jooq.Converter.toType.

Doc from org.jooq.Converter.toType.

The user type.

Annotations
@Override