due to the way
MongoDB expects the keys to be expressed. ClassCastExceptions may occur if this is violated.
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirtyableDBObjectMap
public DirtyableDBObjectMap()
DirtyableDBObjectMap
public DirtyableDBObjectMap(Map<String,Object> delegate)
put
public Object put(Object key,
Object value)
- Specified by:
put in interface Map
remove
public Object remove(Object key)
- Specified by:
remove in interface Map
putAll
public void putAll(Map m)
- Specified by:
putAll in interface Map- Specified by:
putAll in interface org.bson.BSONObject
clear
public void clear()
- Specified by:
clear in interface Map
size
public int size()
- Specified by:
size in interface Map
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Map
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey in interface Map
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue in interface Map
get
public Object get(Object key)
- Specified by:
get in interface Map
keySet
public Set keySet()
- Specified by:
keySet in interface Map- Specified by:
keySet in interface org.bson.BSONObject
values
public Collection values()
- Specified by:
values in interface Map
entrySet
public Set entrySet()
- Specified by:
entrySet in interface Map
isDirty
public boolean isDirty()
- Specified by:
isDirty in interface DirtyableDBObject
- Returns:
- true if this object is dirtied from it's persisted state
markPersisted
public void markPersisted(com.mongodb.DBCollection dbCollection)
- Description copied from interface:
DirtyableDBObject
- Consider the current state of the object to be in sync with the persisted state.
- Specified by:
markPersisted in interface DirtyableDBObject
isPersisted
public boolean isPersisted(com.mongodb.DBCollection dbCollection)
- Specified by:
isPersisted in interface DirtyableDBObject
- Returns:
- true if this object has a representation in the underlying store.
getDirtyKeys
public Iterator<String> getDirtyKeys()
- Specified by:
getDirtyKeys in interface DirtyableDBObject
- Returns:
- Set of keys corresponding to changed fields in this DBObject
markAsPartialObject
public void markAsPartialObject()
- Specified by:
markAsPartialObject in interface com.mongodb.DBObject
isPartialObject
public boolean isPartialObject()
- Specified by:
isPartialObject in interface com.mongodb.DBObject
put
public Object put(String key,
Object value)
- Specified by:
put in interface org.bson.BSONObject
putAll
public void putAll(org.bson.BSONObject bsonObject)
- Specified by:
putAll in interface org.bson.BSONObject
get
public Object get(String key)
- Specified by:
get in interface org.bson.BSONObject
toMap
public Map toMap()
- Specified by:
toMap in interface org.bson.BSONObject
removeField
public Object removeField(String key)
- Specified by:
removeField in interface org.bson.BSONObject
containsKey
public boolean containsKey(String key)
- Specified by:
containsKey in interface org.bson.BSONObject
containsField
public boolean containsField(String field)
- Specified by:
containsField in interface org.bson.BSONObject
getRemovedKeys
public Set getRemovedKeys()
Copyright © 2012. All Rights Reserved.