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

E13403-02

oracle.ide.db.transfer
Class TransferHelper

java.lang.Object
  extended by oracle.ide.db.transfer.TransferHelper

public class TransferHelper
extends java.lang.Object

Utilities to get the DDL necessary to update a provider schema so that it contains a given set of objects from another provider.


Constructor Summary
TransferHelper()
           
 
Method Summary
static java.lang.String getUpdateDDL(DBObjectProvider source, SchemaObject[] schemaObjects, DBObjectProvider target, Schema targetSchema)
          Update a target schema so that it contains the list of source objects.
static void replaceExistingIDs(DBObject temp, DBObject existing, java.util.Map<DBObjectID,DBObjectID> idMap)
          Replaces the IDs in the given object and all child objects with the existing object ids.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferHelper

public TransferHelper()
Method Detail

getUpdateDDL

public static java.lang.String getUpdateDDL(DBObjectProvider source,
                                            SchemaObject[] schemaObjects,
                                            DBObjectProvider target,
                                            Schema targetSchema)
                                     throws DBException
Update a target schema so that it contains the list of source objects. The DDL will update, delete and create objects as necessary.

Parameters:
source - object provider
schemaObjects - array of source objects
target - object provider
targetSchema - the target Schema
Returns:
The DDL to perform the update
Throws:
DBException

replaceExistingIDs

public static void replaceExistingIDs(DBObject temp,
                                      DBObject existing,
                                      java.util.Map<DBObjectID,DBObjectID> idMap)
Replaces the IDs in the given object and all child objects with the existing object ids. Note the changes in a Map.


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

E13403-02

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