Module org.jooq
Package org.jooq.impl

Class XMLtoJAXBConverter<U>

java.lang.Object
org.jooq.impl.AbstractConverter<XML,U>
org.jooq.impl.XMLtoJAXBConverter<U>
All Implemented Interfaces:
Serializable, Converter<XML,U>

public class XMLtoJAXBConverter<U> extends AbstractConverter<XML,U>
A base class for XML to JAXB POJO conversion.
Author:
Lukas Eder
See Also:
  • Constructor Details

    • XMLtoJAXBConverter

      public XMLtoJAXBConverter(Class<U> toType)
  • Method Details

    • from

      public U from(XML t)
      Description copied from interface: Converter
      Read and convert a database object to a user object.

      Implementations that don't support this conversion are expected to override Converter.fromSupported() to indicate lack of support.

      Parameters:
      t - The database object.
      Returns:
      The user object.
    • to

      public XML to(U u)
      Description copied from interface: Converter
      Convert and write a user object to a database object.

      Implementations that don't support this conversion are expected to override Converter.toSupported() to indicate lack of support.

      Parameters:
      u - The user object.
      Returns:
      The database object.