Class JavaResult

    • Constructor Detail

      • JavaResult

        public JavaResult()
        Public default constructor.
      • JavaResult

        public JavaResult​(boolean preserveOrder)
        Public default constructor.
      • JavaResult

        public JavaResult​(Map<String,​Object> resultMap)
        Public constructor.

        See setResultMap(java.util.Map).

        Parameters:
        resultMap - Result Map. This is the map onto which Java "result" objects will be set.
    • Method Detail

      • getBean

        public Object getBean​(String name)
        Get the named bean from the Java Result Map.
        Parameters:
        name - the name of the bean.
        Returns:
        The bean Object, or null if the bean is not in the bean Result Map.
        See Also:
        getResultMap()
      • getBean

        public <T> T getBean​(Class<T> beanType)
        Get the first instance of the specified bean type from this JavaResult instance.
        Parameters:
        beanType - The bean runtime class type.
        Returns:
        The bean instance, otherwise null.
      • setResultMap

        public void setResultMap​(Map<String,​Object> resultMap)
        Set the Java result map.
        Parameters:
        resultMap - The Java result map.
      • toString

        public String toString()
        XML Serialized form of the bean Map associate with the result instance.
        Overrides:
        toString in class Object
        Returns:
        XML Serialized form of the bean Map associate with the result instance.