Search in sources :

Example 1 with ColumnDeleteQueryParams

use of jakarta.nosql.column.ColumnDeleteQueryParams in project jnosql-diana by eclipse.

the class BaseColumnRepository method getDeleteQuery.

protected ColumnDeleteQuery getDeleteQuery(Method method, Object[] args) {
    DeleteMethodProvider deleteMethodFactory = DeleteMethodProvider.get();
    DeleteQuery deleteQuery = deleteMethodFactory.apply(method, getClassMapping().getName());
    ColumnDeleteQueryParams queryParams = DELETE_CONVERTER.apply(deleteQuery, getParser());
    ColumnDeleteQuery query = queryParams.getQuery();
    Params params = queryParams.getParams();
    getParamsBinder().bind(params, args, method);
    return query;
}
Also used : DeleteMethodProvider(org.eclipse.jnosql.communication.query.method.DeleteMethodProvider) ColumnQueryParams(jakarta.nosql.column.ColumnQueryParams) ColumnDeleteQueryParams(jakarta.nosql.column.ColumnDeleteQueryParams) Params(jakarta.nosql.Params) ColumnDeleteQuery(jakarta.nosql.column.ColumnDeleteQuery) DeleteQuery(jakarta.nosql.query.DeleteQuery) ColumnDeleteQueryParams(jakarta.nosql.column.ColumnDeleteQueryParams) ColumnDeleteQuery(jakarta.nosql.column.ColumnDeleteQuery)

Example 2 with ColumnDeleteQueryParams

use of jakarta.nosql.column.ColumnDeleteQueryParams in project jnosql-diana by eclipse.

the class DeleteQueryParser method apply.

@Override
public ColumnDeleteQueryParams apply(DeleteQuery deleteQuery, ColumnObserverParser columnObserverParser) {
    requireNonNull(deleteQuery, "deleteQuery is required");
    requireNonNull(columnObserverParser, "columnObserverParser is required");
    Params params = Params.newParams();
    ColumnDeleteQuery query = getQuery(params, columnObserverParser, deleteQuery);
    return new DefaultColumnDeleteQueryParams(query, params);
}
Also used : ColumnDeleteQueryParams(jakarta.nosql.column.ColumnDeleteQueryParams) Params(jakarta.nosql.Params) ColumnDeleteQuery(jakarta.nosql.column.ColumnDeleteQuery)

Aggregations

Params (jakarta.nosql.Params)2 ColumnDeleteQuery (jakarta.nosql.column.ColumnDeleteQuery)2 ColumnDeleteQueryParams (jakarta.nosql.column.ColumnDeleteQueryParams)2 ColumnQueryParams (jakarta.nosql.column.ColumnQueryParams)1 DeleteQuery (jakarta.nosql.query.DeleteQuery)1 DeleteMethodProvider (org.eclipse.jnosql.communication.query.method.DeleteMethodProvider)1