|
Business Components | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--oracle.jbo.common.ws.WSObject
|
+--oracle.jbo.common.ws.WSRowSetIteratorBase
|
+--oracle.jbo.common.ws.WSRowSetIterator
| 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 |
| Method Summary |
| Type | Method |
|---|---|
void |
closeRowSetIterator()
Closes this row set iterator. |
RowSet |
createDetailRowSet(java.lang.String rsName,
java.lang.String linkDefName)
Creates a detail Row Set. |
RowSet[] |
getDetailRowSets()
Gets an array of detail Row Sets for which this Iterator is the master. |
java.lang.Object |
getImplObject()
|
int |
getIterMode()
Gets the current iteration mode. |
WSObject |
getParent()
|
int |
getRangeSize()
Gets the size of the row set range. |
int |
getRangeStart()
Gets the absolute index of the first row in the row set range. |
RowSet |
getRowSet()
Gets the Row Set that this Iterator belongs to. |
RowSetIterator |
getRowSetIteratorImpl()
|
java.lang.Object |
getSyncLock()
Gets the locking object for this Row Set Iterator. |
int |
scrollRange(int amount)
Moves the row set range up or down a given number of rows. |
int |
scrollRangeTo(Row row,
int index)
Scrolls the range to place a given row at a given row set index. |
void |
setImplObject(java.lang.Object o)
|
void |
setIterMode(int mode)
Sets the iteration mode for this Row Iterator. |
int |
setRangeSize(int size)
Modifies the size of the row set range. |
int |
setRangeStart(int start)
Moves the row set range. |
void |
setRowValidation(boolean flag)
Sets the validation flag on this iterator. |
| Methods inherited from class oracle.jbo.common.ws.WSObject |
getId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface oracle.jbo.RowSetIterator |
addManagementListener, getName, getNextRangeSet,
getPreviousRangeSet, isNameGenerated, removeManagementListener |
| Methods inherited from interface oracle.jbo.NavigatableRowIterator |
addListener, removeListener |
| Methods inherited from interface oracle.jbo.RowIterator |
createAndInitRow, createKey, createRow,
enumerateRowsInRange, findByEntity, findByKey, first, getAllRowsInRange, getCurrentRow,
getCurrentRowIndex, getCurrentRowSlot, getFetchedRowCount,
getRangeIndexOf, getRow, getRowAtRangeIndex,
getRowCount, getRowCountInRange, hasNext, hasPrevious,
insertRow, insertRowAtRangeIndex, isRangeAtBottom,
isRangeAtTop, last, next, previous,
removeCurrentRow, reset, setCurrentRow,
setCurrentRowAtRangeIndex |
| Method Detail |
public WSObject getParent()
getParent in class WSObjectpublic RowSetIterator getRowSetIteratorImpl()
public java.lang.Object getImplObject()
getImplObject in class WSObjectpublic void setImplObject(java.lang.Object o)
setImplObject in class WSObjectpublic RowSet getRowSet()
RowSetIteratorgetRowSet in interface RowSetIteratorgetRowSet
in class WSRowSetIteratorBaseoracle.jbo.RowSetIteratorpublic RowSet[] getDetailRowSets()
RowSetIteratorIn a master-detail relationship in an Application Module, the master in reality is a Row Set Iterator. (Though we often speak of master View Object, in reality, it is the Iterator behind the View Object which is playing the role of the master). Whenever the currency of this master Iterator moves, the detail Row Sets are re-executed to show related Rows.
Calling this method returns an array of Row Sets that are related to this Iterator as detail Row Sets.
getDetailRowSets in interface RowSetIteratorgetDetailRowSets in class WSRowSetIteratorBaseoracle.jbo.RowSetIteratorRowSet.
public RowSet createDetailRowSet(java.lang.String rsName,
java.lang.String linkDefName)
RowSetIteratorRowSetIterator.getDetailRowSets()
for explanation of detail Row Sets.
This method creates a new detail Row Set for this Iterator.
createDetailRowSet in interface RowSetIteratorcreateDetailRowSet in class WSRowSetIteratorBaseoracle.jbo.RowSetIteratorrsName - the name of the new detail Row Set.viewLinkDefName - the name of a View Link definition.
This View Link chooses the relationship in which
this Iterator is the master and the new Row Set
is the detail. It must be a fully qualified
name (including the package name).public void closeRowSetIterator()
RowSetIteratorcloseRowSetIterator
closes all detail row sets.
After that, it fires a RowSetManagementListener.iteratorClosed()
event to its RowSetManagementListener's.
Then, it deregisters this row set iterator from the owning row set, and deregisters all its listeners.
closeRowSetIterator in interface RowSetIteratorcloseRowSetIterator in class WSRowSetIteratorBasepublic java.lang.Object getSyncLock()
RowSetIteratorApplicationModule.getSyncLock()
for details.getSyncLock in interface RowSetIteratorgetSyncLock
in class WSRowSetIteratorBaseoracle.jbo.RowSetIteratorpublic int setRangeSize(int size)
RowIteratorThis method takes effect when the next set of data is fetched. For an example usage of setRangeSize, see setRangeStart.
setRangeSize in interface RowIteratorsetRangeSize
in class WSRowSetIteratorBaseoracle.jbo.RowIteratorsize - the new number of rows in the row set range. Size of
0 is treated same as 1. Size < -1 is treated same as -1.RowIterator.setRangeStart(int)public int getRangeSize()
RowIteratorgetRangeSize in interface RowIteratorgetRangeSize
in class WSRowSetIteratorBaseoracle.jbo.RowIteratorpublic int getRangeStart()
RowIteratorThe absolute index is 0-based, and is the row's index relative to the entire result set.
getRangeStart in interface RowIteratorgetRangeStart
in class WSRowSetIteratorBaseoracle.jbo.RowIteratorpublic int setRangeStart(int start)
RowIteratorNote that the index is 0-based. When you call setRangeStart(1), the range start will be positioned at the second table row.
Another behavior of setRangeStart (and also setRangeSize) is that it tries to position the range, so as to fill up the range as much as possible. For example, assume you have View Object vo focused on a table with four rows (A, B, C, D), and you execute the following code:
vo.setRangeStart(4);
vo.setRangeSize(3);
Row[] rows = vo.getAllRowsInRange();
In this case, rows contains the last 3 rows (B, C, D). When you call setRangeStart(4), it will try to position you at row 4. Since the index is 0-based, it finds that there is no row. Since the default range size is 1, it will position you to the last row (row index 3).
Then, when you call getRangeSize(3), it tries to fill up the range from the bottom. This is why you get (B, C, D).
setRangeStart in interface RowIteratorsetRangeStart
in class WSRowSetIteratorBaseoracle.jbo.RowIteratorstart - the absolute index of the new first row in the row set range.public int scrollRange(int amount)
RowIteratorscrollRange in interface RowIteratorscrollRange
in class WSRowSetIteratorBaseoracle.jbo.RowIteratoramount - the number of rows to scroll.
A negative value scrolls upward.
public int scrollRangeTo(Row row,
int index)
RowIteratorscrollRangeTo in interface RowIteratorscrollRangeTo in class WSRowSetIteratorBaseoracle.jbo.RowIteratorrow - the row.index - the row's new index.public void setRowValidation(boolean flag)
RowIteratorsetRowValidation in interface RowIteratorsetRowValidation in class WSRowSetIteratorBaseoracle.jbo.RowIteratorflag - Whether to turn row validation off or not.InvalidOperException - is thrown if this iterator is
the default iterator of a ViewObject or a RowSet.public int getIterMode()
RowIteratorgetIterMode in interface RowIteratorgetIterMode
in class WSRowSetIteratorBaseoracle.jbo.RowIteratorpublic void setIterMode(int mode)
RowIteratorsetIterMode in interface RowIteratorsetIterMode
in class WSRowSetIteratorBaseoracle.jbo.RowIteratormode - should be ITER_MODE_LAST_PAGE_PARTIAL if the iteration mode is
to be "partial-last-page", ITER_MODE_LAST_PAGE_FULL if it
is to be "full-last-page".
|
Business Components | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||