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

E17493-01

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 Difference filterAutoGenerateSequenceColumnDifferences(DBObjectProvider source, DBObjectProvider target, Difference ufdiff)
          Filters the given Difference of objects that are being transferred from source to target so that any differences are only included if they are supported, alterable properties in the target, and are not default values.
static Difference filterUnsupportedDifferences(DBObjectProvider source, DBObjectProvider target, Difference ufdiff)
          Filters the given Difference of objects that are being transferred from source to target so that any differences are only included if they are supported, alterable properties in the target, and are not default values.
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

filterUnsupportedDifferences

public static Difference filterUnsupportedDifferences(DBObjectProvider source,
                                                      DBObjectProvider target,
                                                      Difference ufdiff)
Filters the given Difference of objects that are being transferred from source to target so that any differences are only included if they are supported, alterable properties in the target, and are not default values.

Parameters:
source - the source provider for the transfer
target - the target provider for the transfer
ufdiff - the unfiltered difference
Returns:
a copy of the difference with any unsupported or unalterable property manually set as isSame() so that it will be ignored by reconcile or the ddl generator.

filterAutoGenerateSequenceColumnDifferences

public static Difference filterAutoGenerateSequenceColumnDifferences(DBObjectProvider source,
                                                                     DBObjectProvider target,
                                                                     Difference ufdiff)
Filters the given Difference of objects that are being transferred from source to target so that any differences are only included if they are supported, alterable properties in the target, and are not default values. Also filter auto generated sequence column properties.

Parameters:
source - the source provider for the transfer
target - the target provider for the transfer
ufdiff - the unfiltered difference
Returns:
a copy of the difference with any unsupported or unalterable property manually set as isSame() so that it will be ignored by reconcile or the ddl generator.

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
11g Release 2 (11.1.2.0.0)

E17493-01

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