Package org.mongojack.internal.query

Examples of org.mongojack.internal.query.CompoundQueryCondition


                serializedConditions.add(serializeQueryCondition(
                        serializerProvider, serializer, "$", item));
            }
            return serializedConditions;
        } else {
            CompoundQueryCondition compound = (CompoundQueryCondition) condition;
            if (!key.startsWith("$")) {
                serializer = findQuerySerializer(false, key,
                        serializerProvider, serializer);
            }
            return serializeQuery(serializerProvider, serializer,
                    compound.getQuery());
        }
    }
View Full Code Here


        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();
            }
            subQuery.put(op, value);
            return this;
View Full Code Here

                throw new IllegalStateException("Expecting collection for "
                        + op);
            }
            List<QueryCondition> conditions = new ArrayList<QueryCondition>();
            for (Query query : expressions) {
                conditions.add(new CompoundQueryCondition(query));
            }
            condition.addAll(conditions);
            return this;
        }
View Full Code Here

         *            The query to attempt to match against the elements of the
         *            array field
         * @return the query
         */
        public Q elemMatch(String field, Query query) {
            return put(field, "$elemMatch", new CompoundQueryCondition(query));
        }
View Full Code Here

TOP

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

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.