Class AbstractMappingStrategy<T>

    • Field Detail

      • noResultAnError

        private boolean noResultAnError
        Whether an empty result set is an error.
      • multipleResultsAnError

        private boolean multipleResultsAnError
        Whether a result set with more than one result is an error.
    • Constructor Detail

      • AbstractMappingStrategy

        public AbstractMappingStrategy()
        Constructor.
    • Method Detail

      • setResultRenamingMap

        public void setResultRenamingMap​(@Nonnull @NonnullElements
                                         Map<String,​String> map)
        Set the map of aliasing rules.
        Parameters:
        map - map of result field names to alternate field names
      • isNoResultAnError

        public boolean isNoResultAnError()
        Gets whether an empty result set is treated as an error.
        Returns:
        whether an empty result set is treated as an error
      • setNoResultAnError

        public void setNoResultAnError​(boolean isAnError)
        Sets whether an empty result set is treated as an error.
        Parameters:
        isAnError - whether an empty result set is treated as an error
      • isMultipleResultsAnError

        public boolean isMultipleResultsAnError()
        Gets whether multiple results is treated as an error.
        Returns:
        whether multiple results is treated as an error
      • setMultipleResultsAnError

        public void setMultipleResultsAnError​(boolean isAnError)
        Sets whether multiple results is treated as an error.
        Parameters:
        isAnError - whether multiple results is treated as an error