oracle.dacf.control.swing
Class SearchableValueLocator
java.lang.Object
|
+--oracle.dacf.control.swing.SearchableValueLocator
- All Implemented Interfaces:
- ComboBoxDataSource.ValueLocator
- public class SearchableValueLocator
- extends java.lang.Object
- implements ComboBoxDataSource.ValueLocator
Locates value using Searchable RowsetAccess
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchableValueLocator
public SearchableValueLocator()
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