Class DefaultParameterMapper

  • All Implemented Interfaces:
    IParameterMapper

    public class DefaultParameterMapper
    extends java.lang.Object
    implements IParameterMapper
    Default parameter mapper that uses the same value mapper for all parameters.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IValueMapper mapper
      The value mapper.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object[] convertParameters​(java.lang.Object[] parameters, java.lang.Object context)
      Convert parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • DefaultParameterMapper

        public DefaultParameterMapper​(IValueMapper mapper)
        Create a new mapper.
    • Method Detail

      • convertParameters

        public java.lang.Object[] convertParameters​(java.lang.Object[] parameters,
                                                    java.lang.Object context)
                                             throws java.lang.Exception
        Convert parameters.
        Specified by:
        convertParameters in interface IParameterMapper
        Parameters:
        parameters - The values to convert.
        Returns:
        The converted parameters.
        Throws:
        java.lang.Exception