public final class TransferManager
extends java.lang.Object
The source can be:
TransferDescriptor to describe the transfer.
Then invoke #prepareAndTransfer(transferDescriptor)
The transfer descriptor describes:
| Constructor and Description |
|---|
TransferManager()
Deprecated.
use
getInstance() |
| Modifier and Type | Method and Description |
|---|---|
TransferDescriptor |
createDescriptor(DBObjectProvider source,
DBObjectProvider target)
Creates a TransferDescriptor that will transfer objects from the given
source provider to the given target provider.
|
TransferDescriptor |
createDescriptor(java.lang.String sourceProviderType,
java.lang.String transferTargetID)
Creates a TransferDescriptor that will transfer objects from the given
source provider type to the given transfer target (identified by its
transfer target id).
|
static TransferManager |
getInstance()
Gets the TransferManager that can be used to create, prepare and transfer
descriptors.
|
void |
prepare(TransferDescriptor td)
Prepare to transfer objects.
|
SystemObject[] |
prepareAndTransfer(TransferDescriptor td)
Transfer the objects as described by the TransferDescriptor.
|
SystemObject[] |
transfer(TransferDescriptor td)
Do the transfers described by the TransferDescriptor.
|
@Deprecated public TransferManager()
getInstance()public static TransferManager getInstance()
public TransferDescriptor createDescriptor(DBObjectProvider source, DBObjectProvider target)
source - the source providertarget - the target providerpublic TransferDescriptor createDescriptor(java.lang.String sourceProviderType, java.lang.String transferTargetID)
sourceProviderType - the source provider type (e.g. "db" or
"offlinedb".transferTargetID - the id of the target for transfer.public void prepare(TransferDescriptor td) throws TransferFailedException
td - TransferFailedExceptionpublic SystemObject[] transfer(TransferDescriptor td) throws TransferFailedException
TransferCancelledException - if the transfer is cancelledTransferFailedException - if the transfer failsprepare(oracle.ide.db.transfer.TransferDescriptor)public SystemObject[] prepareAndTransfer(TransferDescriptor td) throws TransferFailedException
td - the descriptor for the transferTransferFailedException - if the transfer failedTransferCancelledException - if the transfer was cancelled