Class ProcedureTag

    • Constructor Detail

      • ProcedureTag

        public ProcedureTag​(String id,
                            LanguageType languageType,
                            Statistical stats)
        Build a new procedure tag from XML file.
        Parameters:
        id - Name/Identify from tag.
        languageType - type of language from tag.
        stats - statistical for procedures
      • ProcedureTag

        public ProcedureTag​(String id,
                            LanguageType languageType,
                            Isolation isolation,
                            int timeout,
                            ValidateType validateType,
                            Statistical stats)
        Build a new procedure tag from XML file.
        Parameters:
        id - Name/Identify from tag.
        languageType - type of language from tag.
        isolation - Retrieves the current transaction isolation level for the query.
        timeout - Retrieves the number of seconds the repository will wait for a Query object to execute.
        validateType - validation to apply before execute SQL.
        stats - SQL statistical
    • Method Detail

      • getTagName

        public String getTagName()
        Retrieve the tag name.
        Specified by:
        getTagName in interface SqlTag
        Returns:
        name from tag procedure.
      • getSqlType

        public SqlType getSqlType()
        Command type to execute.
        Specified by:
        getSqlType in interface Sql
        Returns:
        the type of command used, DELETE.
      • isSelectable

        public boolean isSelectable()
        Description copied from interface: Sql
        Verify if command is a SELECT
        Specified by:
        isSelectable in interface Sql
        Overrides:
        isSelectable in class AbstractSqlTag
        Returns:
        true when is SELECT, false otherwise
      • isInsertable

        public boolean isInsertable()
        Description copied from interface: Sql
        Verify if command is a INSERT
        Specified by:
        isInsertable in interface Sql
        Overrides:
        isInsertable in class AbstractSqlTag
        Returns:
        true when is INSERT, false otherwise
      • isUpdateable

        public boolean isUpdateable()
        Description copied from interface: Sql
        Verify if command is a UPDATE
        Specified by:
        isUpdateable in interface Sql
        Overrides:
        isUpdateable in class AbstractSqlTag
        Returns:
        true when is UPDATE, false otherwise
      • isDeletable

        public boolean isDeletable()
        Description copied from interface: Sql
        Verify if command is a DELETE
        Specified by:
        isDeletable in interface Sql
        Overrides:
        isDeletable in class AbstractSqlTag
        Returns:
        true when is DELETE, false otherwise
      • setParams

        public void setParams​(ProcedureParameterTag[] params)
        Define parameters from stored procedure
        Parameters:
        params - the parameters
      • setSpName

        public void setSpName​(String spName)
        Define the name of stored procedure.
        Parameters:
        spName - name of stored procedure.
      • getSpName

        public String getSpName()
        Description copied from interface: Storable
        Retrieve the name from stored procedure.
        Specified by:
        getSpName in interface Storable
        Returns:
        name of stored procedure