Oracle Data-aware Controls Reference

oracle.dacf.control
Class DbAccessMonitor

java.lang.Object
  extended byoracle.dacf.util.InfoBusMemberHelper
      extended byoracle.dacf.control.DbAccessSupport
          extended byoracle.dacf.control.DbAccessMonitor
All Implemented Interfaces:
java.util.EventListener, javax.infobus.InfoBusDataConsumer, javax.infobus.InfoBusEventListener, InfoBusManagerListener, javax.infobus.InfoBusMember, java.beans.PropertyChangeListener

public class DbAccessMonitor
extends DbAccessSupport
implements InfoBusManagerListener

This class tracks a DbAccess item. More than one Component (frame, panel, etc.) could depend on this object to track a DbAccess. The last Component which call's terminate will cause this object to check if a transaction is pending and alert user.

Version:
INTERNAL

Field Summary
 
Fields inherited from class oracle.dacf.util.InfoBusMemberHelper
m_infoBus, m_propListeners, m_sourceRef, m_syncLock, m_vetoListeners
 
Constructor Summary
protected DbAccessMonitor()
          Constructor
 
Method Summary
 void addDbAccessClient(java.lang.Object o)
          addDbAccessClient - add a new object which is interested in tracking this DbAccess
 void addDbAccessClient(java.lang.Object o, IncompleteTransactionAlert alert)
          addDbAccessClient - add a new object which is interested in tracking this DbAccess
 void releaseResources(InfoBusManagerReleaseEvent e)
          A signalling method used to indicate the the control should free all resources and unregister any listeners that it has registered.
 void removeDbAccessClient(java.lang.Object o)
          removeDbAccessClient - remove object which is no longer interested in tracking this data item.
 void setIncompleteTransactionAlertUI(java.lang.Object o, IncompleteTransactionAlert alert)
          set the UI which should be used to alert
 boolean terminateTransaction(java.lang.Object o, boolean forceExit)
          terminateTransaction()
 
Methods inherited from class oracle.dacf.control.DbAccessSupport
dataItemAvailable, dataItemRevoked, dropInfoBus, getDataItem, getDataItemName, getInfoBusName, isFocusValidated, propertyChange, setDataItemName, setFocusValidated, setInfoBusName
 
Methods inherited from class oracle.dacf.util.InfoBusMemberHelper
addInfoBusPropertyListener, addInfoBusVetoableListener, clearRef, getInfoBus, joinInfoBus, joinInfoBus, leaveInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbAccessMonitor

protected DbAccessMonitor()
Constructor

Method Detail

releaseResources

public void releaseResources(InfoBusManagerReleaseEvent e)
Description copied from interface: InfoBusManagerListener
A signalling method used to indicate the the control should free all resources and unregister any listeners that it has registered.

Specified by:
releaseResources in interface InfoBusManagerListener

addDbAccessClient

public void addDbAccessClient(java.lang.Object o)
addDbAccessClient - add a new object which is interested in tracking this DbAccess

Parameters:
o - - object interested in our DbAccess item.

addDbAccessClient

public void addDbAccessClient(java.lang.Object o,
                              IncompleteTransactionAlert alert)
addDbAccessClient - add a new object which is interested in tracking this DbAccess

Parameters:
o - - object interested in our DbAccess item.
alert - - user defined alert dialog

removeDbAccessClient

public void removeDbAccessClient(java.lang.Object o)
removeDbAccessClient - remove object which is no longer interested in tracking this data item.

Parameters:
o - - objected which no longer cares to track this DbAccess item.

setIncompleteTransactionAlertUI

public void setIncompleteTransactionAlertUI(java.lang.Object o,
                                            IncompleteTransactionAlert alert)
set the UI which should be used to alert

Parameters:
o - - object interested in our DbAccess item.
alert - - user defined alert dialog

terminateTransaction

public boolean terminateTransaction(java.lang.Object o,
                                    boolean forceExit)
terminateTransaction()

Parameters:
o - - object which is terminating
forceExit - - force the user to exit ?. (do not show the cancel button clients would call this method to indicate that they want to terminate the transaction

Oracle Data-aware Controls Reference

 

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