Interface SqlTag

  • All Superinterfaces:
    Sql
    All Known Implementing Classes:
    AbstractSqlTag, IncludeTag, ProcedureTag

    public interface SqlTag
    extends Sql
    Represent specifics attribute from tag to build SQL sentences from XML files.
    Since:
    0.0.2
    Author:
    Alisson Gomes
    • Method Detail

      • getName

        String getName()
        Retrieve the identifier from tag.
        Specified by:
        getName in interface Sql
        Returns:
        name from tag
      • getTagName

        String getTagName()
        Retrieve the tag name.
        Returns:
        name from tag.
      • addTag

        void addTag​(String text)
        add a set of static text from tag elements.
        Parameters:
        text - content
      • addTag

        void addTag​(ITextTag tag)
        add a new text tag.
        Parameters:
        tag - content as another tag
      • addTag

        void addTag​(List<ITextTag> tags)
        add a set of text tags (static or dynamic).
        Parameters:
        tags - content as list of text tags
      • setXpath

        void setXpath​(String xpath)
        set the XPATH expression to retrieve the query at xml file.
        Parameters:
        xpath - expression
      • setResourceName

        void setResourceName​(String resourceName)
        File name from Sql
        Parameters:
        resourceName - filename from sql as resource
      • setPackage

        void setPackage​(String name)
        name of package this sql belong
        Parameters:
        name - of package