Package org.jongo.query

Examples of org.jongo.query.Query.toDBObject()


        Jongo jongo = new Jongo(getDatabase());

        Query query = jongo.createQuery("{test:1}");

        assertThat(query.toDBObject().get("test")).isEqualTo(1);
    }

    @Test
    public void canGetMapper() throws Exception {
View Full Code Here


        return with(modifier, new Object[0]);
    }

    public WriteResult with(String modifier, Object... parameters) {
        Query updateQuery = queryFactory.createQuery(modifier, parameters);
        return collection.update(this.query.toDBObject(), updateQuery.toDBObject(), upsert, multi, writeConcern);
    }

    public WriteResult with(Object pojo) {

        DBObject updateDbo = queryFactory.createQuery("{$set:#}", pojo).toDBObject();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.