Class DetachState.Entry

java.lang.Object
org.datanucleus.DetachState.Entry
Enclosing class:
DetachState

public class DetachState.Entry extends Object
  • Field Details

  • Constructor Details

    • Entry

      Entry(Object detachedPC)
  • Method Details

    • getDetachedCopyObject

      public Object getDetachedCopyObject()
    • checkCurrentState

      public boolean checkCurrentState()
      Determine whether the current state is "dominated" by any previous detach state for this entry, in which case we know that all the required fields will already be in the detached copy. (Dominance is transitive, so we can remove redundant entries)
      Returns:
      true if we can prove the current state is fully detached already
    • getCurrentState

      private List<String> getCurrentState()
    • dominates

      private boolean dominates(List<String> candidate, List<String> target)