Skip navigation links

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

E17493-03


oracle.jdeveloper.offlinedb.wizard
Class SchemaObjectWizard

java.lang.Object
  extended by oracle.jdeveloper.offlinedb.wizard.SchemaObjectWizard


public class SchemaObjectWizard
extends java.lang.Object

Wizard launcher for creating and editing any type of schema object in the offline database.


Method Summary
static SystemObject createObject(Context c, java.lang.String type)
          Fires the wizard to create an object of given type, getting the provider and schema from the given context.
static SystemObject createObject(OfflineDBObjectProvider pro, SchemaObject obj)
          Fires the wizard to create an object in given the provider taking the given object as a base.
static SystemObject createObject(OfflineDBObjectProvider pro, Schema s, java.lang.String type)
          Fires the wizard to create an object of given type in the provider and schema required.
static SystemObject createObject(OfflineDBObjectProvider pro, Schema s, java.lang.String type, Context c)
          Fires the wizard to create an object of given type in the provider and schema required, and also given the current wizard context.
static
<T extends SystemObject>
T
createObject(OfflineDBObjectProvider pro, T obj, Context c)
          Fires the wizard to create an object in given the provider taking the given object as a base and using the given Context.
static boolean editObject(OfflineDBObjectProvider pro, SchemaObject obj)
          Fires the edit dialog for the given object from the given provider.
static boolean editObject(OfflineDBObjectProvider pro, SchemaObject obj, Context c)
          Fires the edit dialog for the given object from the given provider.
static boolean editObject(OfflineDBObjectProvider pro, SchemaObject obj, DBObject child)
          Fires the edit dialog for the given object from the given provider.
static boolean editObject(OfflineDBObjectProvider pro, SchemaObject obj, DBObject child, Context c)
          Fires the edit dialog for the given object from the given provider.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

createObject

public static SystemObject createObject(Context c,
                                        java.lang.String type)
Fires the wizard to create an object of given type, getting the provider and schema from the given context. Will return null if the context is not appropriate (e.g. no project) or creating the object fails or is cancelled by the user.

For example, create a new table:
SchemaObjectWizard.createObject( Context.newIdeContext(), Table.TYPE );


createObject

public static SystemObject createObject(OfflineDBObjectProvider pro,
                                        Schema s,
                                        java.lang.String type)
Fires the wizard to create an object of given type in the provider and schema required. Will return null if the create fails or is cancelled.

createObject

public static SystemObject createObject(OfflineDBObjectProvider pro,
                                        Schema s,
                                        java.lang.String type,
                                        Context c)
Fires the wizard to create an object of given type in the provider and schema required, and also given the current wizard context. Will return null if the create fails or is cancelled.

createObject

public static SystemObject createObject(OfflineDBObjectProvider pro,
                                        SchemaObject obj)
Fires the wizard to create an object in given the provider taking the given object as a base. Will return null if the create fails or is cancelled.

createObject

public static <T extends SystemObject> T createObject(OfflineDBObjectProvider pro,
                                                      T obj,
                                                      Context c)
Fires the wizard to create an object in given the provider taking the given object as a base and using the given Context. Will return null if the create fails or is cancelled.

editObject

public static boolean editObject(OfflineDBObjectProvider pro,
                                 SchemaObject obj)
Fires the edit dialog for the given object from the given provider. Returns true if an edit has occured.

editObject

public static boolean editObject(OfflineDBObjectProvider pro,
                                 SchemaObject obj,
                                 Context c)
Fires the edit dialog for the given object from the given provider. Returns true if an edit has occured.

editObject

public static boolean editObject(OfflineDBObjectProvider pro,
                                 SchemaObject obj,
                                 DBObject child)
Fires the edit dialog for the given object from the given provider. The edit dialog's initial focus will be the given child DBObject. Returns true if an edit has occured.

For example, given DBObjectProvider `provider` and Table `table`:
Column col1 = table.getColumn( "COLUMN1" );
SchemaObject.editObject( provider, table, col1 );


editObject

public static boolean editObject(OfflineDBObjectProvider pro,
                                 SchemaObject obj,
                                 DBObject child,
                                 Context c)
Fires the edit dialog for the given object from the given provider. The edit dialog's initial focus will be the given child DBObject. Returns true if an edit has occured.

For example, given DBObjectProvider `provider` and Table `table`:
Column col1 = table.getColumn( "COLUMN1" );
SchemaObject.editObject( provider, table, col1 );


Skip navigation links

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

E17493-03


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