Class DetachState


public class DetachState extends FetchPlanState
Holder for the detachment state control for the detachment process.
  • Field Details

    • detachedObjectById

      private Map<Object,DetachState.Entry> detachedObjectById
      a map for the current execution of detachCopy with detached objects keyed by the object id
    • api

      private ApiAdapter api
      Adapter for the API being used.
  • Constructor Details

    • DetachState

      public DetachState(ApiAdapter api)
      Constructor.
      Parameters:
      api - The API adapter
  • Method Details

    • setDetachedCopyEntry

      public void setDetachedCopyEntry(Object pc, Object detachedPC)
      Set to the current state a detached copy object
      Parameters:
      pc - The persistable object
      detachedPC - the Detached persistable object
    • getDetachedCopyEntry

      public DetachState.Entry getDetachedCopyEntry(Object pc)
      Get any existing detached copy object for the passed in persistable
      Parameters:
      pc - the persistable object
      Returns:
      the Detached PC
    • getKey

      private Object getKey(Object pc)