Class IncludeTag

  • All Implemented Interfaces:
    SqlTag, Sql

    public class IncludeTag
    extends AbstractSqlTag
    implements SqlTag
    Tag of include xml file. Include tag is used to organize xml sentences at many files separated.
    Since:
    0.0.2
    Author:
    Alisson Gomes
    • Constructor Detail

      • IncludeTag

        public IncludeTag​(String id,
                          LanguageType languageType)
        Build a new include tag from XML file.
        Parameters:
        id - Name/Identify from tag
        languageType - type of language from tag
    • Method Detail

      • getSql

        public String getSql​(Object params)
        Description copied from class: AbstractSqlTag
        Retrieve dynamic sql from a node, the dynamic parts is evaluated at time to create the sql.
        Specified by:
        getSql in interface Sql
        Overrides:
        getSql in class AbstractSqlTag
        Parameters:
        params - parameters to evaluate dynamic sql, can be a object like Author, Book, etc or a java.util.Map where yours keys is like the properties.
        Returns:
        NULL is returned, because this tag isn't SQL sentence.
      • getTagName

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

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