public class DirtyableDBObjectMap extends java.lang.Object implements java.util.Map, DirtyableDBObject
Map<String, Object> due to the way
MongoDB expects the keys to be expressed. ClassCastExceptions may occur if this is violated.| Constructor and Description |
|---|
DirtyableDBObjectMap() |
DirtyableDBObjectMap(java.util.Map<java.lang.String,java.lang.Object> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsField(java.lang.String field) |
boolean |
containsKey(java.lang.Object key) |
boolean |
containsKey(java.lang.String key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set |
entrySet() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
get(java.lang.Object key) |
java.lang.Object |
get(java.lang.String key) |
java.lang.Object |
getDelegate() |
java.util.Iterator<java.lang.String> |
getDirtyKeys() |
java.util.Set |
getRemovedKeys() |
int |
hashCode() |
boolean |
isDirty() |
boolean |
isEmpty() |
boolean |
isPartialObject() |
boolean |
isPersisted(com.mongodb.DBCollection dbCollection) |
java.util.Set |
keySet() |
void |
markAsPartialObject() |
void |
markPersisted(com.mongodb.DBCollection dbCollection)
Consider the current state of the object to be in sync with the persisted state.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value) |
void |
putAll(org.bson.BSONObject bsonObject) |
void |
putAll(java.util.Map m) |
java.lang.Object |
remove(java.lang.Object key) |
java.lang.Object |
removeField(java.lang.String key) |
int |
size() |
java.util.Map |
toMap() |
java.util.Collection |
values() |
public DirtyableDBObjectMap()
public DirtyableDBObjectMap(java.util.Map<java.lang.String,java.lang.Object> delegate)
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mappublic void putAll(java.util.Map m)
putAll in interface java.util.MapputAll in interface org.bson.BSONObjectpublic void clear()
clear in interface java.util.Mappublic int size()
size in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.MapkeySet in interface org.bson.BSONObjectpublic java.util.Collection values()
values in interface java.util.Mappublic java.util.Set entrySet()
entrySet in interface java.util.Mappublic boolean isDirty()
isDirty in interface DirtyableDBObjectpublic void markPersisted(com.mongodb.DBCollection dbCollection)
DirtyableDBObjectmarkPersisted in interface DirtyableDBObjectpublic boolean isPersisted(com.mongodb.DBCollection dbCollection)
isPersisted in interface DirtyableDBObjectpublic java.util.Iterator<java.lang.String> getDirtyKeys()
getDirtyKeys in interface DirtyableDBObjectpublic java.lang.Object getDelegate()
getDelegate in interface DirtyableDBObjectpublic void markAsPartialObject()
markAsPartialObject in interface com.mongodb.DBObjectpublic boolean isPartialObject()
isPartialObject in interface com.mongodb.DBObjectpublic java.lang.Object put(java.lang.String key,
java.lang.Object value)
put in interface org.bson.BSONObjectpublic void putAll(org.bson.BSONObject bsonObject)
putAll in interface org.bson.BSONObjectpublic java.lang.Object get(java.lang.String key)
get in interface org.bson.BSONObjectpublic java.util.Map toMap()
toMap in interface org.bson.BSONObjectpublic java.lang.Object removeField(java.lang.String key)
removeField in interface org.bson.BSONObjectpublic boolean containsKey(java.lang.String key)
containsKey in interface org.bson.BSONObjectpublic boolean containsField(java.lang.String field)
containsField in interface org.bson.BSONObjectpublic java.util.Set getRemovedKeys()
public boolean equals(java.lang.Object o)
equals in interface java.util.Mapequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.MaphashCode in class java.lang.ObjectCopyright © 2017. All Rights Reserved.