Skip navigation links

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

E13403-10


oracle.jdeveloper.offlinedb.transfer
Class OfflineTransferHelper

java.lang.Object
  extended by oracle.jdeveloper.offlinedb.transfer.OfflineTransferHelper


public final class OfflineTransferHelper
extends java.lang.Object

Utility methods for transferring to and from offline databases.

Since:
11.0

Method Summary
static boolean areCompatible(DBObjectProvider source, DBObjectProvider target)
          Return true is two databases are compatible.
static TransferDescriptor createImportDescriptor()
          Creates an empty TransferDescriptor for transferring from an online database to an offline database.
static java.lang.Class getDBClass(DBObjectProvider db1)
          What sort of database do we have? This method returns the Class of the database.
static boolean isCompatibleDatabase(DBObjectProvider db1, DBObjectProvider db2, boolean allowChange)
          Checks whether the given Database is compatible with the given offline provider.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

createImportDescriptor

public static final TransferDescriptor createImportDescriptor()
Creates an empty TransferDescriptor for transferring from an online database to an offline database.

isCompatibleDatabase

public static boolean isCompatibleDatabase(DBObjectProvider db1,
                                           DBObjectProvider db2,
                                           boolean allowChange)
Checks whether the given Database is compatible with the given offline provider. If this method returns false then we will not allow the upgrade of the offline database.

The boolean parameter governs whether the user gets a message dialog to inform them of a mismatch or allow them to change their offline database's properties (if necessary and possible). If true they will be shown dialogs to this effect, if false this method is just informative to the API user.

The transfer to offline uses this method (with allowChange) when initiating an import.

Parameters:
db1 - the proposed database to import from
db2 - the proposed provider to import to
allowChange - whether to notify the user of any problem and possibly let them correct it.
Returns:
true if the Database is compatible with the OfflineDBObjectProvider.

getDBClass

public static java.lang.Class getDBClass(DBObjectProvider db1)
What sort of database do we have? This method returns the Class of the database. If we have an Offline database, it returns the Class to the emulated database.

areCompatible

public static boolean areCompatible(DBObjectProvider source,
                                    DBObjectProvider target)
Return true is two databases are compatible. That is, it is possible to generate from the source to the target.

Skip navigation links

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

E13403-10


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