com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements
Class SqlTagContext

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

public class SqlTagContext
extends java.lang.Object


Constructor Summary
SqlTagContext()
           
 
Method Summary
 void addParameterMapping(ParameterMapping mapping)
           
 void disableRemoveFirstPrependMarker()
          set a new internal state for top RemoveFirstPrependMarker object
 java.lang.Object getAttribute(java.lang.Object key)
           
 java.lang.String getBodyText()
           
 java.util.List getParameterMappings()
           
 java.io.PrintWriter getWriter()
           
 boolean isEmptyRemoveFirtPrepend()
           
 IterateContext peekIterateContext()
          iterate context is removed here from the stack when iterate tag is finished being processed
 boolean peekRemoveFirstPrependMarker(SqlTag sqlTag)
          examine the value of the top RemoveFirstPrependMarker object on the stack.
 IterateContext popIterateContext()
          iterate context is removed here from the stack when iterate tag is finished being processed
 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.
 void pushIterateContext(IterateContext iterateContext)
          iterate context is stored here for nested dynamic tags in the body of the iterate tag
 void pushRemoveFirstPrependMarker(SqlTag tag)
          push a new RemoveFirstPrependMarker object with the specified internal state
 void reEnableRemoveFirstPrependMarker()
           
 void setAttribute(java.lang.Object key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlTagContext

public SqlTagContext()
Method Detail

getWriter

public java.io.PrintWriter getWriter()

getBodyText

public java.lang.String getBodyText()

setAttribute

public void setAttribute(java.lang.Object key,
                         java.lang.Object value)

getAttribute

public java.lang.Object getAttribute(java.lang.Object key)

addParameterMapping

public void addParameterMapping(ParameterMapping mapping)

getParameterMappings

public java.util.List getParameterMappings()

isEmptyRemoveFirtPrepend

public boolean isEmptyRemoveFirtPrepend()

peekRemoveFirstPrependMarker

public boolean peekRemoveFirstPrependMarker(SqlTag sqlTag)
examine the value of the top RemoveFirstPrependMarker object on the stack.

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 -

pushRemoveFirstPrependMarker

public void pushRemoveFirstPrependMarker(SqlTag tag)
push a new RemoveFirstPrependMarker object with the specified internal state

Parameters:
tag -

disableRemoveFirstPrependMarker

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


reEnableRemoveFirstPrependMarker

public void reEnableRemoveFirstPrependMarker()

pushIterateContext

public void pushIterateContext(IterateContext iterateContext)
iterate context is stored here for nested dynamic tags in the body of the iterate tag

Parameters:
iterateContext -

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