Interface LazyLoadingProxy


public interface LazyLoadingProxy
Allows direct interaction with the underlying LazyLoadingInterceptor.
Since:
1.5
Author:
Thomas Darimont, Christoph Strobl, Mark Paluch
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default Object
    Returns the raw source object that defines the reference.
    Initializes the proxy and returns the wrapped value.
    com.mongodb.DBRef
    Returns the DBRef represented by this LazyLoadingProxy, may be null.
  • Method Details

    • getTarget

      Object getTarget()
      Initializes the proxy and returns the wrapped value.
      Returns:
      Since:
      1.5
    • toDBRef

      @Nullable com.mongodb.DBRef toDBRef()
      Returns the DBRef represented by this LazyLoadingProxy, may be null.
      Returns:
      Since:
      1.5
    • getSource

      @Nullable default Object getSource()
      Returns the raw source object that defines the reference.
      Returns:
      can be null.
      Since:
      3.3