Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.6.0)

E10653-07

oracle.jbo.server
Class OracleDatabaseChangeListenerWrapper

java.lang.Object
  extended by oracle.jbo.server.OracleDatabaseChangeListenerWrapper
All Implemented Interfaces:
java.util.EventListener, ADFDatabaseChangeListener, oracle.jdbc.dcn.DatabaseChangeListener

public class OracleDatabaseChangeListenerWrapper
extends java.lang.Object
implements oracle.jdbc.dcn.DatabaseChangeListener, ADFDatabaseChangeListener

This class provides a wrapper for the Query Collection to listen to Oracle specific Database Change Notifications.


Constructor Summary
OracleDatabaseChangeListenerWrapper()
           
 
Method Summary
protected  java.util.Properties getRegistrationProperties()
          Get a list of properties used in the Oracle Database Change notification registration.
 void notify(java.util.EventObject dcEvt)
          Notify the query collection about a database event.
 void onDatabaseChangeNotification(oracle.jdbc.dcn.DatabaseChangeEvent dcEvt)
          * Internal: Applications should not use this interface. This method is used by Oracle JDBC Driver to notify this instance.
 void register(QueryCollection qc, java.sql.Connection conn, java.sql.Statement stmt)
          The method invoked by the Query Collection to register for database change events.
 void unregister()
          The listener must un-register itself from the database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OracleDatabaseChangeListenerWrapper

public OracleDatabaseChangeListenerWrapper()
Method Detail

register

public void register(QueryCollection qc,
                     java.sql.Connection conn,
                     java.sql.Statement stmt)
The method invoked by the Query Collection to register for database change events.

Specified by:
register in interface ADFDatabaseChangeListener
Parameters:
qc - The Query Collection registering for events
conn - The database connection handle
stmt - The statement handle that contains the SQL statement string and bind params to identify the result set.

unregister

public void unregister()
The listener must un-register itself from the database.

Specified by:
unregister in interface ADFDatabaseChangeListener

onDatabaseChangeNotification

public void onDatabaseChangeNotification(oracle.jdbc.dcn.DatabaseChangeEvent dcEvt)
* Internal: Applications should not use this interface. This method is used by Oracle JDBC Driver to notify this instance. Consider overriding notify instead.

Specified by:
onDatabaseChangeNotification in interface oracle.jdbc.dcn.DatabaseChangeListener

notify

public void notify(java.util.EventObject dcEvt)
Notify the query collection about a database event.

Specified by:
notify in interface ADFDatabaseChangeListener
Parameters:
evt - The details about the event that was generated by the database

getRegistrationProperties

protected java.util.Properties getRegistrationProperties()
Get a list of properties used in the Oracle Database Change notification registration.


Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.6.0)

E10653-07

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