public class DirtyableDBObjectMap extends Object implements Map, DirtyableDBObject
| Constructor and Description |
|---|
DirtyableDBObjectMap() |
DirtyableDBObjectMap(Map<String,Object> delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsField(String field) |
boolean |
containsKey(Object key) |
boolean |
containsKey(String key) |
boolean |
containsValue(Object value) |
Set |
entrySet() |
boolean |
equals(Object o) |
Object |
get(Object key) |
Object |
get(String key) |
Object |
getDelegate() |
Iterator<String> |
getDirtyKeys() |
Set |
getRemovedKeys() |
int |
hashCode() |
boolean |
isDirty() |
boolean |
isEmpty() |
boolean |
isPartialObject() |
boolean |
isPersisted(com.mongodb.DBCollection dbCollection) |
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.
|
Object |
put(Object key,
Object value) |
Object |
put(String key,
Object value) |
void |
putAll(org.bson.BSONObject bsonObject) |
void |
putAll(Map m) |
Object |
remove(Object key) |
Object |
removeField(String key) |
int |
size() |
Map |
toMap() |
Collection |
values() |
public void putAll(Map m)
public boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic Set keySet()
public Collection values()
public 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 Iterator<String> getDirtyKeys()
getDirtyKeys in interface DirtyableDBObjectpublic Object getDelegate()
getDelegate in interface DirtyableDBObjectpublic void markAsPartialObject()
markAsPartialObject in interface com.mongodb.DBObjectpublic boolean isPartialObject()
isPartialObject in interface com.mongodb.DBObjectpublic void putAll(org.bson.BSONObject bsonObject)
putAll in interface org.bson.BSONObjectpublic Map toMap()
toMap in interface org.bson.BSONObjectpublic Object removeField(String key)
removeField in interface org.bson.BSONObjectpublic boolean containsKey(String key)
containsKey in interface org.bson.BSONObjectpublic boolean containsField(String field)
containsField in interface org.bson.BSONObjectpublic Set getRemovedKeys()
public boolean equals(Object o)
Copyright © 2014. All Rights Reserved.