Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

oracle.jbo.html
Class DataSourceImpl

java.lang.Object
  extended byoracle.jbo.html.DataSourceImpl
All Implemented Interfaces:
DataSource
Direct Known Subclasses:
BindingContainerDataSource

public class DataSourceImpl
extends java.lang.Object
implements DataSource


Field Summary
 
Fields inherited from interface oracle.jbo.html.DataSource
DEFAULT_RANGE_SIZE
 
Constructor Summary
DataSourceImpl(javax.servlet.http.HttpServletRequest request, java.lang.String viewObjectName)
           
DataSourceImpl(java.lang.String viewObjectName)
           
 
Method Summary
 java.lang.String getApplicationId()
          Return identificator for the ApplicationModule.
 ApplicationModule getApplicationModule()
          Name of the ApplicationModule containing the ViewObject bind to this datasource.
 java.lang.String getAttributeLabel(AttributeDef aDef)
           
static java.lang.String getAttributeLabel(RowSet rs, AttributeDef aDef)
          Deprecated. Deprecated since 9.0.3. Instead, use JboUtil.getAttributeLabel(RowSet rs, AttributeDef attrDef).
 java.lang.String getAttributeLabel(java.lang.String sAttribute)
           
protected  HTMLFieldRenderer[][] getAttributeRenderers()
           
 java.lang.String getContextFieldRendererClassName(javax.servlet.jsp.PageContext page, javax.servlet.http.HttpSession session, AttributeDef attrDef, java.lang.String renderKey)
           
 java.lang.String getDefaultDisplayRendererClassName(AttributeDef attrDef)
           
 java.lang.String getDefaultEditRendererClassName(AttributeDef attrDef)
           
 java.lang.String getDefaultFieldRendererClassName(AttributeDef attrDef, java.lang.String renderKey)
           
 HTMLFieldRenderer getDisplayFieldRenderer(javax.servlet.jsp.PageContext page, javax.servlet.http.HttpSession session, Row row, AttributeDef attrDef)
          Retrieves the default field renderer for a specified attribute definition (that is, the attribute metadata).
 HTMLFieldRenderer getDisplayFieldRenderer(javax.servlet.jsp.PageContext page, Row row, AttributeDef attrDef)
           
 java.lang.String getDisplayRendererClassName(javax.servlet.jsp.PageContext page, javax.servlet.http.HttpSession session, AttributeDef attrDef)
           
 HTMLFieldRenderer getEditFieldRenderer(javax.servlet.jsp.PageContext page, javax.servlet.http.HttpSession session, Row row, AttributeDef attrDef)
          Retrieves the default field renderer for a specified attribute definition (that is, the attribute metadata).
 HTMLFieldRenderer getEditFieldRenderer(javax.servlet.jsp.PageContext page, Row row, AttributeDef attrDef)
          Convenient method with the pageContext without the session to be use by tags
 java.lang.String getEditRendererClassName(javax.servlet.jsp.PageContext page, javax.servlet.http.HttpSession session, AttributeDef attrDef)
           
 java.lang.String getFieldRendererClassName(javax.servlet.jsp.PageContext page, javax.servlet.http.HttpSession session, AttributeDef attrDef, java.lang.String renderKey)
           
 LocaleContext getLocaleContext()
          Returns the locale context
 Row getRowFromKey(java.lang.String sKey)
           
 RowSet getRowSet()
          Return the RowSet instance of the ViewObject bind to this datasource.
 java.lang.String getViewObjectName()
          Return the name of the ViewObject bind to this datasource.
 boolean isBindingContainerDataSource()
           
 boolean isQueryable()
          Determines if the view object has any queryable fields
protected  void setApplicationId(java.lang.String sId)
           
 void setApplicationModule(java.lang.String appName, ApplicationModule amInstance)
          Bind a datasource to a BC4J ApplicationModule and retrieve find the ViewObject.
 void setApplicationModule(java.lang.String appName, ApplicationModule amInstance, java.lang.String rsName, boolean createRowset)
           
protected  void setAttributeRenderers(java.lang.String sRenderersAttributeName, HTMLFieldRenderer[][] attributeRenderers)
           
 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 setFieldRenderer(int nIndex, HTMLFieldRenderer rdr, java.lang.String renderKey)
           
 void setRequest(javax.servlet.http.HttpServletRequest request)
          Pass in the request object
protected  void setRowSet(RowSet rset)
           
 boolean shouldDisplayAttribute(AttributeDef attrDef)
           
 void synchronize()
          Synchronizes client changes with remote application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceImpl

public DataSourceImpl(java.lang.String viewObjectName)

DataSourceImpl

public DataSourceImpl(javax.servlet.http.HttpServletRequest request,
                      java.lang.String viewObjectName)
Method Detail

isBindingContainerDataSource

public boolean isBindingContainerDataSource()
Specified by:
isBindingContainerDataSource in interface DataSource
Returns:
true if this data source is based ona binding container

setRequest

public void setRequest(javax.servlet.http.HttpServletRequest request)
Description copied from interface: DataSource
Pass in the request object

Specified by:
setRequest in interface DataSource

getViewObjectName

public java.lang.String getViewObjectName()
Description copied from interface: DataSource
Return the name of the ViewObject bind to this datasource.

Specified by:
getViewObjectName in interface DataSource
Returns:
ViewObject name
See Also:
ViewObject

setApplicationModule

public void setApplicationModule(java.lang.String appName,
                                 ApplicationModule amInstance)
Description copied from interface: DataSource
Bind a datasource to a BC4J ApplicationModule and retrieve find the ViewObject.

Specified by:
setApplicationModule in interface DataSource
Parameters:
appName -
amInstance -

setRowSet

protected void setRowSet(RowSet rset)

setApplicationModule

public void setApplicationModule(java.lang.String appName,
                                 ApplicationModule amInstance,
                                 java.lang.String rsName,
                                 boolean createRowset)

setAttributeRenderers

protected void setAttributeRenderers(java.lang.String sRenderersAttributeName,
                                     HTMLFieldRenderer[][] attributeRenderers)

getAttributeRenderers

protected HTMLFieldRenderer[][] getAttributeRenderers()

getApplicationId

public java.lang.String getApplicationId()
Return identificator for the ApplicationModule. For the DataWebBean, it is the name of the Application Module, for the data tags, it is the application module id

Specified by:
getApplicationId in interface DataSource
Returns:
id

setApplicationId

protected void setApplicationId(java.lang.String sId)

getApplicationModule

public ApplicationModule getApplicationModule()
Description copied from interface: DataSource
Name of the ApplicationModule containing the ViewObject bind to this datasource.

Specified by:
getApplicationModule in interface DataSource
Returns:
ApplicationModule name
See Also:
ApplicationModule

getRowSet

public RowSet getRowSet()
Description copied from interface: DataSource
Return the RowSet instance of the ViewObject bind to this datasource.

Specified by:
getRowSet in interface DataSource
Returns:
the RowSet instance
See Also:
RowSet

getLocaleContext

public LocaleContext getLocaleContext()
Description copied from interface: DataSource
Returns the locale context

Specified by:
getLocaleContext in interface DataSource

getContextFieldRendererClassName

public java.lang.String getContextFieldRendererClassName(javax.servlet.jsp.PageContext page,
                                                         javax.servlet.http.HttpSession session,
                                                         AttributeDef attrDef,
                                                         java.lang.String renderKey)
Specified by:
getContextFieldRendererClassName in interface DataSource

getFieldRendererClassName

public java.lang.String getFieldRendererClassName(javax.servlet.jsp.PageContext page,
                                                  javax.servlet.http.HttpSession session,
                                                  AttributeDef attrDef,
                                                  java.lang.String renderKey)
Specified by:
getFieldRendererClassName in interface DataSource

getEditRendererClassName

public java.lang.String getEditRendererClassName(javax.servlet.jsp.PageContext page,
                                                 javax.servlet.http.HttpSession session,
                                                 AttributeDef attrDef)
Specified by:
getEditRendererClassName in interface DataSource

getDisplayRendererClassName

public java.lang.String getDisplayRendererClassName(javax.servlet.jsp.PageContext page,
                                                    javax.servlet.http.HttpSession session,
                                                    AttributeDef attrDef)
Specified by:
getDisplayRendererClassName in interface DataSource

getDefaultFieldRendererClassName

public java.lang.String getDefaultFieldRendererClassName(AttributeDef attrDef,
                                                         java.lang.String renderKey)
Specified by:
getDefaultFieldRendererClassName in interface DataSource

getDefaultEditRendererClassName

public java.lang.String getDefaultEditRendererClassName(AttributeDef attrDef)
Specified by:
getDefaultEditRendererClassName in interface DataSource

getDefaultDisplayRendererClassName

public java.lang.String getDefaultDisplayRendererClassName(AttributeDef attrDef)
Specified by:
getDefaultDisplayRendererClassName in interface DataSource

getEditFieldRenderer

public HTMLFieldRenderer getEditFieldRenderer(javax.servlet.jsp.PageContext page,
                                              Row row,
                                              AttributeDef attrDef)
Convenient method with the pageContext without the session to be use by tags

Specified by:
getEditFieldRenderer in interface DataSource

getEditFieldRenderer

public HTMLFieldRenderer getEditFieldRenderer(javax.servlet.jsp.PageContext page,
                                              javax.servlet.http.HttpSession session,
                                              Row row,
                                              AttributeDef attrDef)
Retrieves the default field renderer for a specified attribute definition (that is, the attribute metadata).

Specified by:
getEditFieldRenderer in interface DataSource
Parameters:
attrDef - an attribute definition.
Returns:
default field renderer for the attribute definition.

getDisplayFieldRenderer

public HTMLFieldRenderer getDisplayFieldRenderer(javax.servlet.jsp.PageContext page,
                                                 Row row,
                                                 AttributeDef attrDef)
Specified by:
getDisplayFieldRenderer in interface DataSource

getDisplayFieldRenderer

public HTMLFieldRenderer getDisplayFieldRenderer(javax.servlet.jsp.PageContext page,
                                                 javax.servlet.http.HttpSession session,
                                                 Row row,
                                                 AttributeDef attrDef)
Retrieves the default field renderer for a specified attribute definition (that is, the attribute metadata).

Specified by:
getDisplayFieldRenderer in interface DataSource
Parameters:
attrDef - an attribute definition.
Returns:
default field renderer for the attribute definition.

setFieldRenderer

public void setFieldRenderer(int nIndex,
                             HTMLFieldRenderer rdr,
                             java.lang.String renderKey)

setDisplayFieldRenderer

public void setDisplayFieldRenderer(AttributeDef attrDef,
                                    HTMLFieldRenderer rdr)
Assigns an instance-level display field renderer to be used in the DataWebBean

Specified by:
setDisplayFieldRenderer in interface DataSource

setEditFieldRenderer

public void setEditFieldRenderer(AttributeDef attrDef,
                                 HTMLFieldRenderer rdr)
Assigns an instance-level edit field renderer to be used in the DataWebBean

Specified by:
setEditFieldRenderer in interface DataSource

setDisplayFieldRenderer

public void setDisplayFieldRenderer(int nIndex,
                                    HTMLFieldRenderer rdr)
Assigns an instance-level display field renderer to be used in the DataWebBean

Specified by:
setDisplayFieldRenderer in interface DataSource

setEditFieldRenderer

public void setEditFieldRenderer(int nIndex,
                                 HTMLFieldRenderer rdr)
Assigns an instance-level edit field renderer to be used in the DataWebBean

Specified by:
setEditFieldRenderer in interface DataSource

shouldDisplayAttribute

public boolean shouldDisplayAttribute(AttributeDef attrDef)
Specified by:
shouldDisplayAttribute in interface DataSource

getAttributeLabel

public java.lang.String getAttributeLabel(java.lang.String sAttribute)
Specified by:
getAttributeLabel in interface DataSource

getAttributeLabel

public java.lang.String getAttributeLabel(AttributeDef aDef)
Specified by:
getAttributeLabel in interface DataSource

getAttributeLabel

public static final java.lang.String getAttributeLabel(RowSet rs,
                                                       AttributeDef aDef)
Deprecated. Deprecated since 9.0.3. Instead, use JboUtil.getAttributeLabel(RowSet rs, AttributeDef attrDef).


getRowFromKey

public Row getRowFromKey(java.lang.String sKey)
Specified by:
getRowFromKey in interface DataSource

isQueryable

public boolean isQueryable()
Determines if the view object has any queryable fields

Specified by:
isQueryable in interface DataSource
Returns:
true is the ViewObject bind to the DataSource has any queryable fields.

synchronize

public void synchronize()
Description copied from interface: DataSource
Synchronizes client changes with remote application.

Specified by:
synchronize in interface DataSource

Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01

 

Copyright © 1997, 2004, Oracle. All rights reserved.