Oracle Data-aware Controls Reference

oracle.dacf.control.swing.find
Class ViewCriteriaFindAction

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

public class ViewCriteriaFindAction
extends javax.swing.AbstractAction

An action object which makes use of ViewCriteria to execute a query

Version:
INTERNAL
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
ViewCriteriaFindAction()
          Create Action object with default text and icon
ViewCriteriaFindAction(java.lang.String text)
          Create Action object with specified text
ViewCriteriaFindAction(java.lang.String text, javax.swing.Icon icon)
          Create Action object with specified text and icon
 
Method Summary
protected  boolean _applyChanges(javax.infobus.ScrollableRowsetAccess scr, int doWhat)
          Propogate changes to the DbAccess.
protected  void _applyChangesToDbAccess(javax.infobus.ScrollableRowsetAccess scr, int doWhat)
           
 void actionPerformed(java.awt.event.ActionEvent evt)
          execute query in response to action performed event
 void executeQuery()
          execute the query.
 void executeQuery(boolean bPostAlways)
          First post changes or commit/rollback and then execute query
 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 rollback()
          rollback if the dataproducer is dirty
 void setCaseSensitiveSearch(boolean flag)
          Specify if case sensitive search is to performed for Character data types.
 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

ViewCriteriaFindAction

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


ViewCriteriaFindAction

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

Parameters:
text - to be used for the Action object

ViewCriteriaFindAction

public ViewCriteriaFindAction(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

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()
execute the query. If the query condition is ignored, then the query will be executed without a WHERE clause


executeQuery

public void executeQuery(boolean bPostAlways)
First post changes or commit/rollback and then execute query


rollback

public void rollback()
rollback if the dataproducer is dirty


_applyChanges

protected boolean _applyChanges(javax.infobus.ScrollableRowsetAccess scr,
                                int doWhat)
Propogate changes to the DbAccess. Overrider this method to process the exception


_applyChangesToDbAccess

protected void _applyChangesToDbAccess(javax.infobus.ScrollableRowsetAccess scr,
                                       int doWhat)
                                throws java.sql.SQLException,
                                       javax.infobus.RowsetValidationException
Throws:
java.sql.SQLException
javax.infobus.RowsetValidationException

Oracle Data-aware Controls Reference

 

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