public interface IdentifiableEntity<E extends IdentifiableEntity,T>
extends io.requery.Persistable
Persistable
object can be identified using a key.Modifier and Type | Method and 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.
|
@NonNull T getKey()
io.requery.query.LogicalCondition<? extends io.requery.query.Expression<T>,?> getIdentityCondition(T key)
LogicalCondition
that can be used to match an entity by it's unique identifier.key
- the unique identifier of the entity.io.requery.query.LogicalCondition<? extends io.requery.query.Expression<T>,?> getIdentityCondition()
LogicalCondition
that can be used to match this entity by it's unique identifier.