Package org.mongojack.internal.query

Examples of org.mongojack.internal.query.QueryCondition


            SerializerProvider serializerProvider, JsonSerializer serializer,
            DBQuery.Query query) {
        DBObject serializedQuery = new BasicDBObject();
        for (Map.Entry<String, QueryCondition> field : query.conditions()) {
            String key = field.getKey();
            QueryCondition condition = field.getValue();
            serializedQuery.put(
                    key,
                    serializeQueryCondition(serializerProvider, serializer,
                            key, condition));
        }
View Full Code Here


        }

        @Override
        protected Query put(String field, String op, QueryCondition value) {
            Query subQuery;
            QueryCondition saved = query.get(field);
            if (!(saved instanceof CompoundQueryCondition)) {
                subQuery = new Query();
                query.put(field, new CompoundQueryCondition(subQuery));
            } else {
                subQuery = ((CompoundQueryCondition) saved).getQuery();
View Full Code Here

        }

        @Override
        protected Query putGroup(String op, Query... expressions) {
            CollectionQueryCondition condition;
            QueryCondition existing = query.get(op);
            if (existing == null) {
                condition = new CollectionQueryCondition();
                query.put(op, condition);
            } else if (existing instanceof CollectionQueryCondition) {
                condition = (CollectionQueryCondition) existing;
View Full Code Here

TOP

Related Classes of org.mongojack.internal.query.QueryCondition

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.