|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the base methods for a Data Web Bean. Implement this interface when you define a Web Bean that must access a data source.
Fields inherited from interface oracle.jdeveloper.html.WebBean |
contentFrameName, defaultCaboBase, defaultCaboImageBase,
defaultImageBase, defaultJSPBase, defaultNLSFormat,
JS_LIBRARIES, JS_NAMEID, JSButtonConstructorLib,
JSCalendarConstructorLib, JSContainerConstructorLib, JSDataConstructLib,
JSModalPageConstructorLib, JSTableConstructLib, JSToolbarConstructorLib,
JSTreeConstructLib, JSUtilitiesLib |
Method Summary |
Type | Method |
---|---|
void |
clearDisplayAttributes()
Clears the list of display attributes specified for the RowSet. |
java.lang.String |
getApplicationName()
Returns the name of the Application Module's property file. |
AttributeDef[] |
getDisplayAttributeDefs()
Returns an array of AttributeDef objects representing the set of columns to be visualized. |
java.util.Vector |
getDisplayAttributes()
Returns a Hashtable containing the names of the attributes to be displayed. |
HTMLFieldRenderer |
getDisplayFieldRenderer(Row row,
AttributeDef attrDef)
Retrieves the default field renderer for a specified attribute definition (that is, the attribute metadata). |
HTMLFieldRenderer |
getEditFieldRenderer(Row row,
AttributeDef attrDef)
Retrieves the default field renderer for a specified attribute definition (that is, the attribute metadata). |
RowSet |
getRowSet()
Returns the RowSet of the View Object used by the Web Bean object. |
java.lang.String |
getViewObjectName()
Returns the name of the View Object to which this Data Web Bean is bound. |
void |
handleCommit()
Handles commit logic properly reagrdles of stateful/stateless runtime mode. |
void |
initialize(javax.servlet.jsp.PageContext page,
java.lang.String sRowSet)
Initializes this Data Web Bean object to: Access the page object of the JSP. Connect to a database through an Application Module and access a data source represented by one of the Application Module's View Objects. |
void |
initialize(javax.servlet.ServletContext appContext,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.io.PrintWriter out,
java.lang.String sRowSet)
Initializes this Data Web Bean object to: Access the important objects of the JSP: application, session, request, response, and out. Connect to a database through an Application Module and access a data source represented by one of the Application Module's View Objects. |
boolean |
isAppStateful()
Returns true if you are running in statefule mode |
void |
setDisplayAttributes(java.lang.String sAttrs)
Sets the list of the RowSet's attributes that will be displayed. |
void |
setDisplayFieldRenderer(AttributeDef attrDef,
HTMLFieldRenderer rdr)
Assigns an instance-level display field renderer to be used in the DataWebBean |
void |
setDisplayFieldRenderer(int nIndex,
HTMLFieldRenderer rdr)
Assigns an instance-level display field renderer to be used in the DataWebBean |
void |
setEditFieldRenderer(AttributeDef attrDef,
HTMLFieldRenderer rdr)
Assigns an instance-level edit field renderer to be used in the DataWebBean |
void |
setEditFieldRenderer(int nIndex,
HTMLFieldRenderer rdr)
Assigns an instance-level edit field renderer to be used in the DataWebBean |
void |
setReleaseApplicationResources(boolean bRelease)
Enables or disables the release of application resources associated with this request. |
void |
setRowSet(RowSet aQuery)
Internal: Applications should not use this method. |
boolean |
shouldDisplayAttribute(AttributeDef attrDef)
Checks whether an attribute should be displayed by a Web Bean. |
Methods inherited from interface oracle.jdeveloper.html.WebBean |
initialize, initialize, internalInitialize, render, render |
Method Detail |
public void setRowSet(RowSet aQuery)
Allows the override of the default RowSet that was retrieved by using the initialize() function.
The setRowSet() function sets up the RowSet by clearing the field renderers if the selected row is null, otherwise, it populates the row with its field renderers.
aQuery
- the RowSet to be selected.public RowSet getRowSet()
public java.lang.String getApplicationName()
public java.lang.String getViewObjectName()
public void setReleaseApplicationResources(boolean bRelease)
bRelease
- true to release application resources associated with the
request; false to retain the resources.public void initialize(javax.servlet.ServletContext appContext, javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.io.PrintWriter out, java.lang.String sRowSet) throws java.lang.Exception
application
- the JSP page's ServletContext.session
- the JSP page's HttpSession.request
- the JSP page's HttpServletRequest.response
- the JSP page's HttpServletResponse.out
- the PrintWriter to render to.sRowSet
- a string that specifies a Business Component JSP
Application's properties file and a View Object.
Its format is properties file.View Object
where properties file is the name of the
properties file without the .properties extension
and View Object is the name of a View Object
associated with the Application Module specified in
the properties file.public void initialize(javax.servlet.jsp.PageContext page, java.lang.String sRowSet) throws java.lang.Exception
page
- the JSP page's PageContext.sRowSet
- a string that specifies a Business Component JSP
Application's properties file and a View Object.
Its format is properties file.View Object
where properties file is the name of the
properties file without the .properties extension
and View Object is the name of a View Object
associated with the Application Module specified in
the properties file.public void clearDisplayAttributes()
public void setDisplayAttributes(java.lang.String sAttrs)
Specify the attributes as a comma-delimited list. For example, to display the attributes EmpNo, Ename, and Job, enter setDisplayAttributes("EmpNo, Ename, Job").
sAttrs
- names of the attributes to be displayed.public java.util.Vector getDisplayAttributes()
public AttributeDef[] getDisplayAttributeDefs()
public boolean shouldDisplayAttribute(AttributeDef attrDef)
In either of these cases, the attribute will not be displayed.
Note, if the setDisplayAttributes() function has not been called, all attributes are displayed except Row or RowSet attributes.
public boolean isAppStateful()
public void handleCommit() throws java.lang.Exception
public HTMLFieldRenderer getEditFieldRenderer(Row row, AttributeDef attrDef)
attrDef
- an attribute definition.public HTMLFieldRenderer getDisplayFieldRenderer(Row row, AttributeDef attrDef)
attrDef
- an attribute definition.public void setDisplayFieldRenderer(AttributeDef attrDef, HTMLFieldRenderer rdr)
public void setEditFieldRenderer(AttributeDef attrDef, HTMLFieldRenderer rdr)
public void setDisplayFieldRenderer(int nIndex, HTMLFieldRenderer rdr)
public void setEditFieldRenderer(int nIndex, HTMLFieldRenderer rdr)
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |