|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibatis.sqlmap.engine.mapping.sql.dynamic.elements.IterateContext
Constructor Summary | |
IterateContext(java.lang.Object collection,
SqlTag tag,
IterateContext parent)
|
Method Summary | |
protected java.util.Map |
addIndex(java.lang.String input,
int startIndex)
Adds index value to the first found property matching this Iteration starting at index startIndex. |
java.lang.String |
addIndexToTagProperty(java.lang.String tagProperty)
Replaces value of a tag property to match it's value with current iteration and all other iterations. |
java.lang.String |
getEndProperty()
Returns the last property of any bean specified in this IterateContext. |
int |
getIndex()
|
IterateContext |
getParent()
|
java.lang.String |
getProperty()
|
SqlTag |
getTag()
|
boolean |
hasNext()
|
boolean |
isAllowNext()
|
boolean |
isFinal()
|
boolean |
isFirst()
Deprecated. This method should not be used to decide whether or not to add prepend and open text to the generated statement. Rather, use the methods isPrependEnabled() and someSubElementsHaveContent(). |
boolean |
isLast()
|
boolean |
isPrependEnabled()
|
java.lang.Object |
next()
|
protected java.util.Map |
processTagProperty(java.lang.String tagProperty)
Replaces value of a tag property to match it's value with current iteration and all other iterations. |
void |
remove()
|
void |
setAllowNext(boolean performIterate)
|
void |
setFinal(boolean aFinal)
This attribute is used to mark whether an iterate tag is in it's final iteration. |
void |
setParent(IterateContext parent)
|
void |
setPrependEnabled(boolean isPrependEnabled)
|
void |
setProperty(java.lang.String property)
This property specifies whether to increment the iterate in the doEndFragment. |
void |
setSomeSubElementsHaveContent(boolean someSubElementsHaveContent)
|
void |
setTag(SqlTag tag)
|
boolean |
someSubElementsHaveContent()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IterateContext(java.lang.Object collection, SqlTag tag, IterateContext parent)
Method Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
public int getIndex()
public boolean isFirst()
public boolean isLast()
public java.lang.String getProperty()
public void setProperty(java.lang.String property)
property
- The property to set.public boolean isAllowNext()
public void setAllowNext(boolean performIterate)
performIterate
- The allowNext to set.public SqlTag getTag()
public void setTag(SqlTag tag)
tag
- The tag to set.public boolean isFinal()
public void setFinal(boolean aFinal)
aFinal
- public java.lang.String getEndProperty()
protected java.util.Map processTagProperty(java.lang.String tagProperty)
tagProperty
- the property of a TagHandler.
public java.lang.String addIndexToTagProperty(java.lang.String tagProperty)
tagProperty
- the property of a TagHandler.
protected java.util.Map addIndex(java.lang.String input, int startIndex)
input
- The input String.startIndex
- The index where search for property begins.
public IterateContext getParent()
public void setParent(IterateContext parent)
public boolean someSubElementsHaveContent()
public void setSomeSubElementsHaveContent(boolean someSubElementsHaveContent)
public boolean isPrependEnabled()
public void setPrependEnabled(boolean isPrependEnabled)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |