Interface DelayedProxy

All Known Implementing Classes:
DelayedArrayListProxy, DelayedHashSetProxy, DelayedLinkedHashSetProxy, DelayedLinkedListProxy, DelayedPriorityQueueProxy, DelayedTreeSetProxy, DelayedVectorProxy

public interface DelayedProxy
Implemented by proxy classes which are delay-load capable. Delay-load proxies are lazily loaded and provide some operations which allow manipulation of proxy without necessarily needing to load the proxied object.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close the broker that is used to service this proxy.
    Get the broker that is used to service this proxy.
    int
    Returns the expected field index even if this collection was detached.
    Returns a state manager that can service this proxy even if the collection was detached.
    Returns the state manager of the owning instance.
    boolean
    Returns whether the proxy is detached.
    boolean
    Returns whether the caller has direct-call access to the proxied object.
    void
    Load the proxy if it was delay-loaded.
    void
    setDirectAccess(boolean direct)
    Sets whether the caller has direct-call access to the proxied object.
  • Method Details

    • load

      void load()
      Load the proxy if it was delay-loaded.
    • isDirectAccess

      boolean isDirectAccess()
      Returns whether the caller has direct-call access to the proxied object. Direct access allows calls to be made on the object without triggering a load or proxy state tracking callbacks.
    • setDirectAccess

      void setDirectAccess(boolean direct)
      Sets whether the caller has direct-call access to the proxied object. Direct access allows calls to be made on the object without triggering a load or proxy state tracking callbacks.
    • getBroker

      Broker getBroker()
      Get the broker that is used to service this proxy.
    • closeBroker

      void closeBroker()
      Close the broker that is used to service this proxy.
    • getOwnerStateManager

      OpenJPAStateManager getOwnerStateManager()
      Returns the state manager of the owning instance.
    • getDelayedOwner

      OpenJPAStateManager getDelayedOwner()
      Returns a state manager that can service this proxy even if the collection was detached.
    • getDelayedField

      int getDelayedField()
      Returns the expected field index even if this collection was detached.
    • isDetached

      boolean isDetached()
      Returns whether the proxy is detached.