oracle.dacf.control
Class DbAccessMonitor
java.lang.Object
|
+--oracle.dacf.util.InfoBusMemberHelper
|
+--oracle.dacf.control.DbAccessSupport
|
+--oracle.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
Methods inherited from class oracle.dacf.control.DbAccessSupport |
dataItemAvailable, dataItemRevoked, dropInfoBus, getDataItem, getDataItemName, getInfoBusName, isFocusValidated, propertyChange, setDataItemName, setFocusValidated, setInfoBusName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbAccessMonitor
protected DbAccessMonitor()
- Constructor
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 terminatingforceExit
- - 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