Class SqlTagContext
java.lang.Object
com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.SqlTagContext
The Class SqlTagContext.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameterMapping
(ParameterMapping mapping) Adds the parameter mapping.void
set a new internal state for top RemoveFirstPrependMarker object.getAttribute
(Object key) Gets the attribute.Gets the body text.Gets the parameter mappings.Gets the writer.boolean
Checks if is empty remove firt prepend.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.iterate context is removed here from the stack when iterate tag is finished being processed.void
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
push a new RemoveFirstPrependMarker object with the specified internal state.void
Re enable remove first prepend marker.void
setAttribute
(Object key, Object value) Sets the attribute.
-
Constructor Details
-
SqlTagContext
public SqlTagContext()Instantiates a new sql tag context.
-
-
Method Details
-
getWriter
Gets the writer.- Returns:
- the writer
-
getBodyText
Gets the body text.- Returns:
- the body text
-
setAttribute
Sets the attribute.- Parameters:
key
- the keyvalue
- the value
-
getAttribute
Gets the attribute.- Parameters:
key
- the key- Returns:
- the attribute
-
addParameterMapping
Adds the parameter mapping.- Parameters:
mapping
- the mapping
-
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
examine the value of the top RemoveFirstPrependMarker object on the stack.- Parameters:
sqlTag
- the sql tag- Returns:
- was the first prepend removed
-
popRemoveFirstPrependMarker
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
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
iterate context is stored here for nested dynamic tags in the body of the iterate tag.- Parameters:
iterateContext
- the iterate context
-
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
iterate context is removed here from the stack when iterate tag is finished being processed.- Returns:
- the top element on the context stack
-