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

E17493-01

oracle.jdeveloper.db.model
Class AppDBDropHelper

java.lang.Object
  extended by oracle.jdeveloper.db.model.AppDBDropHelper

public class AppDBDropHelper
extends java.lang.Object

Some utility methods useful for dealing with DnD of nodes from the Resource Palette or Application Resources.

Since:
11

Method Summary
static Database ensureConnectionInApp(DBObjectProviderNode node, Context ideContext)
          Tests if the given node is in the current Application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

ensureConnectionInApp

public static Database ensureConnectionInApp(DBObjectProviderNode node,
                                             Context ideContext)
Tests if the given node is in the current Application. If it is from a different application then a ConnectionException is thrown with appropriate message. If it is from the Resource Palette an attempt will be made to copy the node's corresponding connection to the current Application's Resources. If this fails a ConnectionException will be thrown.

Parameters:
node - the node to ensure the connection for
ideContext - contains the current active Application (Workspace)

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

E17493-01

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