org.joda.beans.integrate.mongo
Class BeanMongoDBObject

java.lang.Object
  extended by 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.


Constructor Summary
BeanMongoDBObject(Bean bean)
          Creates an instance wrapping a bean.
 
Method Summary
 boolean containsField(String name)
           
 boolean containsKey(String name)
          Deprecated. Use containsField()
 Object get(String name)
           
 boolean isPartialObject()
           
 Set<String> keySet()
           
 void markAsPartialObject()
           
 Object put(String name, Object value)
           
 void putAll(com.mongodb.DBObject object)
           
 void putAll(Map map)
           
 Object removeField(String name)
           
 Map toMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanMongoDBObject

public BeanMongoDBObject(Bean bean)
Creates an instance wrapping a bean.

Parameters:
bean - the bean to wrap, not null
Method Detail

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–2013 Joda.org. All rights reserved.