oracle.jbo.html.databeans
Class RowsetNavigator
java.lang.Object
|
+--oracle.jdeveloper.html.WebBeanImpl
|
+--oracle.jdeveloper.html.DataWebBeanImpl
|
+--oracle.jbo.html.databeans.RowsetNavigator
- public class RowsetNavigator
- extends DataWebBeanImpl
The RowsetNavigator Data Web Bean changes the current record of a View
Object's RowSet to a new record.
The RowsetNavigator class, which is aggregated by the NavigationBar
Data Web Bean, processes any navigation requests passed to the page from the
toolbar. These navigation requests are determined by the value of the NAVIGATE
parameter from the JSP's request and set the current
record of the View Object's RowSet to the appropriate record. The possible
values for NAVIGATE and their associated actions are:
- NEXT - goto the next record
- PREV - goto the previous record
- FIRST - goto the first record
- LAST - goto the last record
- NEXTSET - goto the next page
- PREVSET - goto the previous page
- DELETE - delete the current record
- COMMIT - commit the current record to the database
- ROLLBACK - discard changes to the record
JDeveloper's JSP Element wizard instantiates the RowsetNavigator
class in a jsp:useBean tag in a .jsp file. Along with the
class, the wizard also includes an ID and a scope declaration set to
request.
If you change the scope to any other value, you will have
to handle possible multithreading issues.
The definition of the
RowSet navigator provided by the wizard includes these methods:
setReleaseApplicationResources,
initialize, and render. For example,
<jsp:useBean class="oracle.jbo.html.databeans.RowsetNavigator"
id="navDetail" scope="request" >
<%
navDetail.setReleaseApplicationResources(false);
navDetail.initialize(application,session, request,response,out,
"package3_Package3Module.EmpView");
navDetail.render();
%>
</jsp:useBean>>
The value assigned to the setReleaseApplicationResources method
determines whether the Application Module is released after
RowsetNavigator Data Web Bean processes it. Typically, the value should
not be set to true unless this is the last Web Bean to be processed in
the JSP page.
Do not include more than one instance of RowsetNavigator bound to
the same View Object on a JSP page. If you do, the toolbar action will
be performed more than once. For example, if you have two instances of RowsetNavigator
bound to the same View Object, and you click the Next Record button on the
toolbar bound to the View Object, then the display will skip ahead two
records.
Method Summary |
void |
execute()
Reads the NAVIGATE parameter from the JSP's request and sets the current
record of the View Object's RowSet to the appropriate record. |
void |
render()
Renders the Web Bean's contents to the output stream. |
Methods inherited from class oracle.jdeveloper.html.DataWebBeanImpl |
clearDisplayAttributes,
getApplicationFromContext,
getApplicationName,
getDisplayAttributeDefs,
getDisplayAttributes,
getDisplayFieldRenderer,
getEditFieldRenderer,
getRowFromKey,
getRowKey,
getRowSet,
getViewObjectName,
handleCommit,
initialize,
initialize,
initialize,
internalInitialize,
isAppStateful,
releaseApplicationResources,
setDisplayAttributes,
setDisplayFieldRenderer,
setDisplayFieldRenderer,
setEditFieldRenderer,
setEditFieldRenderer,
setReleaseApplicationResources,
setRowSet,
shouldDisplayAttribute |
Methods inherited from class oracle.jdeveloper.html.WebBeanImpl |
generateScriptSrc,
getCookie,
getOut,
getRenderingContext,
getRequest,
getRequestVariable,
getUniqueName,
initBeanForJS,
initialize,
initialize,
initialize,
render,
setRequestVariable |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
RowsetNavigator
public RowsetNavigator()
execute
public void execute()
throws java.lang.Exception
- Reads the NAVIGATE parameter from the JSP's request and sets the current
record of the View Object's RowSet to the appropriate record. The possible
values for NAVIGATE are:
- NEXT - goto the next record
- PREV - goto the previous record
- FIRST - goto the first record
- LAST - goto the last record
- NEXTSET - goto the next page
- PREVSET - goto the previous page
- DELETE - delete the current record
- COMMIT - commit the current record to the database
- ROLLBACK - discard changes to the record
render
public void render()
throws java.lang.Exception
- Renders the Web Bean's contents to the output stream.
- Overrides:
- render in class WebBeanImpl