Class ProcedureParameter

    • Field Detail

      • direction

        protected int direction
      • maxLength

        protected int maxLength
      • precision

        protected int precision
      • type

        protected int type
    • Constructor Detail

      • ProcedureParameter

        public ProcedureParameter()
        Creates unnamed ProcedureParameter.
      • ProcedureParameter

        public ProcedureParameter​(String name)
      • ProcedureParameter

        public ProcedureParameter​(String name,
                                  int type,
                                  int direction)
    • Method Detail

      • setName

        public void setName​(String name)
      • getDirection

        public int getDirection()
        Returns the direction of this parameter. Possible values can be IN_PARAMETER, OUT_PARAMETER, IN_OUT_PARAMETER, VOID_PARAMETER.
      • getMaxLength

        public int getMaxLength()
      • getPrecision

        public int getPrecision()
      • getType

        public int getType()
      • isInParameter

        public boolean isInParameter()
        true if this is IN or INOUT parameter.
      • isOutParam

        public boolean isOutParam()
        true if this is OUT or INOUT parameter.
      • setDirection

        public void setDirection​(int direction)
        Sets the direction of this parameter. Acceptable values of direction are defined as int constants in ProcedureParam class. If an attempt is made to set an invalid attribute's direction, an IllegalArgumentException is thrown by this method.
      • setMaxLength

        public void setMaxLength​(int i)
      • setPrecision

        public void setPrecision​(int i)
      • setType

        public void setType​(int i)
      • getProcedure

        public Procedure getProcedure()
        Returns the procedure that holds this parameter.
      • setProcedure

        public void setProcedure​(Procedure procedure)
        Sets the procedure that holds this parameter.