Package com.helixframework.db.repository
Interface GenericReadonlyRepository<T,K>
public interface GenericReadonlyRepository<T,K>
-
Method Summary
-
Method Details
-
query
Executes a query based on the given query specification.- Parameters:
spec- the query specification to execute- Returns:
- a list of entities that match the query
-
find
Finds an entity by its key.- Parameters:
key- the key of the entity- Returns:
- an Optional containing the entity if found, or an empty Optional if not found
-
exists
Determines if an entity exists for the given key.- Parameters:
key- the entity key
-