|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jbo.common.NamedObjectImpl
oracle.jbo.server.NamedObjectImpl
oracle.jbo.server.ComponentObjectImpl
oracle.jbo.server.ViewObjectImpl
oracle.jbo.server.DSViewObjectImpl
public class DSViewObjectImpl
Field Summary |
---|
Fields inherited from class oracle.jbo.common.NamedObjectImpl |
---|
mFullName, mObjName, mParent, mProperties, RES_ID_SUFFIX |
Fields inherited from interface oracle.jbo.ViewObject |
---|
IMAGE_LOC, QUERY_MODE_SCAN_DATABASE_TABLES, QUERY_MODE_SCAN_ENTITY_ROWS, QUERY_MODE_SCAN_UNPOSTED_ENTITY_ROWS, QUERY_MODE_SCAN_VIEW_ROWS, QUERY_MODE_SKIP_WHERE, QUERY_TIMEOUT_WAIT_FOREVER, XML_ELEM_PASSIVATE_TRANSIENT |
Fields inherited from interface oracle.jbo.RowSet |
---|
COPY_OPT_ALL_ROWS, COPY_OPT_LIMIT_RANGE, FORWARD_ONLY, RANGE_PAGING, RANGE_PAGING_AUTO_POST, RANGE_PAGING_INCR, SCROLLABLE |
Fields inherited from interface oracle.jbo.RowIterator |
---|
ITER_MODE_LAST_PAGE_FULL, ITER_MODE_LAST_PAGE_PARTIAL, SLOT_BEFORE_FIRST, SLOT_BEYOND_LAST, SLOT_DELETED, SLOT_VALID |
Fields inherited from interface oracle.jbo.XMLInterface |
---|
XML_IGNORE_DEPTH_COUNT, XML_OPT_ALL_ROWS, XML_OPT_ASSOC_CONSISTENT, XML_OPT_CHANGES_ONLY, XML_OPT_LIMIT_RANGE, XML_PASSIVATION_USE |
Fields inherited from interface oracle.jbo.ViewCriteriaManager |
---|
DFLT_VIEW_CRITERIA_NAME, IMPLICIT_VIEW_CRITERIA_NAME, QUICKSEARCH_VIEW_CRITERIA_NAME |
Constructor Summary | |
---|---|
DSViewObjectImpl()
|
Method Summary | |
---|---|
protected RowFilter |
buildRowFilter(java.lang.Object[] paramValues)
|
protected ViewRowImpl |
createRowFromResultSet(java.lang.Object qc,
java.sql.ResultSet resultSet)
|
protected void |
executeQueryForCollection(java.lang.Object qcObj,
java.lang.Object[] params,
int noUserParams)
Override from VO to execute the other side |
long |
getQueryHitCount(ViewRowSetImpl viewRowSet,
Row[] masterRows)
|
protected boolean |
hasNextForCollection(java.lang.Object qc)
;cefmnov* Override from VO to find if the source collection has any more rows. |
void |
rangeRefreshed(RangeRefreshEvent event)
Invoked when the range changes. |
void |
setFetchSize(short size)
Sets the number of rows that JDBC will fetch from the database during one round trip. |
int |
setRangeSize(int size)
Sets the range size for the iterator. |
int |
setRangeStart(int start)
Positions the range. |
Methods inherited from class oracle.jbo.server.NamedObjectImpl |
---|
setParent, setPropertiesMap |
Methods inherited from class oracle.jbo.common.NamedObjectImpl |
---|
allocatePropertyMap, getFullName, getName, getParent, getProperties, getPropertiesAsStrings, getPropertiesMap, getProperty, getProperty, getPropertyMap, getResourcesFromBundle, refreshProperty, removeProperty, removeProperty, requiresNamePrefixedResId, setFullName, setPropertiesMap2, setProperty, setProperty, setPropertyMap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.jbo.StructureDef |
---|
getFullName, getName |
Methods inherited from interface oracle.jbo.RowSet |
---|
getName |
Methods inherited from interface oracle.jbo.VariableManagerOwnerBase |
---|
ensureVariableManager, getMessageBundleClass, getResourceBundleDef, getVariableManager, hasVariables |
Methods inherited from interface oracle.jbo.ComponentObject |
---|
getFullName, getName |
Methods inherited from interface oracle.jbo.Properties |
---|
getProperties, getProperty, getProperty, refreshProperty |
Constructor Detail |
---|
public DSViewObjectImpl()
Method Detail |
---|
protected void executeQueryForCollection(java.lang.Object qcObj, java.lang.Object[] params, int noUserParams)
executeQueryForCollection
in class ViewObjectImpl
qcObj
- the query collection about to execute the query.params
- the bind parameters that will be applied to the query.noUserParams
- the number of user bind parameters supplied
through the setWhereClauseParam calls.protected RowFilter buildRowFilter(java.lang.Object[] paramValues)
buildRowFilter
in class ViewObjectImpl
protected ViewRowImpl createRowFromResultSet(java.lang.Object qc, java.sql.ResultSet resultSet)
createRowFromResultSet
in class ViewObjectImpl
protected boolean hasNextForCollection(java.lang.Object qc)
hasNextForCollection
in class ViewObjectImpl
public long getQueryHitCount(ViewRowSetImpl viewRowSet, Row[] masterRows)
getQueryHitCount
in class ViewObjectImpl
public void setFetchSize(short size)
ViewObjectImpl
The framework will use this value to set the JDBC row pre-fetch size. Note that the row pre-fetch size has performance ramifications. A larger fetch size is more expensive in terms of memory usage than a smaller size. The default fetch size is 1 row.
If the value of ViewObjectImpl.setFetchMode(byte)
is FETCH_ALL, then
the value of setFetchSize is disregarded.
For each View Object, this method is customizable. Deciding what value to use could be made at runtime based on how many rows are expected for a particular View Object.
setFetchSize
in class ViewObjectImpl
size
- number of rows to fetch from the database. 1 is the default.ViewObjectImpl.setFetchMode(byte)
public int setRangeSize(int size)
ViewObjectImpl
The following code example creates one View Object, uses the default iterator to display one row at a time, and creates a second iterator on the same View Object to display a range of five rows.
// Create the View Object within the context defined by the // Application Module. The View Object provides a default iterator. ViewObject vo = appMod.createViewObject(voName, voDefFile); // Create another iterator. RowSetIterator secondIter = vo.createRowSetIterator("Two"); secondIter.setRangeSize(5);
setRangeSize
in interface RowIterator
setRangeSize
in class ViewObjectImpl
size
- the new range size, or -1 if all rows are to be included.
RowIterator.setRangeStart(int)
public int setRangeStart(int start)
ViewObjectImpl
This method scrolls the range to make the row of
the specified start index the first row of the range. If successful,
RowSetListener.rangeScrolled()
is called to send
a ScrollEvent
to registered RowSetListener
.
If start
indicates a row beyond the last row, the range
will be scrolled to the end of the row set.
In the following code sample, the range starts with the fourth row. Assume that printRows is a helper function defined elsewhere.
vo.setRangeStart(4); vo.setRangeSize(3); // this command prints rows 4 - 6. printRows(vo.getAllRowsInRange(), vo.getRangeStart());
setRangeStart
in interface RowIterator
setRangeStart
in class ViewObjectImpl
start
- an absolute row index.
ScrollEvent
,
RowSetListener
public void rangeRefreshed(RangeRefreshEvent event)
RowSetListener
rangeRefreshed
in interface RowSetListener
rangeRefreshed
in class ViewObjectImpl
event
- a description of the new ranges.
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1) E10653-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |