public class ForEachTag
extends javax.servlet.jsp.tagext.BodyTagSupport
Modifier and Type | Field and Description |
---|---|
protected static Collection |
FALSE |
protected String |
groupBy |
protected boolean[] |
groupColumns |
protected ForEachTag |
groupingAncestor |
protected Set |
groupNames |
protected boolean |
hasValidated |
protected boolean |
neverEvaluatedBody |
protected List |
orderBy |
protected String |
query |
protected QueryWrapper |
queryWrapper |
protected String |
separator |
protected static String |
SEQUENCE_FIRST |
protected static String |
SEQUENCE_LAST |
protected static String |
SEQUENCE_NUMBER |
protected int |
sequenceNumber |
protected static Collection |
TRUE |
Constructor and Description |
---|
ForEachTag() |
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
Actions after some body has been evaluated.
|
int |
doEndTag()
Process the end tag.
|
int |
doStartTag()
Process the start tag for this instance.
|
protected List |
getOrderBy()
Get the names to order by in this tag (to be used by nested tags for
ordering
|
protected QueryWrapper |
getQueryWrapper() |
boolean |
needsCurrentRow()
Checks if this ForEachTag needs the current row of the query result.
|
protected void |
processGroupBy()
Finds out which columns to group by based on a space separated string.
|
void |
release()
Resets the state of the Tag.
|
void |
setGroupBy(String groupBy) |
void |
setQuery(String query) |
void |
setSeparator(String separator) |
protected void |
validateGroupByOrderBy()
Validate the groupNames against the names in orderBy.
|
doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
protected ForEachTag groupingAncestor
protected QueryWrapper queryWrapper
protected boolean[] groupColumns
protected Set groupNames
protected List orderBy
protected boolean hasValidated
protected int sequenceNumber
protected boolean neverEvaluatedBody
protected static final String SEQUENCE_FIRST
protected static final String SEQUENCE_NUMBER
protected static final String SEQUENCE_LAST
protected static final Collection FALSE
protected static final Collection TRUE
protected String query
protected String groupBy
protected String separator
public int doStartTag() throws javax.servlet.jsp.JspTagException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspTagException
protected List getOrderBy()
public boolean needsCurrentRow()
protected void processGroupBy() throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
protected void validateGroupByOrderBy() throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
public int doAfterBody() throws javax.servlet.jsp.JspTagException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspTagException
protected QueryWrapper getQueryWrapper()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.servlet.jsp.tagext.BodyTagSupport
public void setSeparator(String separator)
public void setGroupBy(String groupBy)
public void setQuery(String query)