Extension SDK

oracle.jdeveloper.cm.dt.wizard
Interface DBWizardFactory


public interface DBWizardFactory

A DBWizardFactory is responsible for creating and editing Database Objects.


Method Summary
 boolean canCreateDBObject(Context ctx, Database db, int dbObjectType)
          Whether this DBWizardFactory will be able to create a new dabtabase object of a specific type in a specific context.
 boolean canEditDBObject(Context ctx, Database db, DBObject object)
          Whether this DBWizardFactory will be able to edit an existing dabtabase object of a specific type in a specific context.
 boolean createDBObject(Context ctx, Database db, int dbObjectType)
          Creates a new dabtabase object of a specific type in a specific context.
 boolean editDBObject(Context ctx, Database db, DBObject object)
          Edits an existing dabtabase object of a specific type in a specific context.
 

Method Detail

canCreateDBObject

public boolean canCreateDBObject(Context ctx,
                                 Database db,
                                 int dbObjectType)
Whether this DBWizardFactory will be able to create a new dabtabase object of a specific type in a specific context.

Parameters:
ctx - The context of the current selection
db - The Database instance to create the object in
See Also:
DatabaseObjectType

createDBObject

public boolean createDBObject(Context ctx,
                              Database db,
                              int dbObjectType)
Creates a new dabtabase object of a specific type in a specific context.

Parameters:
ctx - The context of the current selection
db - The Database instance to create the object in
Returns:
whether the object was sucessfully created.
See Also:
DatabaseObjectType

canEditDBObject

public boolean canEditDBObject(Context ctx,
                               Database db,
                               DBObject object)
Whether this DBWizardFactory will be able to edit an existing dabtabase object of a specific type in a specific context.

Parameters:
ctx - The context of the current selection
db - The Database instance to create the object in

editDBObject

public boolean editDBObject(Context ctx,
                            Database db,
                            DBObject object)
Edits an existing dabtabase object of a specific type in a specific context.

Parameters:
ctx - The context of the current selection
db - The Database instance to create the object in
Returns:
whether the object was sucessfully edited.

Extension SDK

 

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