Class ExistsQueryExecutor<T>
java.lang.Object
software.xdev.spring.data.eclipse.store.repository.query.executors.ExistsQueryExecutor<T>
- Type Parameters:
T- Entity-Type to query
- All Implemented Interfaces:
QueryExecutor<T>
Queries entities and returns the result wrapped in an optional.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExistsQueryExecutor
-
-
Method Details
-
execute
public Boolean execute(Class<T> clazz, @Nullable EntityProvider<T, ?> entities, @Nullable Object[] values) Executes the created query over entities.The result is always a working copy of the entities.
- Specified by:
executein interfaceQueryExecutor<T>- Parameters:
clazz- of the entitiesentities- where the query is executed onvalues- for the query. These are values that might be compared to entities.- Returns:
- whether the entity exists
-