Package org.mongolink.domain.query

Examples of org.mongolink.domain.query.QueryExecutor


        assertThat(restriction.get("$lt"), is((Object) date.getMillis()));
    }

    @Test
    public void canGiveLimitAndSkip() {
        final QueryExecutor executor = mock(QueryExecutor.class);
        final Criteria criteria = new Criteria(executor);
        criteria.limit(10);
        criteria.skip(3);

        criteria.list();
View Full Code Here


        assertThat(cursorParameter.getSkip(), is(3));
    }

    @Test
    public void canSort() {
        final QueryExecutor executor = mock(QueryExecutor.class);
        final Criteria criteria = new Criteria(executor);
        criteria.sort("field", Order.ASCENDING);

        criteria.list();
View Full Code Here

        return criteria;
    }

    @SuppressWarnings("unchecked")
    private QueryExecutor createExecutor(AggregateMapper<?> mapper) {
        return new QueryExecutor(db, mapper, unitOfWork);
    }
View Full Code Here

TOP

Related Classes of org.mongolink.domain.query.QueryExecutor

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.