Class SingleEntityViewLinkBuilder

Direct Known Subclasses:
SingleEntityViewLinkBuilder.ForEntityAssociation, SingleEntityViewLinkBuilder.ForEntityConfiguration

public abstract class SingleEntityViewLinkBuilder extends EntityViewLinkBuilderSupport<SingleEntityViewLinkBuilder>
Since:
3.0.0
Author:
Arne Vandamme
  • Method Details

    • updateView

      public SingleEntityViewLinkBuilder updateView()
      Returns:
      update view for the current instance
    • deleteView

      public SingleEntityViewLinkBuilder deleteView()
      Returns:
      delete view for the current instance
    • association

      public abstract EntityViewLinkBuilder association(String associationName)
      Create a link builder for an association. If there is no actual EntityAssociation available, the name will be interpreted as a regular EntityConfiguration instead and a link builder with a from parameter will be returned to the target entity configuration.
      Parameters:
      associationName - name of the association
      Returns:
      new link builder
    • association

      public final EntityViewLinkBuilder association(@NonNull @NonNull Class<?> targetType)
      Create a link builder for an association. Will use the first non-hidden association for the target type. If there is more than one, you should use association(String) instead.

      If there is no actual EntityAssociation available, the name will be interpreted as a regular EntityConfiguration instead and a link builder with a from parameter will be returned to the target entity configuration.

      Parameters:
      targetType - of the association
      Returns:
      new link builder
    • association

      public abstract EntityViewLinkBuilder association(@NonNull @NonNull EntityConfiguration targetConfiguration)
      Create a link builder for an association. Will use the first non-hidden association for the target configuration. If there is more than one, you should use association(String) instead.

      If there is no actual EntityAssociation available, the name will be interpreted as a regular EntityConfiguration instead and a link builder with a from parameter will be returned to the target entity configuration.

      Parameters:
      targetConfiguration - of the association
      Returns:
      new link builder
    • association

      public abstract SingleEntityViewLinkBuilder association(Object target)
      Create a link builder for an associated entity. Will use the first non-hidden association for the target type. If there is more than one, you should use association(String).forInstance(Object) instead.

      If there is no actual EntityAssociation available, the name will be interpreted as a regular EntityConfiguration instead and a link builder with a from parameter will be returned to the target entity configuration.

      Parameters:
      target - associated entity
      Returns:
      new link builder