Class XMLIncludeTransformer

java.lang.Object
org.apache.ibatis.builder.xml.XMLIncludeTransformer

public class XMLIncludeTransformer extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • applyIncludes

      public void applyIncludes(Node source)
    • applyIncludes

      private void applyIncludes(Node source, Properties variablesContext, boolean included)
      Recursively apply includes through all SQL fragments.
      Parameters:
      source - Include node in DOM tree
      variablesContext - Current context for static variables with values
    • findSqlFragment

      private Node findSqlFragment(String refid, Properties variables)
    • getStringAttribute

      private String getStringAttribute(Node node, String name)
    • getVariablesContext

      private Properties getVariablesContext(Node node, Properties inheritedVariablesContext)
      Read placeholders and their values from include node definition.
      Parameters:
      node - Include node instance
      inheritedVariablesContext - Current context used for replace variables in new variables values
      Returns:
      variables context from include instance (no inherited values)