Package org.bson

Examples of org.bson.BasicBSONObject.entrySet()


        if (!minObj.isEmpty()) {
          _cursor = _cursor.addSpecial("$min", new BasicDBObject(minObj));
        }
      }
      if (null != maxObj) {
        Iterator<Map.Entry<String, Object>> it = maxObj.entrySet().iterator();
        while (it.hasNext()) { // remove upper/lower limit objects because not sure about new mongo syntax
          Map.Entry<String, Object> keyVal = it.next();
          if (keyVal.getValue() instanceof org.bson.types.MaxKey) {
            it.remove();
          }
View Full Code Here


     */
    private Object deserializeMap(final Object value, final MapTypeInfo valueTypeInfo, final String ext) {
        BasicBSONObject b = (BasicBSONObject) value;
        TypeInfo mapValueTypeInfo = valueTypeInfo.getMapValueTypeInfo();

        for (Entry<String, Object> entry : b.entrySet()) {
            b.put(entry.getKey(), deserializeField(entry.getValue(), mapValueTypeInfo, ext));
        }

        return b.toMap();
    }
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.