Package mungbean.query

Examples of mungbean.query.QueryBuilder


@RunWith(JDaveRunner.class)
public class UpdateRequestSpec extends Specification<DBTransaction<NoResponseExpected>> {
    public class WithValidRequest {
        public DBTransaction<NoResponseExpected> create() {
            QueryBuilder selector = new Query().field("foo").is("bar");
            Map<String, Object> document = map("zoo", 5);
            return new DBTransaction<NoResponseExpected>(new UpdateRequest<Map<String, Object>>("foozbar.foo", selector, new UpdateOptionsBuilder(), document, new MapBSONCoders(), new MapBSONCoders()), 126);
        }
View Full Code Here


    }
   
    public class WithStructuralUpdateRequest {
        @SuppressWarnings("unchecked")
        public DBTransaction<NoResponseExpected> create() {
            QueryBuilder selector = new Query().field("foo").is("bar");
      Map<String, Object> document = merge(map("zoo", "5"), map("list", list("1","2","3")));
            return new DBTransaction<NoResponseExpected>(new UpdateRequest<Map<String, Object>>("foozbar.foo", selector, new UpdateOptionsBuilder(), document, new MapBSONCoders(), new MapBSONCoders()), 126);
        }
View Full Code Here

TOP

Related Classes of mungbean.query.QueryBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.