use of jakarta.nosql.document.DocumentDeleteQueryParams in project jnosql-diana by eclipse.
the class DeleteQueryParser method apply.
@Override
public DocumentDeleteQueryParams apply(DeleteQuery deleteQuery, DocumentObserverParser observer) {
Objects.requireNonNull(deleteQuery, "deleteQuery is required");
Objects.requireNonNull(observer, "observer is required");
Params params = Params.newParams();
DocumentDeleteQuery query = getQuery(params, observer, deleteQuery);
return new DefaultDocumentDeleteQueryParams(query, params);
}
use of jakarta.nosql.document.DocumentDeleteQueryParams in project jnosql-diana by eclipse.
the class BaseDocumentRepository method getDeleteQuery.
protected DocumentDeleteQuery getDeleteQuery(Method method, Object[] args) {
DeleteMethodProvider methodProvider = DeleteMethodProvider.get();
DeleteQuery deleteQuery = methodProvider.apply(method, getClassMapping().getName());
DeleteQueryConverter converter = ServiceLoaderProvider.get(DeleteQueryConverter.class);
DocumentDeleteQueryParams queryParams = converter.apply(deleteQuery, getParser());
DocumentDeleteQuery query = queryParams.getQuery();
Params params = queryParams.getParams();
getParamsBinder().bind(params, args, method);
return query;
}
Aggregations