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

E13403-03

oracle.jdeveloper.db.navigator
Class DatabaseNavigatorHelper

java.lang.Object
  extended by oracle.jdeveloper.db.navigator.DatabaseNavigatorHelper

public class DatabaseNavigatorHelper
extends java.lang.Object

Set of helper methods for JDeveloper code to use to integrate with the Database Navigator. Using this wrapper makes absorbing API changes from SQLDeveloper easier to manage.

Since:
11

Constructor Summary
DatabaseNavigatorHelper()
           
 
Method Summary
static DatabaseNode findConnectionNode(Database db)
          Gets the node in the Database Navigator that respresents the given database.
static DatabaseNode findConnectionNode(java.lang.String storeName, java.lang.String connName)
          Finds the connection node in the database navigator for the given store name and connection name.
static DBObjectNode findObjectNode(Database db, SchemaObject obj)
          Gets the node in the Database Navigator for the given object within the given Database.
static DBObjectTypeNode findTypeNode(Database db, Schema schema, java.lang.String type)
          Gets the given type folder in the Database Navigator (e.g.
static NavigatorManager getDatabaseNavigatorManager()
          Gets the NavigatorManager for the Database Navigator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseNavigatorHelper

public DatabaseNavigatorHelper()
Method Detail

getDatabaseNavigatorManager

public static NavigatorManager getDatabaseNavigatorManager()
Gets the NavigatorManager for the Database Navigator. Use this method in JDeveloper rather than referencing sqldev code directly.

Returns:
the NavigatorManager for the Database Navigator

findConnectionNode

public static DatabaseNode findConnectionNode(java.lang.String storeName,
                                              java.lang.String connName)
Finds the connection node in the database navigator for the given store name and connection name.


findConnectionNode

public static DatabaseNode findConnectionNode(Database db)
Gets the node in the Database Navigator that respresents the given database.


findTypeNode

public static DBObjectTypeNode findTypeNode(Database db,
                                            Schema schema,
                                            java.lang.String type)
Gets the given type folder in the Database Navigator (e.g. the "Tables" node). Note this will open the connection node (potentially firing worksheets) if the node isn't already open.

Parameters:
db - the database (connection) to look under
schema - the schema
type - the object type of folder we're looking for
Returns:
the type folder (containing all the database objects of that type)

findObjectNode

public static DBObjectNode findObjectNode(Database db,
                                          SchemaObject obj)
Gets the node in the Database Navigator for the given object within the given Database. Note this will open the connection node (potentially firing worksheets) if the node isn't already open.

Parameters:
db - the database the object is from
obj - the object whose node is required
Returns:
the node for the given object

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

E13403-03

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