Module org.jooq
Package org.jooq.impl

Class IdentityConverter<T>

java.lang.Object
org.jooq.impl.IdentityConverter<T>
All Implemented Interfaces:
Serializable, Converter<T,T>

public final class IdentityConverter<T> extends Object implements Converter<T,T>
A converter that doesn't convert anything.
Author:
Lukas Eder
See Also:
  • Constructor Details

    • IdentityConverter

      public IdentityConverter(Class<T> type)
  • Method Details

    • from

      public final T from(T t)
      Description copied from interface: Converter
      Read and convert a database object to a user object.
      Specified by:
      from in interface Converter<T,T>
      Parameters:
      t - The database object.
      Returns:
      The user object.
    • to

      public final T to(T t)
      Description copied from interface: Converter
      Convert and write a user object to a database object.
      Specified by:
      to in interface Converter<T,T>
      Parameters:
      t - The user object.
      Returns:
      The database object.
    • fromType

      public final Class<T> fromType()
      Description copied from interface: Converter
      The database type.
      Specified by:
      fromType in interface Converter<T,T>
    • toType

      public final Class<T> toType()
      Description copied from interface: Converter
      The user type.
      Specified by:
      toType in interface Converter<T,T>
    • toString

      public String toString()
      Overrides:
      toString in class Object