Class ColumnTypeMapper<T,​M>

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        ColumnTypeMapper()  
      protected ColumnTypeMapper​(java.lang.Class<T> sourceType, java.lang.Class<M> destinationType)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract M convert​(T value)
      Converts an object of type T1 to an object of type T2
      boolean equals​(java.lang.Object obj)  
      java.lang.Class<M> getDestinationType()
      Returns the class of the objects that this mapper will convert to.
      java.lang.Class<T> getSourceType()
      Returns the class of the objects that this mapper will convert from.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColumnTypeMapper

        public ColumnTypeMapper()
      • ColumnTypeMapper

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

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • 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.