Interface IdentifiableEntity<E extends IdentifiableEntity,​T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      io.requery.query.LogicalCondition<? extends io.requery.query.Expression<T>,​?> getIdentityCondition()
      Gets a LogicalCondition that can be used to match this entity by it's unique identifier.
      io.requery.query.LogicalCondition<? extends io.requery.query.Expression<T>,​?> getIdentityCondition​(T key)
      Gets a LogicalCondition that can be used to match an entity by it's unique identifier.
      T getKey()
      Gets the unique identifier of the entity.
    • Method Detail

      • getKey

        @NonNull
        T getKey()
        Gets the unique identifier of the entity.
        Returns:
        null or the unique identifier.
      • getIdentityCondition

        io.requery.query.LogicalCondition<? extends io.requery.query.Expression<T>,​?> getIdentityCondition​(T key)
        Gets a LogicalCondition that can be used to match an entity by it's unique identifier.
        Parameters:
        key - the unique identifier of the entity.
        Returns:
        the logical condition.
      • getIdentityCondition

        io.requery.query.LogicalCondition<? extends io.requery.query.Expression<T>,​?> getIdentityCondition()
        Gets a LogicalCondition that can be used to match this entity by it's unique identifier.
        Returns:
        the logical condition.