|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.taglib.storage.DataBeanTag
public class DataBeanTag
DataBeanTag is the custom tag handler for the sasads:DataBean custom tag. DataBeanTag is invoked by the JSP page to evaluate the DataBean custom tag during the execution of the page. Tag handler methods are called by the JSP page implementation class at various points during the evaluation of the tag. The tag handler methods in turn call methods on the underlying DataBean to execute the methods. The required className attribute should be set to specify the fully qualified class name of the DataBean to be used by this tag handler. This class is generated by the DataBean Wizard selecting a JDBC data source.
The query statement can be set in the body of the tag.
If you need to extend or modify the functionality of the custom tag you can subclass the DataBeanTag handler class.
BaseDataBean
,
Serialized FormField Summary |
---|
Fields inherited from class com.sas.taglib.BaseBodyTag |
---|
DELIMITERS, RB_KEY |
Constructor Summary | |
---|---|
DataBeanTag()
|
Method Summary | |
---|---|
protected void |
applyAttributes()
Apply BaseDataBean properties to the underlying com.sas.storage.BaseDataBean object |
int |
doEndTag()
Process the end tag. |
int |
doStartTag()
Processes the start tag for this instance. |
java.lang.String |
getAutoCommitLevel()
Returns the level at which data will be committed. |
java.lang.String |
getClassName()
Returns the fully qualified name of the underlying DataBean class. |
java.lang.String |
getDataSource()
Returns the String representing the connection that will be used as the data source for the DataBean. |
java.sql.Connection |
getDataSourceObject()
Returns the connection object to be used as the data source for the DataBean. |
int |
getPageSize()
Returns the number of rows to scroll forward or backward when paging. |
java.lang.String |
getResultSetConcurrency()
Returns the concurrency used in generating the result set. |
java.lang.String |
getResultSetType()
Returns the type of the result set to create. |
java.lang.String |
getStatement()
Returns the String that represents the Statement object. |
java.sql.Statement |
getStatementObject()
Returns the Statement object. |
void |
setAutoCommitLevel(java.lang.String autoCommitLevel)
Sets the level at which data will be committed. |
void |
setClassName(java.lang.String className)
Sets the fully qualified name of the underlying DataBean class. |
void |
setDataSource(java.lang.String dataSource)
Sets the String representing the connection that will be used as the data source for the DataBean. |
void |
setDataSourceObject(java.sql.Connection dataSourceObject)
Sets a connection object to be used as the data source for the DataBean. |
void |
setPageSize(int pageSize)
Sets the number of rows to scroll forward or backward when paging. |
void |
setResultSetConcurrency(java.lang.String resultSetConcurrency)
Sets the desired concurrency of the result set to determine whether it can be updated. |
void |
setResultSetType(java.lang.String resultSetType)
Sets the type of the result set to determine whether it can be scrolled and whether changes to column values made to the underlying data base are ever shown in the result set. |
void |
setStatement(java.lang.String statement)
Sets the String that represents the Statement object. |
void |
setStatementObject(java.sql.Statement statementObject)
Sets the Statement object. |
Constructor Detail |
---|
public DataBeanTag()
Method Detail |
---|
public void setClassName(java.lang.String className)
className
- the fully qualified name of the underlying DataBean classgetClassName()
public java.lang.String getClassName()
setClassName(java.lang.String)
public void setPageSize(int pageSize)
pageSize
- the number of rows to scroll forward or backward when paginggetPageSize()
public int getPageSize()
setPageSize(int)
public void setResultSetType(java.lang.String resultSetType)
resultSetType
- the type of result set to create.getResultSetType()
public java.lang.String getResultSetType()
setResultSetType(java.lang.String)
public void setResultSetConcurrency(java.lang.String resultSetConcurrency)
It should be noted that the actual concurrency of the ResultSet may be different from what was passed to the
setResultSetConcurrency
method. This is because a JDBC driver may return a result set with a concurrency different
than what was requested depending on if the requested type is supported.
resultSetConcurrency
- the desired concurrency of the result set, indicating whether it can be updated.getResultSetConcurrency()
public java.lang.String getResultSetConcurrency()
setResultSetConcurrency(java.lang.String)
public void setStatement(java.lang.String statement)
statement
- the String that represents the Statement objectgetStatement()
public java.lang.String getStatement()
setStatement(java.lang.String)
public void setStatementObject(java.sql.Statement statementObject)
statementObject
- the Statement objectgetStatementObject()
public java.sql.Statement getStatementObject()
setStatementObject(java.sql.Statement)
public void setDataSource(java.lang.String dataSource)
dataSource
- the String representing the connection to be used as the data sourcegetDataSource()
public java.lang.String getDataSource()
setDataSource(java.lang.String)
public void setDataSourceObject(java.sql.Connection dataSourceObject)
dataSourceObject
- the connection object used as the data source for the DataBeangetDataSourceObject()
public java.sql.Connection getDataSourceObject()
setDataSourceObject(java.sql.Connection)
public void setAutoCommitLevel(java.lang.String autoCommitLevel)
A value of COMMITLEVEL_NONE indicates that updates to the data will not be autocomitted. This will result in the user being prompted with a confirmation dialog when updating values. Values of COMMITLEVEL_ROW and COMMITLEVEL_CELL both behave the same and will result in the data automatically being committed when data has been changed and the changed row is navigated away from.
autoCommitLevel
- the level at which data will be committedgetAutoCommitLevel()
public java.lang.String getAutoCommitLevel()
A value of COMMITLEVEL_NONE indicates that updates to the data will not be autocomitted. This will result in the user being prompted with a confirmation dialog when updating values. Values of COMMITLEVEL_ROW and COMMITLEVEL_CELL both behave the same and will result in the data automatically being committed when data has been changed and the changed row is navigated away from.
setAutoCommitLevel(java.lang.String)
protected void applyAttributes() throws javax.servlet.jsp.JspException
applyAttributes
in class BaseBodyTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class BaseBodyTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.BaseBodyTag.setInstantiate(boolean)
,
TagSupport.doStartTag()
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
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |