|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport javax.servlet.jsp.tagext.BodyTagSupport org.dbforms.taglib.AbstractScriptHandlerTag org.dbforms.taglib.DbFilterConditionTag
public class DbFilterConditionTag
Holds an sql condition that has to be nested inside a DbFilterTag. A condition is specified as sql code in the body of the tag. The character ? is a placeholder for user's input substitution. Every char ? found in sql code is replaced with value evalutated from corresponding filterValue tag nested. So there must be as ? as filterValue tags.
Nested Class Summary | |
---|---|
protected static class |
DbFilterConditionTag.State
tag's state holder. |
Field Summary |
---|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
DbFilterConditionTag()
|
Method Summary | |
---|---|
protected int |
addValue(DbFilterValueTag value)
add a value to the value's list. called from nested DbFilterValueTag objs. |
int |
doAfterBody()
read filterCondition from body |
void |
doFinally()
reset tag state |
int |
doStartTag()
initialize environment and process body only if this condition is the currently selected. |
boolean |
equals(Object obj)
comparison using conditionId field |
protected String |
getConditionName()
condition prefix for request parameters |
protected static String |
getConditionName(int tableId,
int conditionId)
condition prefix for request parameter |
String |
getLabel()
DOCUMENT ME! |
protected static String |
getSqlFilter(HttpServletRequest request,
int tableId,
int conditionId)
generate condition from request. |
protected static FieldValue[] |
getSqlFilterParams(HttpServletRequest request,
int tableId,
int conditionId)
generate condition from request. |
protected DbFilterConditionTag.State |
getState()
DOCUMENT ME! |
int |
hashCode()
DOCUMENT ME! |
protected StringBuffer |
render()
render output, called from parent DbFilterCondition obj. |
void |
setLabel(String string)
DOCUMENT ME! |
protected void |
setState(javax.servlet.jsp.PageContext pg,
DbFilterTag parent,
DbFilterConditionTag.State state)
DOCUMENT ME! |
Methods inherited from class org.dbforms.taglib.AbstractScriptHandlerTag |
---|
doCatch, getAccessKey, getConfig, getOnBlur, getOnChange, getOnClick, getOnDblClick, getOnFocus, getOnKeyDown, getOnKeyPress, getOnKeyUp, getOnMouseDown, getOnMouseMove, getOnMouseOut, getOnMouseOver, getOnMouseUp, getOnSelect, getStyle, getStyleClass, getTabIndex, getTitle, prepareEventHandlers, prepareStyles, setAccessKey, setOnBlur, setOnChange, setOnClick, setOnDblClick, setOnFocus, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setOnSelect, setStyle, setStyleClass, setTabIndex, setTitle |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.TryCatchFinally |
---|
doCatch |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Constructor Detail |
---|
public DbFilterConditionTag()
Method Detail |
---|
public void setLabel(String string)
string
- public String getLabel()
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
IterationTag.doAfterBody()
public void doFinally()
doFinally
in interface javax.servlet.jsp.tagext.TryCatchFinally
doFinally
in class AbstractScriptHandlerTag
TryCatchFinally.doFinally()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
Tag.doStartTag()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
protected static String getConditionName(int tableId, int conditionId)
tableId
- conditionId
-
protected static String getSqlFilter(HttpServletRequest request, int tableId, int conditionId)
request
- tableId
- conditionId
-
protected static FieldValue[] getSqlFilterParams(HttpServletRequest request, int tableId, int conditionId)
request
- tableId
- conditionId
-
protected String getConditionName()
protected void setState(javax.servlet.jsp.PageContext pg, DbFilterTag parent, DbFilterConditionTag.State state)
pg
- DOCUMENT ME!parent
- DOCUMENT ME!state
- protected DbFilterConditionTag.State getState()
protected int addValue(DbFilterValueTag value)
value
-
protected StringBuffer render() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |