org.joda.beans.integrate.mongo
Class BeanMongoDBObject
java.lang.Object
org.joda.beans.integrate.mongo.BeanMongoDBObject
- All Implemented Interfaces:
- com.mongodb.DBObject
public class BeanMongoDBObject
- extends Object
- implements com.mongodb.DBObject
Allows a Joda-Bean to be passed directly to MongoDB.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanMongoDBObject
public BeanMongoDBObject(Bean bean)
- Creates an instance wrapping a bean.
- Parameters:
bean - the bean to wrap, not null
containsField
public boolean containsField(String name)
- Specified by:
containsField in interface com.mongodb.DBObject
containsKey
@Deprecated
public boolean containsKey(String name)
- Deprecated. Use containsField()
-
- Specified by:
containsKey in interface com.mongodb.DBObject
get
public Object get(String name)
- Specified by:
get in interface com.mongodb.DBObject
put
public Object put(String name,
Object value)
- Specified by:
put in interface com.mongodb.DBObject
putAll
public void putAll(com.mongodb.DBObject object)
- Specified by:
putAll in interface com.mongodb.DBObject
putAll
public void putAll(Map map)
- Specified by:
putAll in interface com.mongodb.DBObject
removeField
public Object removeField(String name)
- Specified by:
removeField in interface com.mongodb.DBObject
keySet
public Set<String> keySet()
- Specified by:
keySet in interface com.mongodb.DBObject
toMap
public Map toMap()
- Specified by:
toMap in interface com.mongodb.DBObject
isPartialObject
public boolean isPartialObject()
- Specified by:
isPartialObject in interface com.mongodb.DBObject
markAsPartialObject
public void markAsPartialObject()
- Specified by:
markAsPartialObject in interface com.mongodb.DBObject
Copyright © 2007–2014 Joda.org. All rights reserved.