Package 

Interface IdentifiableEntity

  • All Implemented Interfaces:
    io.requery.Persistable

    
    public interface IdentifiableEntity<E extends IdentifiableEntity, T extends Object>
     implements Persistable
                        

    Defines the contract of a Persistable object can be identified using a key.

    • Method Summary

      Modifier and Type Method Description
      abstract T getKey() Gets the unique identifier of the entity.
      abstract LogicalCondition<out Expression<T>, out Object> getIdentityCondition(T key) Gets a LogicalCondition that can be used to match an entity by it's unique identifier.
      abstract LogicalCondition<out Expression<T>, out Object> getIdentityCondition() Gets a LogicalCondition that can be used to match this entity by it's unique identifier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getKey

        @NonNull() abstract T getKey()

        Gets the unique identifier of the entity.

      • getIdentityCondition

         abstract LogicalCondition<out Expression<T>, out Object> 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.
      • getIdentityCondition

         abstract LogicalCondition<out Expression<T>, out Object> getIdentityCondition()

        Gets a LogicalCondition that can be used to match this entity by it's unique identifier.