-
- 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. -
-
Method Detail
-
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.
-
-
-
-