Class MethodForConnection


  • public class MethodForConnection
    extends Object
    A MethodForConnection.
    Version:
    $Revision: $
    Author:
    Jeff Zhang
    • Constructor Detail

      • MethodForConnection

        public MethodForConnection()
    • Method Detail

      • newParam

        public MethodParam newParam​(String name,
                                    String type)
        new param
        Parameters:
        name - param name
        type - param type
        Returns:
        new param
      • setMethodName

        public void setMethodName​(String methodName)
        Set the methodName.
        Parameters:
        methodName - The methodName to set.
      • getMethodName

        public String getMethodName()
        Get the methodName.
        Returns:
        the methodName.
      • setReturnType

        public void setReturnType​(String returnType)
        Set the returnType.
        Parameters:
        returnType - The returnType to set.
      • getReturnType

        public String getReturnType()
        Get the returnType.
        Returns:
        the returnType.
      • setParams

        public void setParams​(List<MethodParam> params)
        Set the params.
        Parameters:
        params - The params to set.
      • getParams

        public List<MethodParam> getParams()
        Get the params.
        Returns:
        the params.
      • setExceptionType

        public void setExceptionType​(List<String> exceptionType)
        Set the exceptionType.
        Parameters:
        exceptionType - The exceptionType to set.
      • getExceptionType

        public List<String> getExceptionType()
        Get the exceptionType.
        Returns:
        the exceptionType.
      • toString

        public String toString()
        toString
        Overrides:
        toString in class Object
        Returns:
        methodName and all params