java.lang.Object
com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.SqlTagContext

public class SqlTagContext extends Object
The Class SqlTagContext.
  • Constructor Details

    • SqlTagContext

      public SqlTagContext()
      Instantiates a new sql tag context.
  • Method Details

    • getWriter

      public PrintWriter getWriter()
      Gets the writer.
      Returns:
      the writer
    • getBodyText

      public String getBodyText()
      Gets the body text.
      Returns:
      the body text
    • setAttribute

      public void setAttribute(Object key, Object value)
      Sets the attribute.
      Parameters:
      key - the key
      value - the value
    • getAttribute

      public Object getAttribute(Object key)
      Gets the attribute.
      Parameters:
      key - the key
      Returns:
      the attribute
    • addParameterMapping

      public void addParameterMapping(ParameterMapping mapping)
      Adds the parameter mapping.
      Parameters:
      mapping - the mapping
    • getParameterMappings

      public List getParameterMappings()
      Gets the parameter mappings.
      Returns:
      the parameter mappings
    • isEmptyRemoveFirtPrepend

      public boolean isEmptyRemoveFirtPrepend()
      Checks if is empty remove firt prepend.
      Returns:
      true, if is empty remove firt prepend
    • peekRemoveFirstPrependMarker

      public boolean peekRemoveFirstPrependMarker(SqlTag sqlTag)
      examine the value of the top RemoveFirstPrependMarker object on the stack.
      Parameters:
      sqlTag - the sql tag
      Returns:
      was the first prepend removed
    • popRemoveFirstPrependMarker

      public void popRemoveFirstPrependMarker(SqlTag tag)
      pop the first RemoveFirstPrependMarker once the recursion is on it's way out of the recursion loop and return it's internal value.
      Parameters:
      tag - the tag
    • pushRemoveFirstPrependMarker

      public void pushRemoveFirstPrependMarker(SqlTag tag)
      push a new RemoveFirstPrependMarker object with the specified internal state.
      Parameters:
      tag - the tag
    • disableRemoveFirstPrependMarker

      public void disableRemoveFirstPrependMarker()
      set a new internal state for top RemoveFirstPrependMarker object.
    • reEnableRemoveFirstPrependMarker

      public void reEnableRemoveFirstPrependMarker()
      Re enable remove first prepend marker.
    • pushIterateContext

      public void pushIterateContext(IterateContext iterateContext)
      iterate context is stored here for nested dynamic tags in the body of the iterate tag.
      Parameters:
      iterateContext - the iterate context
    • popIterateContext

      public IterateContext popIterateContext()
      iterate context is removed here from the stack when iterate tag is finished being processed.
      Returns:
      the top element of the context stack
    • peekIterateContext

      public IterateContext peekIterateContext()
      iterate context is removed here from the stack when iterate tag is finished being processed.
      Returns:
      the top element on the context stack