Interface Entity

All Superinterfaces:
Comparable<Entity>, WithId

public interface Entity extends Comparable<Entity>, WithId
Represents an entity.
Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Default implementation of compareTo by id.
    boolean
    Returns true, if the entity is marked as deleted, otherwise false
    default boolean
    Returns true, if the entity is not marked as deleted, otherwise false

    Methods inherited from interface com.novomind.ecom.common.api.persistence.WithId

    getId
  • Method Details

    • isDeleted

      boolean isDeleted()
      Returns true, if the entity is marked as deleted, otherwise false
      Returns:
      true, if the entity is deleted
      Since:
      1.0
    • isNotDeleted

      default boolean isNotDeleted()
      Returns true, if the entity is not marked as deleted, otherwise false
      Returns:
      true, if the entity is not deleted
      Since:
      1.9
    • compareTo

      default int compareTo(Entity e)
      Default implementation of compareTo by id.
      Specified by:
      compareTo in interface Comparable<Entity>
      Since:
      1.2