|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.taggercat.tags.AbstractExpEvalTag
com.taggercat.tags.DataSourceTag
public class DataSourceTag
This tag creates a data source instance, and adds it to the Model. If an
existing data source of the same name exists in the model, then a
reference to the existing data source is used. A instance variable is
created on the page for the data source. The name of the instance
variable is set by the instanceVar parameter. The scope of the
instance variable is from the beginning of the tag to the end of the page.
whereClause=" ORDER.STATUS = 'PAID' AND ORDER.ORDERED_BY = '@{ upper( userName() )' } "
![]() |
![]() |
| Field Summary |
|---|
| 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 | |
|---|---|
DataSourceTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Resets the tags internal state. |
int |
doStartTag()
Creates and executes the data source, if it does not already exist. |
java.lang.String |
getCacheRegion()
|
java.lang.Integer |
getPageSize()
|
java.lang.String |
getScope()
|
long |
getTimeout()
|
boolean |
isCacheable()
|
boolean |
isRefreshParent()
|
boolean |
isReloadCollection()
|
void |
setAppendQbfWhereClause(boolean appendQbfWhereClause)
Sets the AppendQbfWhereClause attribute. |
void |
setCacheable(boolean cacheable)
|
void |
setCacheRegion(java.lang.String cacheRegion)
|
void |
setClassname(java.lang.String classname)
Sets the fully qualified classname of the data source object to be used for this tag. |
void |
setEntity(java.lang.String entity)
Sets the entity attribute. |
void |
setEventListenerClassname(java.lang.String eventListenerClassname)
Sets the fully qualified classname of the event listener for this datasource. |
void |
setInstanceVar(java.lang.String instanceVar)
Sets the instanceVar attribute. |
void |
setMaxRows(java.lang.String maxRows)
Sets maxRows. |
void |
setMode(java.lang.String mode)
Sets the mode attribute. |
void |
setName(java.lang.String name)
Sets the Name attribute. |
void |
setOrderBy(java.lang.String orderBy)
Sets the orderBy attribute. |
void |
setPageSize(java.lang.Integer pageSize)
|
void |
setParentAdderMethod(java.lang.String parentAdderMethod)
|
void |
setParentCollection(java.lang.String parentCollection)
Sets the name of the parent collection if this is a child data source. |
void |
setParentDS(java.lang.String parentDS)
Sets the name of the parent data source. |
void |
setParentPropertyName(java.lang.String parentPropertyName)
|
void |
setPrefetchRowCount(java.lang.String prefetchRowCount)
Sets the prefetchRowCount attribute. |
void |
setRefreshParent(boolean refreshParent)
|
void |
setReloadCollection(boolean reloadCollection)
|
void |
setRetainSortOrder(java.lang.String retainSortOrder)
Sets the retainSortOrder attribute. |
void |
setScope(java.lang.String scope)
Sets the scope the attribute will be saved under. |
void |
setTimeout(long timeout)
|
void |
setWhereClause(java.lang.String whereClause)
Sets the whereClause attribute using SQL ( not HQL ). |
java.lang.String |
toString()
Returns a string description of the object. |
| Methods inherited from class com.taggercat.tags.AbstractExpEvalTag |
|---|
getModel, resolveProperty, setValue, setVar |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceTag()
| Method Detail |
|---|
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class AbstractExpEvalTagjavax.servlet.jsp.JspException
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class AbstractExpEvalTagjavax.servlet.jsp.JspException
public void setEntity(java.lang.String entity)
entity - The new entity valuepublic void setClassname(java.lang.String classname)
classname - The new class name valuepublic void setEventListenerClassname(java.lang.String eventListenerClassname)
eventListenerClassname - The eventListenerClassname valuepublic void setInstanceVar(java.lang.String instanceVar)
instanceVar - The new instanceVar valuepublic void setMaxRows(java.lang.String maxRows)
maxRows - the maxRows valuepublic void setMode(java.lang.String mode)
mode - the Query mode valuepublic void setName(java.lang.String name)
name - the new name valuepublic void setOrderBy(java.lang.String orderBy)
orderBy - the new orderBy valuepublic void setParentDS(java.lang.String parentDS)
parentDS - the new parentDS valuepublic void setPrefetchRowCount(java.lang.String prefetchRowCount)
prefetchRowCount - the new prefetchRowCount valuepublic void setRetainSortOrder(java.lang.String retainSortOrder)
retainSortOrder - should the sort order be retain across queriespublic void setWhereClause(java.lang.String whereClause)
whereClause=" ORDER.STATUS = 'PAID' AND ORDER.ORDERED_BY = '@{ upper( userName() ) }' "
Embedded expression should return a string result.
on specifying expressions.
whereClause - the new whereClause valuepublic void setAppendQbfWhereClause(boolean appendQbfWhereClause)
appendQbfWhereClause - the new appendQbfWhereClause valuepublic java.lang.String toString()
toString in class java.lang.Objectpublic void setParentCollection(java.lang.String parentCollection)
parentCollection - The parentCollection to set.public void setParentAdderMethod(java.lang.String parentAdderMethod)
public void setParentPropertyName(java.lang.String parentPropertyName)
public java.lang.String getScope()
public void setScope(java.lang.String scope)
AbstractExpEvalTag
setScope in class AbstractExpEvalTagscope - sets the scope attribute of the tag The scope can be one of:
public boolean isRefreshParent()
public void setRefreshParent(boolean refreshParent)
public boolean isCacheable()
public void setCacheable(boolean cacheable)
public java.lang.String getCacheRegion()
public void setCacheRegion(java.lang.String cacheRegion)
public long getTimeout()
public void setTimeout(long timeout)
timeout - the timeout to setpublic java.lang.Integer getPageSize()
public void setPageSize(java.lang.Integer pageSize)
public boolean isReloadCollection()
public void setReloadCollection(boolean reloadCollection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||