Oracle Data-aware Controls Reference

oracle.dacf.control.swing
Class SearchableValueLocator

java.lang.Object
  extended byoracle.dacf.control.swing.SearchableValueLocator
All Implemented Interfaces:
ComboBoxDataSource.ValueLocator

public class SearchableValueLocator
extends java.lang.Object
implements ComboBoxDataSource.ValueLocator

Locates value using Searchable RowsetAccess


Constructor Summary
SearchableValueLocator()
           
 
Method Summary
protected  int _doSearch(javax.infobus.ImmediateAccess searchFor, SearchableRowsetAccess srchRowset, javax.infobus.ScrollableRowsetAccess detailRowset)
           
protected  java.lang.String _getColumnNameFromDataItemName(java.lang.String dataItemName)
           
 int findIndexInMaster(javax.infobus.ImmediateAccess searchFor, javax.infobus.ScrollableRowsetAccess masterRowset, javax.infobus.ScrollableRowsetAccess detailRowset)
           
 java.lang.String[] getKeyColumnNames()
           
protected  java.lang.Object[] getKeyColumnValues(java.lang.String[] colNames, javax.infobus.ScrollableRowsetAccess detailRowset)
           
 boolean getNullValuesAllowed()
           
 boolean getRefreshKeyColumnNames()
           
 void setKeyColumnNames(java.lang.String[] names)
          Specify the key column names for the detail rowset The key column name is derived from the column name of the ListValueDataItemName.
 void setNullValuesAllowed(boolean nullValuesAllowed)
           
 void setRefreshKeyColumnNames(boolean flag)
          When the list value data item name on the Control is changed, the locator class is notified, so that the key column names can be changed.
 void updateKeyColumnName(java.lang.String newListValueDataItemName, ComboBoxControl c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchableValueLocator

public SearchableValueLocator()
Method Detail

getNullValuesAllowed

public boolean getNullValuesAllowed()
Specified by:
getNullValuesAllowed in interface ComboBoxDataSource.ValueLocator

setNullValuesAllowed

public void setNullValuesAllowed(boolean nullValuesAllowed)
Specified by:
setNullValuesAllowed in interface ComboBoxDataSource.ValueLocator

setRefreshKeyColumnNames

public void setRefreshKeyColumnNames(boolean flag)
When the list value data item name on the Control is changed, the locator class is notified, so that the key column names can be changed. By default the DefaultValueLocator updates the key columns. But, if this behaviour is not desirable set this flag to false. You may want to set this flag to false, when you have set the key column name list through setKeyColumnNames method.


getRefreshKeyColumnNames

public boolean getRefreshKeyColumnNames()

setKeyColumnNames

public void setKeyColumnNames(java.lang.String[] names)
Specify the key column names for the detail rowset The key column name is derived from the column name of the ListValueDataItemName. If there are more key columns involved specify the column names using this method.


getKeyColumnNames

public java.lang.String[] getKeyColumnNames()

findIndexInMaster

public int findIndexInMaster(javax.infobus.ImmediateAccess searchFor,
                             javax.infobus.ScrollableRowsetAccess masterRowset,
                             javax.infobus.ScrollableRowsetAccess detailRowset)
Specified by:
findIndexInMaster in interface ComboBoxDataSource.ValueLocator

updateKeyColumnName

public void updateKeyColumnName(java.lang.String newListValueDataItemName,
                                ComboBoxControl c)
Specified by:
updateKeyColumnName in interface ComboBoxDataSource.ValueLocator

_getColumnNameFromDataItemName

protected java.lang.String _getColumnNameFromDataItemName(java.lang.String dataItemName)

_doSearch

protected int _doSearch(javax.infobus.ImmediateAccess searchFor,
                        SearchableRowsetAccess srchRowset,
                        javax.infobus.ScrollableRowsetAccess detailRowset)

getKeyColumnValues

protected java.lang.Object[] getKeyColumnValues(java.lang.String[] colNames,
                                                javax.infobus.ScrollableRowsetAccess detailRowset)
                                         throws javax.infobus.ColumnNotFoundException,
                                                javax.infobus.DuplicateColumnException,
                                                java.sql.SQLException
Throws:
javax.infobus.ColumnNotFoundException
javax.infobus.DuplicateColumnException
java.sql.SQLException

Oracle Data-aware Controls Reference

 

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