|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.db.dialogs.BaseDBEditorFactory
public class BaseDBEditorFactory
Default implementation of DBEditorFactory that uses registered PanelLibrary classes to determine which objects are supported, and to drive the use of the default db object editor.
| Constructor Summary | |
|---|---|
protected |
BaseDBEditorFactory()
|
| Method Summary | ||
|---|---|---|
boolean |
canCreateDBObject(DBObjectTypeNode node)
Whether this DBEditorFactory will be able to create a new database object under the given node. |
|
boolean |
canCreateDBObject(Schema schema,
DBObjectProvider pro,
java.lang.String dbObjectType)
Whether this DBEditorFactory will be able to create a new dabtabase object of a specific type in a specific context. |
|
boolean |
canEditDBObject(DBObject obj,
DBObjectProvider pro)
Whether this DBEditorFactory will be able to edit an existing provider object of a specific type in a specific context. |
|
boolean |
canEditDBObject(DBObjectNode node)
Deprecated. |
|
boolean |
canEditDBObject(SchemaObject obj,
DBObjectProvider pro)
|
|
protected boolean |
canUpdateObject(DBObject obj,
DBObjectProvider pro)
If canEditDBObject returns true, then this method is used to determine whether the verifiers are set to be editable or not. |
|
boolean |
createDBObject(DBObject newObj,
DBObjectProvider pro)
Deprecated. |
|
boolean |
createDBObject(DBObject newObj,
DBObjectProvider pro,
boolean commitToProvider)
Deprecated. |
|
DBObject |
createDBObject(DBObjectNode node,
java.lang.String dbObjectType)
Deprecated. |
|
|
createDBObject(DBObjectProvider pro,
T template,
DBObject parent,
boolean commitToProvider)
Deprecated. |
|
SchemaObject |
createDBObject(DBObjectTypeNode node)
Deprecated. |
|
SchemaObject |
createDBObject(Schema schema,
DBObjectProvider pro,
java.lang.String dbObjectType)
Deprecated. |
|
DBObject |
createDBObject(Schema schema,
DBObjectProvider pro,
java.lang.String dbObjectType,
DBObject parent,
boolean commitToProvider)
Deprecated. |
|
|
createDBObject(Schema schema,
DBObjectProvider pro,
T template,
boolean commitToProvider)
Deprecated. |
|
protected
|
createDBObject(Schema schema,
DBObjectProvider pro,
T template,
DBObject parent,
boolean commitToProvider)
Deprecated. |
|
protected Namespace |
createNamespace(DBEditorConfig config,
java.util.Map<java.lang.String,java.lang.Class> verifiers)
|
|
boolean |
editDBObject(DBObject obj,
DBObjectProvider pro)
Deprecated. |
|
boolean |
editDBObject(DBObject obj,
DBObjectProvider pro,
boolean commitToProvider)
Deprecated. |
|
boolean |
editDBObject(DBObject obj,
DBObjectProvider pro,
DBObject child)
Deprecated. |
|
boolean |
editDBObject(DBObject obj,
DBObjectProvider pro,
DBObject child,
boolean commitToProvider)
Deprecated. |
|
boolean |
editDBObject(DBObjectNode node)
Edits and existing database object in a provider. |
|
boolean |
editDBObject(SchemaObject obj,
DBObjectProvider pro)
Deprecated. |
|
java.lang.String |
getCreateLabel(java.lang.String dbObjectType)
Retrieves the menu label for creating new objects of the specified type. |
|
protected PanelLibrary |
getPanelLibrary(java.lang.String dbObjectType)
|
|
static java.lang.String |
getTimestampKey(java.lang.String type)
This is the key used to suspect timestamps for the lifetime of an object dialog. |
|
protected void |
initializeLibrary(PanelLibrary lib)
This is called when each library is created. |
|
boolean |
isCreateSupported(java.lang.String dbObjectType)
Whether this DBEditorFactory supports the creation of objects of the specified type. |
|
void |
launchDialog(DBEditorConfig config)
Launches a create or edit dialog appropriate to the given DBEditorConfig. |
|
java.lang.String[] |
listSupportedTypes()
Lists all the types that create/edit is supported for. |
|
protected void |
registerLibrary(java.lang.String dbObjectType,
java.lang.Class<? extends PanelLibrary> libClass)
|
|
protected boolean |
supportsObjectType(java.lang.String dbObjectType,
DBObjectProvider pro)
|
|
protected void |
unregisterLibrary(java.lang.String dbObjectType,
java.lang.Class<? extends PanelLibrary> libClass)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected BaseDBEditorFactory()
| Method Detail |
|---|
protected PanelLibrary getPanelLibrary(java.lang.String dbObjectType)
protected void initializeLibrary(PanelLibrary lib)
PanelLibrary.setDefaultPanels(oracle.ide.panels.Navigable[])
protected void registerLibrary(java.lang.String dbObjectType,
java.lang.Class<? extends PanelLibrary> libClass)
protected void unregisterLibrary(java.lang.String dbObjectType,
java.lang.Class<? extends PanelLibrary> libClass)
public java.lang.String[] listSupportedTypes()
DBEditorFactory
DBObject.getType()public boolean isCreateSupported(java.lang.String dbObjectType)
DBEditorFactory
dbObjectType - the type of object
DBObject.getType()
public boolean canCreateDBObject(Schema schema,
DBObjectProvider pro,
java.lang.String dbObjectType)
DBEditorFactory
schema - The schema to create the object inpro - The DBObjectProvider instance to create the object indbObjectType - The type of database object to createDBObjectProvider,
DBObject.getType()
protected boolean supportsObjectType(java.lang.String dbObjectType,
DBObjectProvider pro)
public final void launchDialog(DBEditorConfig config)
DBEditorFactory
config - the configuration for launching the dialog
public boolean canEditDBObject(DBObject obj,
DBObjectProvider pro)
DBEditorFactory
obj - The SchemaObject to be editedpro - The DBObjectProvider instance to create the object inpublic java.lang.String getCreateLabel(java.lang.String dbObjectType)
DBEditorFactory
dbObjectType - the type of object
DBObject.getType()
protected Namespace createNamespace(DBEditorConfig config,
java.util.Map<java.lang.String,java.lang.Class> verifiers)
protected boolean canUpdateObject(DBObject obj,
DBObjectProvider pro)
By default this just returns true - i.e. allowing the edit of any object canEditDBObject returns true for.
public static java.lang.String getTimestampKey(java.lang.String type)
public final boolean canCreateDBObject(DBObjectTypeNode node)
DBEditorFactory
canCreateDBObject in interface DBEditorFactory
@Deprecated
public final SchemaObject createDBObject(Schema schema,
DBObjectProvider pro,
java.lang.String dbObjectType)
DBEditorFactory
createDBObject in interface DBEditorFactoryschema - The schema to create the object inpro - The DBObjectProvider instance to create the object indbObjectType - The type of database object to create
DBObjectProvider,
DBObject.getType()@Deprecated public final SchemaObject createDBObject(DBObjectTypeNode node)
DBEditorFactory
createDBObject in interface DBEditorFactorynode - the node describing the schema, type and provider
@Deprecated
public final <T extends SystemObject> T createDBObject(Schema schema,
DBObjectProvider pro,
T template,
boolean commitToProvider)
DBEditorFactory
createDBObject in interface DBEditorFactoryschema - The schema to create the object inpro - The DBObjectProvider instance to create the object intemplate - An object to use as a template for the new objectcommitToProvider - whether the dialog should commit the change back
to the DBObjectProvider as well as the parent object. This allows a dialog
to be fired from within another editor context (e.g. the modeler) and the
edit absorbed into the edit of the parent (e.g. editing a Table, create a
new Index as part of the edit and commit the whole lot together later).
DBObjectProvider,
DBObject.getType()
@Deprecated
public final <T extends DBObject> T createDBObject(DBObjectProvider pro,
T template,
DBObject parent,
boolean commitToProvider)
DBEditorFactory
createDBObject in interface DBEditorFactorypro - The DBObjectProvider instance to create the object intemplate - the template for the new objectparent - the owning object of the object to be created (e.g. Table for
a new Index)commitToProvider - whether the dialog should commit the change back
to the DBObjectProvider as well as the parent object. This allows a dialog
to be fired from within another editor context (e.g. the modeler) and the
edit absorbed into the edit of the parent (e.g. editing a Table, create a
new Index as part of the edit and commit the whole lot together later).
DBObjectProvider,
DBObject.getType()
@Deprecated
protected final <T extends DBObject> T createDBObject(Schema schema,
DBObjectProvider pro,
T template,
DBObject parent,
boolean commitToProvider)
@Deprecated
public final DBObject createDBObject(DBObjectNode node,
java.lang.String dbObjectType)
DBEditorFactoryIndex.TYPE this will fire the new Index dialog using the
Table as a base.
createDBObject in interface DBEditorFactorynode - the node for the parent objectdbObjectType - the type of child object to be created
@Deprecated
public final boolean createDBObject(DBObject newObj,
DBObjectProvider pro)
DBEditorFactory
createDBObject in interface DBEditorFactorynewObj - the new object being createdpro - The DBObjectProvider instance to create the object in
DBObjectProvider
@Deprecated
public final boolean createDBObject(DBObject newObj,
DBObjectProvider pro,
boolean commitToProvider)
DBEditorFactory
createDBObject in interface DBEditorFactorynewObj - the new object being createdpro - The DBObjectProvider instance to create the object incommitToProvider - whether the dialog should commit the change back
to the DBObjectProvider as well as the parent object. This allows a dialog
to be fired from within another editor context (e.g. the modeler) and the
edit absorbed into the edit of the parent (e.g. editing a Table, create a
new Index as part of the edit and commit the whole lot together later).
DBObjectProvider
@Deprecated
public final DBObject createDBObject(Schema schema,
DBObjectProvider pro,
java.lang.String dbObjectType,
DBObject parent,
boolean commitToProvider)
DBEditorFactory
createDBObject in interface DBEditorFactoryschema - The schema to create the object inpro - The DBObjectProvider instance to create the object indbObjectType - The type of database object to createparent - the owning object of the object to be created (e.g. Table for
a new Index)commitToProvider - whether the dialog should commit the change back
to the DBObjectProvider as well as the parent object. This allows a dialog
to be fired from within another editor context (e.g. the modeler) and the
edit absorbed into the edit of the parent (e.g. editing a Table, create a
new Index as part of the edit and commit the whole lot together later).
DBObjectProvider,
DBObject.getType()
public final boolean canEditDBObject(SchemaObject obj,
DBObjectProvider pro)
canEditDBObject in interface DBEditorFactoryDBEditorFactory.canEditDBObject(DBObject,DBObjectProvider)@Deprecated public final boolean canEditDBObject(DBObjectNode node)
canEditDBObject in interface DBEditorFactory
@Deprecated
public final boolean editDBObject(DBObject obj,
DBObjectProvider pro)
DBEditorFactory
editDBObject in interface DBEditorFactoryobj - The SchemaObject to be editedpro - The DBObjectProvider instance to create the object in
@Deprecated
public final boolean editDBObject(SchemaObject obj,
DBObjectProvider pro)
editDBObject in interface DBEditorFactoryDBEditorFactory.editDBObject(DBObject,DBObjectProvider)
@Deprecated
public boolean editDBObject(DBObject obj,
DBObjectProvider pro,
boolean commitToProvider)
DBEditorFactory
editDBObject in interface DBEditorFactoryobj - The SchemaObject to be editedpro - The DBObjectProvider instance to create the object incommitToProvider - whether the dialog should commit the change back
to the DBObjectProvider as well as the parent object. This allows a dialog
to be fired from within another editor context (e.g. the modeler) and the
edit absorbed into the edit of the parent (e.g. editing a Table, edit an
Index as part of the table edit and commit the whole lot together later).
@Deprecated
public final boolean editDBObject(DBObject obj,
DBObjectProvider pro,
DBObject child)
DBEditorFactory
editDBObject in interface DBEditorFactoryobj - The SchemaObject to be editedpro - The DBObjectProvider instance to create the object inchild - a specific child object to edit
public final boolean editDBObject(DBObjectNode node)
DBEditorFactory
editDBObject in interface DBEditorFactorynode - the node representing the object to edit.
#launchDialog(DBEditorConfig)}
@Deprecated
public final boolean editDBObject(DBObject obj,
DBObjectProvider pro,
DBObject child,
boolean commitToProvider)
DBEditorFactory
editDBObject in interface DBEditorFactoryobj - The SchemaObject to be editedpro - The DBObjectProvider instance to create the object inchild - a specific child object to editcommitToProvider - whether the dialog should commit the change back
to the DBObjectProvider as well as the parent object. This allows a dialog
to be fired from within another editor context (e.g. the modeler) and the
edit absorbed into the edit of the parent (e.g. editing a Table, edit an
Index as part of the table edit and commit the whole lot together later).
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||