Skip navigation links

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

E52944-01


oracle.ide.db.transfer
Class TransferState

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


public final class TransferState
extends java.lang.Object

Object that holds the current state of a transfer process. The state for a given transfer is retrieved from the TransferDescriptor for that transfer. When the TransferManager completes a transfer process the state object is removed from the descriptor.


Constructor Summary
TransferState(TransferDescriptor td)
           

 

Method Summary
 void addMessage(java.lang.String message)
           
 void addStateListener(oracle.ideimpl.db.transfer.TransferStateListener l)
          Adds a listener that will be notified of changes to the state.
 void cancel()
          Note that we want to cancel this transfer.
 void checkNotCancelled()
          If this transfer has been marked for cancellation, cancel it
 void clearMessages()
           
 TransferTarget getActiveTarget()
          If the transfer is active this returns the target being transferred to.
 SystemObject[] getCopiedObjects()
           
 TransferDescriptor getDescriptor()
           
 SystemObject[] getExistingObjects()
           
 TransferPolicy getPolicy()
           
 ResultSet getResultSet()
           
 boolean hasFailed()
          Returns true if the transfer (or prepare) has failed.
 boolean isPrepDone()
           
protected  void notifyStateChange()
           
 boolean removeStateListener(oracle.ideimpl.db.transfer.TransferStateListener l)
           
 void setExistingObjects(SystemObject[] existing)
          Should only be used by the TransferManager and RefreshController.
 void setFailed(boolean failed)
          Notifies any state listeners that the transfer (or prepare) has failed.
 void setResultSet(ResultSet rs)
           

 

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

 

Constructor Detail

TransferState

public TransferState(TransferDescriptor td)

Method Detail

getDescriptor

public TransferDescriptor getDescriptor()

isPrepDone

public boolean isPrepDone()

getActiveTarget

public TransferTarget getActiveTarget()
If the transfer is active this returns the target being transferred to.

setFailed

public void setFailed(boolean failed)
Notifies any state listeners that the transfer (or prepare) has failed.

hasFailed

public boolean hasFailed()
Returns true if the transfer (or prepare) has failed.

cancel

public void cancel()
Note that we want to cancel this transfer. The cancellation might not be immediate, but will be checked at the next available opportunity.

checkNotCancelled

public void checkNotCancelled()
                       throws TransferCancelledException
If this transfer has been marked for cancellation, cancel it
Throws:
TransferCancelledException

getResultSet

public ResultSet getResultSet()

setResultSet

public void setResultSet(ResultSet rs)

getCopiedObjects

public SystemObject[] getCopiedObjects()

getExistingObjects

public SystemObject[] getExistingObjects()

setExistingObjects

public void setExistingObjects(SystemObject[] existing)
Should only be used by the TransferManager and RefreshController.

addMessage

public void addMessage(java.lang.String message)

clearMessages

public void clearMessages()

getPolicy

public TransferPolicy getPolicy()

addStateListener

public void addStateListener(oracle.ideimpl.db.transfer.TransferStateListener l)
Adds a listener that will be notified of changes to the state.

removeStateListener

public boolean removeStateListener(oracle.ideimpl.db.transfer.TransferStateListener l)

notifyStateChange

protected void notifyStateChange()

Skip navigation links

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

E52944-01


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