Oracle Data-aware Controls Reference

oracle.dacf.dataset
Class MappingRowsetAccessImpl

java.lang.Object
  extended byoracle.dacf.dataset.DacObject
      extended byoracle.dacf.dataset.DataItemImpl
          extended byoracle.dacf.dataset.RowsetAccessImpl
              extended byoracle.dacf.dataset.MappingRowsetAccessImpl
All Implemented Interfaces:
oracle.dacf.dataset.AttributeProperties, java.lang.Cloneable, javax.infobus.DataItem, javax.infobus.DataItemChangeManager, DataItemValidate, javax.infobus.DataItemView, java.util.EventListener, IteratorProperties, oracle.jbo.RowNavigationListener, javax.infobus.RowsetAccess, oracle.jbo.RowSetListener, RowSetManager, javax.infobus.RowsetValidate, javax.infobus.ScrollableRowsetAccess, SearchableRowsetAccess

public class MappingRowsetAccessImpl
extends oracle.dacf.dataset.RowsetAccessImpl

Maps the actions performed through this RowsetAccess to another RowsetAccess

This allows an independent query, which can be views as a subset of a second query, to keep the second query synchronized with the first query.
Any inserts into the second query will be echoed into the underlying query provided that the row being inserted passes the RowFilter if one is defined. If not filter is defined, then the row will be automatically inserted.

Version:
SDK

Field Summary
protected  oracle.dacf.dataset.RowSetState _curState
           
protected  boolean _exceptionRunning
           
protected  java.lang.Object _exceptionRunningGate
           
protected  oracle.jbo.RowSet _rowset
           
protected  oracle.jbo.RowSetIterator _rowsetIter
           
protected  oracle.dacf.dataset.ViewArrayAccessImpl _view
           
protected static int COLUMN_ALIGNMENTS
           
protected static int COLUMN_LABELS
           
protected static int COLUMN_WIDTHS
           
protected static java.lang.String ERR_PROD_CODE
           
protected static int QUERYABLE_COLUMNS
           
protected static int RETURN_ITEMS
           
protected static int SORTING_ENABLED
           
 
Fields inherited from class oracle.dacf.dataset.DacObject
EMPTY_PREFIX, INITIAL_CAPACITY, ITEMNAME_DELIMITER
 
Constructor Summary
MappingRowsetAccessImpl()
           
MappingRowsetAccessImpl(java.lang.String name, javax.infobus.InfoBusEventListener source, ResultSetInfo rsInfo)
           
MappingRowsetAccessImpl(java.lang.String name, javax.infobus.InfoBusEventListener source, ResultSetInfo rsInfo, DacObject parent)
           
 
Method Summary
 boolean absolute(int rowNumber)
          Move to a specific row in the rowset.
protected  void addChild(DataItemImpl child)
          Adds a child to this RowsetAccessImpl.
 boolean canDelete()
           
 boolean canInsert()
           
 boolean canUpdate()
           
 boolean canUpdate(int columnIndex)
           
 boolean canUpdate(java.lang.String columnName)
           
 java.lang.Object clone()
          Implements a deep copy of the object.
 void deferredNavigated(oracle.jbo.NavigationEvent e)
           
 void deferredRangeRefreshed(oracle.jbo.RangeRefreshEvent e)
           
 void deferredRangeScrolled(oracle.jbo.ScrollEvent e)
           
 void deferredRowDeleted(oracle.jbo.DeleteEvent e)
           
 void deferredRowInserted(oracle.jbo.InsertEvent e)
           
 void deferredRowUpdated(oracle.jbo.UpdateEvent e)
           
 void deleteRow()
           
 void destroy()
          Internal: Applications should not use this method.
protected  void doPostRollback()
          Internal: Applications should not use this method.
protected  void doPreRollback()
          Internal: Applications should not use this method.
 int findRangeIndexOf(java.lang.String[] colNames, java.lang.Object[] values)
          Searches for a row, like the findRow method above.
 boolean findRow(java.lang.String[] colNames, java.lang.Object[] values)
          Finds a the first row within the result set that contains values in columns.
 boolean first()
          Move to the first row of the result set.
 void flush()
           
 int getBufferSize()
          Returns the size of the "visible" buffer.
 java.lang.Object[] getColumnAlignments()
          get all the column horizontal alignments
 int getColumnCount()
           
 java.lang.String getColumnDatatypeName(int columnIndex)
           
 int getColumnDatatypeNumber(int index)
           
 int getColumnIndex(java.lang.String columnName)
          Returns the index of the specified column
 java.lang.Object getColumnItem(int colNum)
           
 java.lang.Object getColumnItem(java.lang.String colName)
           
 java.lang.Object[] getColumnLabels()
          get all the column labels
 java.lang.String getColumnName(int colIndex)
          Gets the name of the column at postion n.
 java.lang.Object[] getColumnWidths()
          get all the column widths
 javax.infobus.DbAccess getDb()
           
 long getEstimatedRowCount()
           
 int getHighWaterMark()
           
 java.lang.Object getProperty(java.lang.String propertyName)
          Returns a property of the data item.
 java.lang.Object[] getQueryableColumnDataItemNames()
          get all the 'queryable columns data item names'
 java.lang.Object[] getReturnItemNames()
          get all the 'return item names'
 int getRow()
           
 int getRowCount()
           
 oracle.jbo.RowSet getRowSet()
          Returns the server-side RowSet that is associated with this RowsetAccessImpl.
 oracle.jbo.RowSetIterator getRowSetIterator()
          Returns the server-side RowSetiterator that is associated with this RowsetAccessImpl.
 java.lang.Object[] getSortingEnabled()
          get if sorting should be allowed for each column
 oracle.dacf.dataset.RowsetAccessImpl getTarget()
          Internal: Applications should not use this method.
 javax.infobus.ArrayAccess getView(int viewSize)
          Returns an ArrayAccess that provides access to the rows in range.
 int getViewStart()
          Returns the start row of the view.
 boolean hasMoreRows()
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 boolean hasRows()
           
protected  void insertChildAt(DataItemImpl child, int index)
          Adds a child to this RowsetAccessImpl at a specific index position.
 boolean isFromLinkAccessor()
           
protected  boolean isFromViewAccessor()
           
 boolean isRangeAtBottom()
           
 boolean isRangeAtTop()
           
 boolean last()
          Move to the last row of the result set.
 void lockRow()
           
 void navigated(oracle.jbo.NavigationEvent e)
          Invoked when the current-row designation changes.
 javax.infobus.ScrollableRowsetAccess newCursor()
           
 void newRow()
          Adds a new row to the Rowset.
 boolean next()
          Move to the next row relative to the current row.
 boolean previous()
          Move to the previous row relative to the current row.
protected  void publish(boolean publishKids)
           
 void rangeRefreshed(oracle.jbo.RangeRefreshEvent e)
          Invoked when the range changes.
 void rangeScrolled(oracle.jbo.ScrollEvent e)
          Invoked when the range is scrolled.
 boolean relative(int numRows)
          Move numRows relative to the current row in the rowset.
protected  void removeChild(DataItemImpl child)
          Removes a child from this RowsetAccessImpl.
 void rowDeleted(oracle.jbo.DeleteEvent e)
          Invoked when a row has been deleted.
 void rowInserted(oracle.jbo.InsertEvent e)
          Invoked when a row has been inserted.
 void rowUpdated(oracle.jbo.UpdateEvent e)
          Invoked when an attribute of the row has been changed.
 void scrollView(int numRows)
           
 void setBufferSize(int size)
          Specifies the size of the "visible" buffer.
 void setColumnValue(int columnIndex, java.lang.Object obj)
           
 void setColumnValue(java.lang.String columnName, java.lang.Object obj)
           
protected  void setFromViewAccessor(boolean fromViewAccessor)
           
 void setRowSet(oracle.jbo.RowSet rowset)
          Sets the server-side RowSet for this RowsetAccessImpl.
 void setRowSetIterator(oracle.jbo.RowSetIterator rowsetIter)
          Sets the server-side RowSetIterator for this RowsetAccessImpl.
 void setTarget(oracle.dacf.dataset.RowsetAccessImpl target)
          Internal: Applications should not use this method.
 void setViewStart(int viewStart)
          Specify the start row of the view.
protected  void shutdown()
          Internal: Applications should not use this method.
 java.lang.String toString()
          Returns a string naming the class, the current row number on both the client side and the server side.
 void validateCurrentRow()
           
 void validateRowset()
           
 
Methods inherited from class oracle.dacf.dataset.DataItemImpl
addDataItemChangeListener, findDataItem, fireItemsAvailable, fireItemsAvailable, fireItemsRevoked, getDataItemChangeSupport, getProducerObject, getSource, isPublished, postRollback, preRollback, publish, release, removeDataItemChangeListener, revoke, setProducerObject, setSource, validateItem
 
Methods inherited from class oracle.dacf.dataset.DacObject
addChild, findDescendant, genCloneName, getChild, getChildIndex, getChildren, getName, getNumOfChildren, getParent, getPrefix, insertChildAt, removeChild, removeChildren, setChildren, setName, setParent, setPrefix
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_rowset

protected oracle.jbo.RowSet _rowset

_rowsetIter

protected oracle.jbo.RowSetIterator _rowsetIter

_view

protected oracle.dacf.dataset.ViewArrayAccessImpl _view

_curState

protected oracle.dacf.dataset.RowSetState _curState

_exceptionRunning

protected boolean _exceptionRunning

_exceptionRunningGate

protected java.lang.Object _exceptionRunningGate

ERR_PROD_CODE

protected static final java.lang.String ERR_PROD_CODE

COLUMN_LABELS

protected static final int COLUMN_LABELS
See Also:
Constant Field Values

COLUMN_WIDTHS

protected static final int COLUMN_WIDTHS
See Also:
Constant Field Values

RETURN_ITEMS

protected static final int RETURN_ITEMS
See Also:
Constant Field Values

QUERYABLE_COLUMNS

protected static final int QUERYABLE_COLUMNS
See Also:
Constant Field Values

COLUMN_ALIGNMENTS

protected static final int COLUMN_ALIGNMENTS
See Also:
Constant Field Values

SORTING_ENABLED

protected static final int SORTING_ENABLED
See Also:
Constant Field Values
Constructor Detail

MappingRowsetAccessImpl

public MappingRowsetAccessImpl()

MappingRowsetAccessImpl

public MappingRowsetAccessImpl(java.lang.String name,
                               javax.infobus.InfoBusEventListener source,
                               ResultSetInfo rsInfo)

MappingRowsetAccessImpl

public MappingRowsetAccessImpl(java.lang.String name,
                               javax.infobus.InfoBusEventListener source,
                               ResultSetInfo rsInfo,
                               DacObject parent)
Method Detail

setTarget

public void setTarget(oracle.dacf.dataset.RowsetAccessImpl target)
Internal: Applications should not use this method.


getTarget

public oracle.dacf.dataset.RowsetAccessImpl getTarget()
Internal: Applications should not use this method.


newRow

public void newRow()
            throws java.sql.SQLException,
                   javax.infobus.RowsetValidationException
Description copied from class: oracle.dacf.dataset.RowsetAccessImpl
Adds a new row to the Rowset.

Inserts a new row into the RowSet and initialized the new row to the defined default values provided that:


The master row check depends upon the MasterLink being defined for the detail Rowset. If this isn't defined, then row insertions when the master doesn't exist will result in detail rows deing orphaned and "disappearing" as far as the application is concerned. The new row will be in the database but the application won't be able to retrieve it.

Throws:
javax.infobus.RowsetValidationException - if the RowSet can't be updated or if inserting into a Detail RowSet when the Master RowSet is null.
java.sql.SQLException - if the row creation or insert fails

deleteRow

public void deleteRow()
               throws java.sql.SQLException,
                      javax.infobus.RowsetValidationException
Throws:
java.sql.SQLException
javax.infobus.RowsetValidationException

next

public boolean next()
             throws java.sql.SQLException,
                    javax.infobus.RowsetValidationException
Description copied from class: oracle.dacf.dataset.RowsetAccessImpl
Move to the next row relative to the current row.

Returns:
TRUE if the movement succeeded. When movement fails, the current row will remain the same.
Throws:
java.sql.SQLException
javax.infobus.RowsetValidationException

previous

public boolean previous()
                 throws java.sql.SQLException,
                        javax.infobus.RowsetValidationException
Description copied from class: oracle.dacf.dataset.RowsetAccessImpl
Move to the previous row relative to the current row.

Returns:
TRUE if the movement succeed. When movement fails, the current row will remain the same.
Throws:
java.sql.SQLException
javax.infobus.RowsetValidationException

first

public boolean first()
              throws java.sql.SQLException,
                     javax.infobus.RowsetValidationException
Description copied from class: oracle.dacf.dataset.RowsetAccessImpl
Move to the first row of the result set.

Returns:
TRUE if the movement succeeded.
Throws:
java.sql.SQLException
javax.infobus.RowsetValidationException

last

public boolean last()
             throws java.sql.SQLException,
                    javax.infobus.RowsetValidationException
Description copied from class: oracle.dacf.dataset.RowsetAccessImpl
Move to the last row of the result set.

Returns:
TRUE if the movement succeeded.
Throws:
java.sql.SQLException
javax.infobus.RowsetValidationException

relative

public boolean relative(int numRows)
                 throws java.sql.SQLException,
                        javax.infobus.RowsetValidationException
Description copied from class: oracle.dacf.dataset.RowsetAccessImpl
Move numRows relative to the current row in the rowset.

Parameters:
numRows - the number of rows to move.
Returns:
TRUE if the movement succeeded.
Throws:
java.sql.SQLException
javax.infobus.RowsetValidationException

absolute

public boolean absolute(int rowNumber)
                 throws java.sql.SQLException,
                        javax.infobus.RowsetValidationException
Description copied from class: oracle.dacf.dataset.RowsetAccessImpl
Move to a specific row in the rowset.

Returns:
TRUE if the movement succeeded.
Throws:
java.sql.SQLException
javax.infobus.RowsetValidationException

getProperty

public java.lang.Object getProperty(java.lang.String propertyName)
Description copied from class: oracle.dacf.dataset.RowsetAccessImpl
Returns a property of the data item.

DataItemProperties defines the properties supported.

Parameters:
propertyName - The name of the property.
Returns:
The value of the property.

clone

public java.lang.Object clone()
Implements a deep copy of the object.

Overrides:
clone in class DataItemImpl
Returns:
The cloned RowsetAccessImpl

destroy

public void destroy()
Internal: Applications should not use this method.

Specified by:
destroy in interface RowSetManager

shutdown

protected void shutdown()
Internal: Applications should not use this method.

Overrides:
shutdown in class DataItemImpl

publish

protected void publish(boolean publishKids)
Overrides:
publish in class DataItemImpl

addChild

protected void addChild(DataItemImpl child)
Adds a child to this RowsetAccessImpl.

Parameters:
child - the child to be added.

insertChildAt

protected void insertChildAt(DataItemImpl child,
                             int index)
Adds a child to this RowsetAccessImpl at a specific index position.

Parameters:
child - the child to be added.
index - the 0-based index of the new child.

removeChild

protected void removeChild(DataItemImpl child)
Removes a child from this RowsetAccessImpl.

Parameters:
child - the child to be removed.

getRowSet

public final oracle.jbo.RowSet getRowSet()
Returns the server-side RowSet that is associated with this RowsetAccessImpl.

Specified by:
getRowSet in interface RowSetManager
Returns:
the server-side RowSet

setRowSet

public void setRowSet(oracle.jbo.RowSet rowset)
Sets the server-side RowSet for this RowsetAccessImpl. It will reset all of the ImmediateAccessImpls "under" it to the new RowSet. This method will also set the RowSetIterator to use the default iterator of the new RowSet.

Specified by:
setRowSet in interface RowSetManager
Parameters:
rowset - the server-side RowSet

getRowSetIterator

public final oracle.jbo.RowSetIterator getRowSetIterator()
Returns the server-side RowSetiterator that is associated with this RowsetAccessImpl.

Specified by:
getRowSetIterator in interface RowSetManager
Returns:
the server-side RowSetIterator

setRowSetIterator

public void setRowSetIterator(oracle.jbo.RowSetIterator rowsetIter)
Sets the server-side RowSetIterator for this RowsetAccessImpl. It will reset all of the ImmediateAccessImpls "under" it to the new RowSetIterator.

Specified by:
setRowSetIterator in interface RowSetManager

findRow

public boolean findRow(java.lang.String[] colNames,
                       java.lang.Object[] values)
                throws javax.infobus.ColumnNotFoundException,
                       javax.infobus.DuplicateColumnException,
                       java.sql.SQLException
Finds a the first row within the result set that contains values in columns.

There must be a one-to-one correspondence between the colNames and values arrays. The columns listed in colNames must be the primary keys used to produce the result set. The value values[n] will be used as the search value for colNames[n]. Individual null entries are allowed in values and will be mapped to the SQL null value. If the row is found, it will be made the current row.

Specified by:
findRow in interface SearchableRowsetAccess
Parameters:
colNames - The name of the columns to search within
values - The values to use for the comparison
Returns:
true if a row was found that matches the search criteria
Throws:
javax.infobus.ColumnNotFoundException, - javax.infobus.DuplicateColumnException, java.sql.SQLException;
javax.infobus.ColumnNotFoundException
javax.infobus.DuplicateColumnException
java.sql.SQLException

findRangeIndexOf

public int findRangeIndexOf(java.lang.String[] colNames,
                            java.lang.Object[] values)
                     throws javax.infobus.ColumnNotFoundException,
                            javax.infobus.DuplicateColumnException,
                            java.sql.SQLException
Searches for a row, like the findRow method above. If a row is found it returns the index of the row relative to the Range index of the RowSet. If there is no row is found matching the column values -1 is returned

Specified by:
findRangeIndexOf in interface SearchableRowsetAccess
Parameters:
colNames - The name of the columns to search within
values - The values to use for the comparison
Returns:
true if a row was found that matches the search criteria
Throws:
javax.infobus.ColumnNotFoundException, - javax.infobus.DuplicateColumnException, java.sql.SQLException;
javax.infobus.ColumnNotFoundException
javax.infobus.DuplicateColumnException
java.sql.SQLException
See Also:
RowSetIterator

getColumnCount

public final int getColumnCount()
Specified by:
getColumnCount in interface javax.infobus.RowsetAccess

getColumnName

public final java.lang.String getColumnName(int colIndex)
                                     throws java.lang.IndexOutOfBoundsException
Gets the name of the column at postion n.

Specified by:
getColumnName in interface javax.infobus.RowsetAccess
Parameters:
colIndex - the base 1 offset of the column; the first column is at colIndex value 1.
Throws:
java.lang.IndexOutOfBoundsException

getColumnDatatypeNumber

public final int getColumnDatatypeNumber(int index)
                                  throws java.lang.IndexOutOfBoundsException
Specified by:
getColumnDatatypeNumber in interface javax.infobus.RowsetAccess
Throws:
java.lang.IndexOutOfBoundsException

getColumnDatatypeName

public final java.lang.String getColumnDatatypeName(int columnIndex)
                                             throws java.lang.IndexOutOfBoundsException
Specified by:
getColumnDatatypeName in interface javax.infobus.RowsetAccess
Throws:
java.lang.IndexOutOfBoundsException

getHighWaterMark

public final int getHighWaterMark()
Specified by:
getHighWaterMark in interface javax.infobus.RowsetAccess

hasMoreRows

public final boolean hasMoreRows()
Specified by:
hasMoreRows in interface javax.infobus.RowsetAccess

hasRows

public final boolean hasRows()
Specified by:
hasRows in interface RowSetManager

getColumnItem

public final java.lang.Object getColumnItem(int colNum)
                                     throws java.lang.IndexOutOfBoundsException
Specified by:
getColumnItem in interface javax.infobus.RowsetAccess
Throws:
java.lang.IndexOutOfBoundsException

getColumnItem

public java.lang.Object getColumnItem(java.lang.String colName)
                               throws javax.infobus.ColumnNotFoundException,
                                      javax.infobus.DuplicateColumnException
Specified by:
getColumnItem in interface javax.infobus.RowsetAccess
Throws:
javax.infobus.ColumnNotFoundException
javax.infobus.DuplicateColumnException

setColumnValue

public final void setColumnValue(int columnIndex,
                                 java.lang.Object obj)
                          throws java.lang.IndexOutOfBoundsException,
                                 javax.infobus.RowsetValidationException,
                                 java.sql.SQLException
Specified by:
setColumnValue in interface javax.infobus.RowsetAccess
Throws:
java.lang.IndexOutOfBoundsException
javax.infobus.RowsetValidationException
java.sql.SQLException

setColumnValue

public void setColumnValue(java.lang.String columnName,
                           java.lang.Object obj)
                    throws javax.infobus.ColumnNotFoundException,
                           javax.infobus.DuplicateColumnException,
                           javax.infobus.RowsetValidationException,
                           java.sql.SQLException
Specified by:
setColumnValue in interface javax.infobus.RowsetAccess
Throws:
javax.infobus.ColumnNotFoundException
javax.infobus.DuplicateColumnException
javax.infobus.RowsetValidationException
java.sql.SQLException

flush

public void flush()
           throws java.sql.SQLException,
                  javax.infobus.RowsetValidationException
Specified by:
flush in interface javax.infobus.RowsetAccess
Throws:
java.sql.SQLException
javax.infobus.RowsetValidationException

lockRow

public void lockRow()
             throws java.sql.SQLException,
                    javax.infobus.RowsetValidationException
Specified by:
lockRow in interface javax.infobus.RowsetAccess
Throws:
java.sql.SQLException
javax.infobus.RowsetValidationException

canInsert

public final boolean canInsert()
Specified by:
canInsert in interface javax.infobus.RowsetAccess

canUpdate

public final boolean canUpdate()
Specified by:
canUpdate in interface javax.infobus.RowsetAccess

canUpdate

public boolean canUpdate(java.lang.String columnName)
                  throws javax.infobus.ColumnNotFoundException,
                         javax.infobus.DuplicateColumnException
Specified by:
canUpdate in interface javax.infobus.RowsetAccess
Throws:
javax.infobus.ColumnNotFoundException
javax.infobus.DuplicateColumnException

canUpdate

public final boolean canUpdate(int columnIndex)
                        throws java.lang.IndexOutOfBoundsException
Specified by:
canUpdate in interface javax.infobus.RowsetAccess
Throws:
java.lang.IndexOutOfBoundsException

canDelete

public final boolean canDelete()
Specified by:
canDelete in interface javax.infobus.RowsetAccess

getDb

public javax.infobus.DbAccess getDb()
Specified by:
getDb in interface javax.infobus.RowsetAccess

newCursor

public javax.infobus.ScrollableRowsetAccess newCursor()
Specified by:
newCursor in interface javax.infobus.ScrollableRowsetAccess
Returns:
A new, independent "cursor" into the rowset.

setBufferSize

public final void setBufferSize(int size)
Specifies the size of the "visible" buffer.

The buffer size is also the upper limit on size of the ArrayAccess returned by getView().

Specified by:
setBufferSize in interface javax.infobus.ScrollableRowsetAccess
Parameters:
size - the number of rows to be retrieved at a time. size must be > 0 or -1; -1 indicates retrieve all rows.
See Also:
#getView(), ResultSetInfo.getRangeSize(), ResultSetInfo.setRangeSize(int nuRangeSize)

getBufferSize

public final int getBufferSize()
Returns the size of the "visible" buffer.

The buffer size is also the upper limit on size of the ArrayAccess returned by getView().

Specified by:
getBufferSize in interface javax.infobus.ScrollableRowsetAccess
Returns:
the number of rows to be retrieved at a time; -1 indicates that all rows are retrieved and -2 indicates that the buffer size couldn't be retrieved.
See Also:
#getView()

getRowCount

public final int getRowCount()
Specified by:
getRowCount in interface javax.infobus.ScrollableRowsetAccess

getEstimatedRowCount

public final long getEstimatedRowCount()

getRow

public final int getRow()
Specified by:
getRow in interface javax.infobus.ScrollableRowsetAccess

validateRowset

public void validateRowset()
                    throws javax.infobus.RowsetValidationException
Specified by:
validateRowset in interface javax.infobus.RowsetValidate
Throws:
javax.infobus.RowsetValidationException

validateCurrentRow

public void validateCurrentRow()
                        throws javax.infobus.RowsetValidationException
Specified by:
validateCurrentRow in interface javax.infobus.RowsetValidate
Throws:
javax.infobus.RowsetValidationException

getView

public javax.infobus.ArrayAccess getView(int viewSize)
Returns an ArrayAccess that provides access to the rows in range.

The the upper limit on size of the ArrayAccess is the buffer size.

Specified by:
getView in interface javax.infobus.DataItemView
Returns:
An ArrayAccess providing access to the rows starting at viewStart
See Also:
RowsetAccessImpl.getBufferSize(), #setBufferSize(ing size)

getViewStart

public final int getViewStart()
Returns the start row of the view. The rows are numbers from 0 -- the first row is row 0.

Specified by:
getViewStart in interface javax.infobus.DataItemView
Returns:
the row number of the first row in the view

setViewStart

public void setViewStart(int viewStart)
Specify the start row of the view. The rows are numbers from 0 -- the first row is row 0.

Specified by:
setViewStart in interface javax.infobus.DataItemView
Parameters:
viewStart - the row number of the first row in the view

scrollView

public void scrollView(int numRows)
Specified by:
scrollView in interface javax.infobus.DataItemView

getColumnLabels

public java.lang.Object[] getColumnLabels()
get all the column labels

Specified by:
getColumnLabels in interface oracle.dacf.dataset.AttributeProperties
Returns:
array of column label one per column

getColumnWidths

public java.lang.Object[] getColumnWidths()
get all the column widths

Specified by:
getColumnWidths in interface oracle.dacf.dataset.AttributeProperties
Returns:
array of column width one per column

getColumnAlignments

public java.lang.Object[] getColumnAlignments()
get all the column horizontal alignments

Returns:
array of column alignments one per column

getReturnItemNames

public java.lang.Object[] getReturnItemNames()
get all the 'return item names'

Specified by:
getReturnItemNames in interface oracle.dacf.dataset.AttributeProperties
Returns:
array of 'return item names' one per column

getQueryableColumnDataItemNames

public java.lang.Object[] getQueryableColumnDataItemNames()
get all the 'queryable columns data item names'

Specified by:
getQueryableColumnDataItemNames in interface oracle.dacf.dataset.AttributeProperties
Returns:
array of 'queryable column data item names' one per column

getSortingEnabled

public java.lang.Object[] getSortingEnabled()
get if sorting should be allowed for each column

Returns:
sort status of each column

rowInserted

public void rowInserted(oracle.jbo.InsertEvent e)
Description copied from interface: oracle.jbo.RowSetListener
Invoked when a row has been inserted.

Specified by:
rowInserted in interface oracle.jbo.RowSetListener
Parameters:
e - a description of the new Row object.

deferredRowInserted

public void deferredRowInserted(oracle.jbo.InsertEvent e)

rowDeleted

public void rowDeleted(oracle.jbo.DeleteEvent e)
Description copied from interface: oracle.jbo.RowSetListener
Invoked when a row has been deleted.

Specified by:
rowDeleted in interface oracle.jbo.RowSetListener
Parameters:
e - a description of the deleted Row object.

deferredRowDeleted

public void deferredRowDeleted(oracle.jbo.DeleteEvent e)

navigated

public void navigated(oracle.jbo.NavigationEvent e)
Description copied from interface: oracle.jbo.RowSetListener
Invoked when the current-row designation changes.

Specified by:
navigated in interface oracle.jbo.RowSetListener
Parameters:
e - a description of the new and previous current rows.

deferredNavigated

public void deferredNavigated(oracle.jbo.NavigationEvent e)

rangeRefreshed

public void rangeRefreshed(oracle.jbo.RangeRefreshEvent e)
Description copied from interface: oracle.jbo.RowSetListener
Invoked when the range changes.

Specified by:
rangeRefreshed in interface oracle.jbo.RowSetListener
Parameters:
e - a description of the new ranges.

deferredRangeRefreshed

public void deferredRangeRefreshed(oracle.jbo.RangeRefreshEvent e)

rowUpdated

public void rowUpdated(oracle.jbo.UpdateEvent e)
Description copied from interface: oracle.jbo.RowSetListener
Invoked when an attribute of the row has been changed.

Specified by:
rowUpdated in interface oracle.jbo.RowSetListener
Parameters:
e - a description of the modified Row object.

deferredRowUpdated

public void deferredRowUpdated(oracle.jbo.UpdateEvent e)

rangeScrolled

public void rangeScrolled(oracle.jbo.ScrollEvent e)
Description copied from interface: oracle.jbo.RowSetListener
Invoked when the range is scrolled.

Specified by:
rangeScrolled in interface oracle.jbo.RowSetListener
Parameters:
e - a description of the new range.

deferredRangeScrolled

public void deferredRangeScrolled(oracle.jbo.ScrollEvent e)

getColumnIndex

public int getColumnIndex(java.lang.String columnName)
                   throws javax.infobus.ColumnNotFoundException,
                          javax.infobus.DuplicateColumnException
Returns the index of the specified column

Parameters:
columnName - The name of the column for which you need the index.
Returns:
the index of the specified column.
Throws:
javax.infobus.ColumnNotFoundException
javax.infobus.DuplicateColumnException

toString

public java.lang.String toString()
Returns a string naming the class, the current row number on both the client side and the server side.

Overrides:
toString in class DataItemImpl
Returns:
A string containing the class name, current client row number and current server row number.

hasNext

public boolean hasNext()
Specified by:
hasNext in interface IteratorProperties

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface IteratorProperties

isRangeAtBottom

public boolean isRangeAtBottom()
Specified by:
isRangeAtBottom in interface IteratorProperties

isRangeAtTop

public boolean isRangeAtTop()
Specified by:
isRangeAtTop in interface IteratorProperties

doPreRollback

protected void doPreRollback()
Internal: Applications should not use this method.

Notification that we are going to rollback. Cache the current row (because jbo sets it to -1) and restore it after rollback

Overrides:
doPreRollback in class DataItemImpl

doPostRollback

protected void doPostRollback()
Internal: Applications should not use this method.

Notification that rollback has happened. Restore the current row.

Overrides:
doPostRollback in class DataItemImpl

setFromViewAccessor

protected void setFromViewAccessor(boolean fromViewAccessor)

isFromLinkAccessor

public boolean isFromLinkAccessor()
Specified by:
isFromLinkAccessor in interface RowSetManager

isFromViewAccessor

protected boolean isFromViewAccessor()

Oracle Data-aware Controls Reference

 

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