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 databaseObject)
      Description copied from interface: Converter
      Read and convert a database object to a user object.
      Parameters:
      databaseObject - The database object.
      Returns:
      The user object.
    • to

      public XML to(U userObject)
      Description copied from interface: Converter
      Convert and write a user object to a database object.
      Parameters:
      userObject - The user object.
      Returns:
      The database object.