Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

oracle.ide.db.dialogs
Class DBEditorFactoryRegistry

java.lang.Object
  extended by oracle.ide.db.dialogs.DBEditorFactoryRegistry

public class DBEditorFactoryRegistry
extends java.lang.Object

Registry where DBEditorFactory classes are registered to provider create/edit support for a given class of DBObjectProvider.

Since:
11.0

Method Summary
static DBEditorFactory findFactory(java.lang.Class<? extends DBObjectProvider> c)
           
static DBEditorFactory getCreateFactory(DBObjectProvider pro, java.lang.String dbObjectType)
          Finds and returns a factory that can create an object of the given type in the given schema and provider.
static DBEditorFactory getCreateFactory(DBObjectTypeNode node)
          Finds and returns a factory that can create an object of the given type in the given schema and provider.
static DBEditorFactory getEditFactory(DBObject obj, DBObjectProvider pro)
          Finds and returns a factory that can edit the given object.
static DBEditorFactory getEditFactory(DBObjectNode node)
          Finds and returns a factory that can edit an object of the type specified by DBObjectTypeNode.getObjectType().
static DBEditorFactory getEditFactory(SchemaObject obj, DBObjectProvider pro)
           
static void registerDBEditorFactory(java.lang.Class providerClass, DBEditorFactory factory)
          Deprecated. use the extension.xml mechanism instead.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findFactory

public static DBEditorFactory findFactory(java.lang.Class<? extends DBObjectProvider> c)

registerDBEditorFactory

@Deprecated
public static void registerDBEditorFactory(java.lang.Class providerClass,
                                                      DBEditorFactory factory)
Deprecated. use the extension.xml mechanism instead.

This has been deprecated in favour of the following extension.xml hook:
  <database-hook>
    <object-editor-factories>
      <object-editor-factory>
        <provider-class>oracle.example.db.MyProvider</provider-class>
        <factory-class>oracle.example.db.dialogs.MyEditorFactory</factory-class>
      </object-editor-factory>
    </object-editor-factories>
  </database-hook>
 


getCreateFactory

public static DBEditorFactory getCreateFactory(DBObjectProvider pro,
                                               java.lang.String dbObjectType)
Finds and returns a factory that can create an object of the given type in the given schema and provider.

Returns:
null if the provider isn't supported or the object cannot be created.

getCreateFactory

public static DBEditorFactory getCreateFactory(DBObjectTypeNode node)
Finds and returns a factory that can create an object of the given type in the given schema and provider.

Returns:
null if the provider isn't supported or the object cannot be created.

getEditFactory

public static DBEditorFactory getEditFactory(SchemaObject obj,
                                             DBObjectProvider pro)
See Also:
getEditFactory(DBObject,DBObjectProvider)

getEditFactory

public static DBEditorFactory getEditFactory(DBObject obj,
                                             DBObjectProvider pro)
Finds and returns a factory that can edit the given object.

Returns:
null if the provider isn't supported or the object cannot be modified.

getEditFactory

public static DBEditorFactory getEditFactory(DBObjectNode node)
Finds and returns a factory that can edit an object of the type specified by DBObjectTypeNode.getObjectType().

Returns:
null if the provider isn't supported or an object of that type cannot be modified.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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