Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.javatools.db
Interface DBObjectProviderListener

All Known Implementing Classes:
DBObjectProviderAdapter

public interface DBObjectProviderListener

Listener for attaching to a DBObjectProvider to be notified of changes to the provider. Changes include:

An adapter class is provided if a listener is only interested in a few of the provided events.

Since:
10.1.3
See Also:
DBObjectProviderAdapter

Method Summary
 void providerClosed(DBObjectProvider provider)
          Notifies the listener that the provider has been closed or disconnected.
 void providerDeleted(DBObjectProvider provider)
          Notifies the listener that the provider has been deleted.
 void providerOpened(DBObjectProvider provider)
          Notifies the listener that the provider has been opened or initialised.
 void providerReloaded(DBObjectProvider provider)
          Notifies the listener that the provider has been reloaded or restarted.
 void schemaAdded(DBObjectProvider provider, Schema schema)
          Notifies the listener that a Schema has been added to the provider.
 void schemaObjectsAdded(DBObjectProvider provider, Schema schema, SchemaObject[] objs)
          Notifies the listener that SchemaObjects have been added to the provider.
 void schemaObjectsRemoved(DBObjectProvider provider, Schema schema, SchemaObject[] objs)
          Notifies the listener that the given SchemaObjects have been removed from the provider.
 void schemaRemoved(DBObjectProvider provider, Schema schema)
          Notifies the listener that a Schema has been removed from the provider.
 void schemaUpdated(DBObjectProvider provider, DBObjectChange change)
          Notifies the listener that a Schema has been updated.
 

Method Detail

providerOpened

void providerOpened(DBObjectProvider provider)
Notifies the listener that the provider has been opened or initialised.


providerReloaded

void providerReloaded(DBObjectProvider provider)
Notifies the listener that the provider has been reloaded or restarted.


providerClosed

void providerClosed(DBObjectProvider provider)
Notifies the listener that the provider has been closed or disconnected.


providerDeleted

void providerDeleted(DBObjectProvider provider)
Notifies the listener that the provider has been deleted. This is different to closed because this means the definition for this provider no longer exists.


schemaAdded

void schemaAdded(DBObjectProvider provider,
                 Schema schema)
Notifies the listener that a Schema has been added to the provider.

See Also:
Schema

schemaRemoved

void schemaRemoved(DBObjectProvider provider,
                   Schema schema)
Notifies the listener that a Schema has been removed from the provider.

See Also:
Schema

schemaUpdated

void schemaUpdated(DBObjectProvider provider,
                   DBObjectChange change)
Notifies the listener that a Schema has been updated. This is for properties of the actual schema - not for changes to any objects contained within the schema (Tables, Views etc). To listen for such changes use a SchemaObjectListener and attach to the appropriate SchemaObject.

See Also:
Schema

schemaObjectsAdded

void schemaObjectsAdded(DBObjectProvider provider,
                        Schema schema,
                        SchemaObject[] objs)
Notifies the listener that SchemaObjects have been added to the provider.

See Also:
SchemaObject

schemaObjectsRemoved

void schemaObjectsRemoved(DBObjectProvider provider,
                          Schema schema,
                          SchemaObject[] objs)
Notifies the listener that the given SchemaObjects have been removed from the provider. Note that if an object is moved from one schema to another then a schemaObjectsRemoved followed by a schemaObjectsAdded event is fired. When the removed event is fired the schema set on the SchemaObjects will not match the schema passed into this method, and therefore the listener can identify that those objects are being moved to another schema, rather than deleted.

Parameters:
provider - the provider the event is happening within
schema - the schema the objects are being removed from
objs - the objects being removed. if the schema on any of these objects is different to the schema parameter, that object is being moved to the different schema (rather than deleted).
See Also:
SchemaObject

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

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