
uk.co.mruoc.promo.repository.account.mongo.AccountQueryBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of burger-promo Show documentation
Show all versions of burger-promo Show documentation
Burger promotion backend apis
The newest version!
package uk.co.mruoc.promo.repository.account.mongo;
import com.mongodb.BasicDBObject;
import org.bson.conversions.Bson;
import static com.mongodb.client.model.Filters.eq;
import static com.mongodb.client.model.Filters.gt;
public class AccountQueryBuilder {
public Bson toFindByIdQuery(String accountId) {
return eq("_id", accountId);
}
public Bson toFindByClaimedPromoQuery(String promoId) {
return gt(PromoClaimsFieldName.build(promoId), 0);
}
public Bson all() {
return new BasicDBObject();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy