Class StoredProcedure

    • Constructor Detail

      • StoredProcedure

        public StoredProcedure()
        Constructs a default instance of this class.
    • Method Detail

      • getType

        public int getType()
        Return type of command.
        Specified by:
        getType in class Command
        Returns:
        TYPE_STORED_PROCEDURE
      • setProcedureName

        public void setProcedureName​(String procedureName)
        Set this stored procedure's name
        Parameters:
        procedureName - the stored procedure's name
      • getProcedureName

        public String getProcedureName()
        Get this stored procedure's name
        Returns:
        procedureName the stored procedure's name
      • getProcedureCallableName

        public String getProcedureCallableName()
      • setProcedureCallableName

        public void setProcedureCallableName​(String callableName)
      • getModelID

        public Object getModelID()
      • setModelID

        public void setModelID​(Object modelID)
      • setProcedureID

        public void setProcedureID​(Object procedureID)
      • getProcedureID

        public Object getProcedureID()
      • setParameter

        public void setParameter​(SPParameter parameter)
        Set a stored procedure's parameter
        Parameters:
        parameter - StoredProcedureParameter the parameter
        Throws:
        IllegalArgumentException - if the parameters (index and parameter) are invalid.
      • getParameters

        public Collection<SPParameter> getParameters()
        Returns a List of SPParameter objects for this stored procedure
      • getParameter

        public SPParameter getParameter​(int index)
      • getNumberOfColumns

        public int getNumberOfColumns()
      • getResultSetColumn

        public ElementSymbol getResultSetColumn​(int index)
      • acceptVisitor

        public void acceptVisitor​(LanguageVisitor visitor)
        Description copied from interface: LanguageObject
        Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.
        Parameters:
        visitor - Visitor being used
      • returnsScalarValue

        public boolean returnsScalarValue()
      • returnParameters

        public boolean returnParameters()
      • getProjectedSymbols

        public List getProjectedSymbols()
        Get the ordered list of all elements returned by this query. These elements may be ElementSymbols or ExpressionSymbols but in all cases each represents a single column.
        Specified by:
        getProjectedSymbols in class Command
        Returns:
        Ordered list of ElementSymbol
      • toString

        public String toString()
        Returns a string representation of an instance of this class.
        Overrides:
        toString in class Command
        Returns:
        String representation of object
      • clearParameters

        public void clearParameters()
      • setGroup

        public void setGroup​(GroupSymbol group)
      • displayNamedParameters

        public boolean displayNamedParameters()
        Indicates whether parameters should be displayed in traditional indexed manor, or as named parameters
        Returns:
        Returns whether to display parameters as named or not
        Since:
        4.3
      • setDisplayNamedParameters

        public void setDisplayNamedParameters​(boolean displayNamedParameters)
        Indicate whether parameters should be displayed in traditional indexed manor, or as named parameters
        Parameters:
        displayNamedParameters - whether to display parameters as named or not
        Since:
        4.3
      • isProcedureRelational

        public boolean isProcedureRelational()
      • setProcedureRelational

        public void setProcedureRelational​(boolean isProcedureRelational)
      • isCallableStatement

        public boolean isCallableStatement()
      • setCallableStatement

        public void setCallableStatement​(boolean isCallableStatement)
      • setCalledWithReturn

        public void setCalledWithReturn​(boolean calledWithReturn)
      • isCalledWithReturn

        public boolean isCalledWithReturn()
      • isPushedInQuery

        public boolean isPushedInQuery()
      • setPushedInQuery

        public void setPushedInQuery​(boolean pushedInQuery)
      • isReadOnly

        public boolean isReadOnly()
      • setSupportsExpressionParameters

        public void setSupportsExpressionParameters​(boolean supportsExpressionParameters)
      • isSupportsExpressionParameters

        public boolean isSupportsExpressionParameters()