Class StoredProcedureDefinition

    • Field Detail

      • variables

        protected Vector variables
      • statements

        protected Vector statements
      • arguments

        protected Vector arguments
      • argumentTypes

        protected Vector argumentTypes
      • IN

        protected static final Integer IN
      • OUT

        protected static final Integer OUT
      • INOUT

        protected static final Integer INOUT
    • Constructor Detail

      • StoredProcedureDefinition

        public StoredProcedureDefinition()
    • Method Detail

      • addArgument

        public void addArgument​(String argumentName,
                                Class type)
        The arguments are the names of the parameters to the procedure.
      • addArgument

        public void addArgument​(String argumentName,
                                Class type,
                                int size)
        The arguments are the names of the parameters to the procedure.
      • addArgument

        public void addArgument​(String argumentName,
                                String typeName)
        The arguments are the names of the parameters to the procedure.
      • addArgument

        public void addArgument​(FieldDefinition argument)
        The arguments are the names of the parameters to the procedure.
      • addInOutputArgument

        public void addInOutputArgument​(String argumentName,
                                        Class type)
        The output arguments are used to get values back from the proc.
      • addInOutputArgument

        public void addInOutputArgument​(FieldDefinition argument)
        The output arguments are used to get values back from the proc, such as cursors.
      • addOutputArgument

        public void addOutputArgument​(String argumentName,
                                      Class type)
        The output arguments are used to get values back from the proc.
      • addOutputArgument

        public void addOutputArgument​(String argumentName,
                                      Class type,
                                      int size)
        The output arguments are used to get values back from the proc.
      • addOutputArgument

        public void addOutputArgument​(String argumentName,
                                      String typeName)
        The output arguments are used to get values back from the proc, such as cursors.
      • addOutputArgument

        public void addOutputArgument​(FieldDefinition argument)
        The output arguments are used to get values back from the proc, such as cursors.
      • addStatement

        public void addStatement​(String statement)
        The statements are the SQL lines of code in procedure.
      • addVariable

        public void addVariable​(String variableName,
                                String typeName)
        The variables are the names of the declared variables used in the procedure.
      • addVariable

        public void addVariable​(FieldDefinition variable)
        The variables are the names of the declared variables used in the procedure.
      • getArguments

        public Vector getArguments()
        The arguments are the names of the parameters to the procedure.
      • getCreationHeader

        public String getCreationHeader()
      • getDeletionHeader

        public String getDeletionHeader()
      • getFirstArgumentIndex

        public int getFirstArgumentIndex()
      • getArgumentTypes

        public Vector getArgumentTypes()
      • getStatements

        public Vector getStatements()
        The statements are the SQL lines of code in procedure.
      • getVariables

        public Vector getVariables()
        The variables are the names of the declared variables used in the procedure.
      • printArgument

        protected void printArgument​(FieldDefinition argument,
                                     Writer writer,
                                     AbstractSession session)
                              throws IOException
        Print the argument and its type.
        Parameters:
        argument - Stored procedure argument.
        writer - Target writer where to write argument string.
        session - Current session context.
        Throws:
        IOException - When any IO problem occurs.
      • printInOutputArgument

        protected void printInOutputArgument​(FieldDefinition argument,
                                             Writer writer,
                                             AbstractSession session)
                                      throws ValidationException
        Print the argument and its type.
        Parameters:
        argument - Stored procedure argument.
        writer - Target writer where to write argument string.
        session - Current session context.
        Throws:
        ValidationException - When invalid or inconsistent data were found.
      • printOutputArgument

        protected void printOutputArgument​(FieldDefinition argument,
                                           Writer writer,
                                           AbstractSession session)
                                    throws ValidationException
        Print the argument and its type.
        Parameters:
        argument - Stored procedure argument.
        writer - Target writer where to write argument string.
        session - Current session context.
        Throws:
        ValidationException - When invalid or inconsistent data were found.
      • setArguments

        public void setArguments​(Vector arguments)
        The arguments are the field defs of the parameters names and types to the procedure.
      • setStatements

        public void setStatements​(Vector statements)
        The statements are the SQL lines of code in procedure.
      • setVariables

        public void setVariables​(Vector variables)
        The variables are the field defs of the declared variables used in the procedure.