Oracle Data-aware Controls Reference

oracle.dacf.control.swing.find
Class FindAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byoracle.dacf.control.swing.find.FindAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class FindAction
extends javax.swing.AbstractAction

Action object which can create a WHERE clause and execute a Query. This class is a building block to create FindButtonControl, FindPanel A data item name for a rowset has to be specified. This rowset will be used to execute the query. This control creates a WHERE clause of form WHERE ( ( col1 = val1) AND (col2 = val2)....) and sets this as a query condtion and executes the query. For each column a FindItemModelhas to be specified. The FindItemModel specifies the column name, type and value used to build the query.

Version:
SDK
See Also:
FindItemModel, FindPanel, Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
FindAction()
          Create Action object with default text and icon
FindAction(java.lang.String text)
          Create Action object with specified text
FindAction(java.lang.String text, javax.swing.Icon icon)
          Create Action object with specified text and icon
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          execute query in response to action performed event
 void executeQuery(boolean bIgnoreQueryCondition)
          execute the query.
 javax.infobus.RowsetAccess getDataItem()
          get the data item associated with this object.
 java.lang.String getDataItemName()
          Return the data item name for the row set.
 FindItemModel[] getFindItemModel()
          return the item model of the column objects
 java.lang.String getInfoBusName()
           
 FindActionQueryBuilder getQueryBuilder()
          get the query builder currently in use.
 javax.infobus.ScrollableRowsetAccess getRowsetAccess()
          get the rowset access currently in use
 boolean isCaseSensitiveSearch()
          Return true, if the FindPanel does a case sensitive search for character data types.
 void setCaseSensitiveSearch(boolean flag)
          Specify if case sensitive search is to performed for Character data types.
 void setDataItemName(java.lang.String dataItemName)
          Specify the data item name for the rowset.
 void setFindItemModel(FindItemModel[] findItemModel)
          set the FindItem model for the child objects.
 void setInfoBusName(java.lang.String infoBusName)
          Sets the name of the InfoBus this transaction monitor is connected to.
 void setQueryBuilder(FindActionQueryBuilder queryBuilder)
          specify the query bulder.
 void setRowsetAccess(javax.infobus.ScrollableRowsetAccess rsAccess)
          An alternative way to specify a rowset
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindAction

public FindAction()
Create Action object with default text and icon


FindAction

public FindAction(java.lang.String text)
Create Action object with specified text

Parameters:
text - to be used for the Action object

FindAction

public FindAction(java.lang.String text,
                  javax.swing.Icon icon)
Create Action object with specified text and icon

Parameters:
text - to be used for the action object
icon - to be used for the action object
Method Detail

setInfoBusName

public void setInfoBusName(java.lang.String infoBusName)
Sets the name of the InfoBus this transaction monitor is connected to.

By default, the it is connected to the default InfoBus, named Control.DEFAULT_INFOBUS_NAME.

If the named InfoBus does not exist, it is created automatically.

Parameters:
infoBusName - The name of the InfoBus to connect to.

getInfoBusName

public java.lang.String getInfoBusName()

setDataItemName

public void setDataItemName(java.lang.String dataItemName)
Specify the data item name for the rowset. The Query condition will be specified on the rowset and the query executed.

See Also:
setRowsetAccess

getDataItemName

public java.lang.String getDataItemName()
Return the data item name for the row set.

Returns:
data item name for the row set

setFindItemModel

public void setFindItemModel(FindItemModel[] findItemModel)
set the FindItem model for the child objects. The colum name, SQL type and value will be used to build the WHERE clause.

Parameters:
findItemModel - describes the column items

getFindItemModel

public FindItemModel[] getFindItemModel()
return the item model of the column objects

Returns:
Find item model for each column object.

setQueryBuilder

public void setQueryBuilder(FindActionQueryBuilder queryBuilder)
specify the query bulder. Query bulder provides control over how the query is created

Parameters:
queryBuilder - object which implements custom query building mechanism

getQueryBuilder

public FindActionQueryBuilder getQueryBuilder()
get the query builder currently in use.

Returns:
query builder in use

getDataItem

public javax.infobus.RowsetAccess getDataItem()
get the data item associated with this object. The dataitem represents a rowset used to execute the query.

Returns:
rowset access data item used to execute the query

setRowsetAccess

public void setRowsetAccess(javax.infobus.ScrollableRowsetAccess rsAccess)
An alternative way to specify a rowset

Parameters:
rsAccess - rowset to use
See Also:
setDataItemName

getRowsetAccess

public javax.infobus.ScrollableRowsetAccess getRowsetAccess()
get the rowset access currently in use

Returns:
rowset currently used to execute a query

setCaseSensitiveSearch

public void setCaseSensitiveSearch(boolean flag)
Specify if case sensitive search is to performed for Character data types. By default this property is true.

Parameters:
flag - true if the search should be case sensitive

isCaseSensitiveSearch

public boolean isCaseSensitiveSearch()
Return true, if the FindPanel does a case sensitive search for character data types.

Returns:
true if the search is case sensitive for Character data types.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
execute query in response to action performed event

Parameters:
evt - ActionEvent

executeQuery

public void executeQuery(boolean bIgnoreQueryCondition)
execute the query. If the query condition is ignored, then the query will be executed without a WHERE clause

Parameters:
bIgnoreQueryCondition - should the WHERE clause be used or not ?

Oracle Data-aware Controls Reference

 

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