Class ColumnTypeMapper<T,​M>

    • Constructor Detail

      • ColumnTypeMapper

        public ColumnTypeMapper()
      • ColumnTypeMapper

        protected ColumnTypeMapper​(java.lang.Class<T> sourceType,
                                   java.lang.Class<M> destinationType)
    • Method Detail

      • convert

        public abstract M convert​(T value)
        Converts an object of type T1 to an object of type T2
        Parameters:
        value - the object to convert.
        Returns:
        the converted object.
      • getSourceType

        public final java.lang.Class<T> getSourceType()
        Returns the class of the objects that this mapper will convert from.
        Returns:
        the class of the objects that this mapper will convert from.
      • getDestinationType

        public final java.lang.Class<M> getDestinationType()
        Returns the class of the objects that this mapper will convert to.
        Returns:
        the class of the objects that this mapper will convert to.