Interface DelegateProvider<T>

  • All Known Implementing Classes:
    LazyDelegateProvider, SimpleDelegateProvider

    public interface DelegateProvider<T>
    Interface for a provider of a delegate of type T, optionally providing the flag on the object been updated.
    Author:
    hmlnarik
    • Method Detail

      • getDelegate

        T getDelegate​(boolean isRead,
                      Enum<? extends EntityField<T>> field,
                      Object... parameters)
        Returns a delegate for and entity for an operation on a field.
        Parameters:
        isRead - true when the delegate requested for a read operation, false otherwise
        field - Identification of the field this delegates operates on. While this parameter can be any object including null, if it is a known field, then it is guaranteed to be one of the EntityFields enumerated in one of the Map*EntityFields enum.
        Returns:
      • isUpdated

        default boolean isUpdated()