com.mongodb
Class BasicDBList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Object>
org.bson.types.BasicBSONList
com.mongodb.BasicDBList
- All Implemented Interfaces:
- DBObject, Serializable, Cloneable, Iterable<Object>, Collection<Object>, List<Object>, RandomAccess, BSONObject
public class BasicDBList
- extends BasicBSONList
- implements DBObject
a basic implementation of bson list that is mongo specific
- Author:
- antoine
- See Also:
- Serialized Form
Method Summary |
Object |
copy()
|
boolean |
isPartialObject()
whether markAsPartialObject was ever called
only matters if you are going to upsert and do not want to risk losing fields |
void |
markAsPartialObject()
if this object was retrieved with only some fields (using a field filter)
this method will be called to mark it as such. |
String |
toString()
Returns a JSON serialization of this object |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
BasicDBList
public BasicDBList()
toString
public String toString()
- Returns a JSON serialization of this object
- Overrides:
toString
in class AbstractCollection<Object>
- Returns:
- JSON serialization
isPartialObject
public boolean isPartialObject()
- Description copied from interface:
DBObject
- whether markAsPartialObject was ever called
only matters if you are going to upsert and do not want to risk losing fields
- Specified by:
isPartialObject
in interface DBObject
markAsPartialObject
public void markAsPartialObject()
- Description copied from interface:
DBObject
- if this object was retrieved with only some fields (using a field filter)
this method will be called to mark it as such.
- Specified by:
markAsPartialObject
in interface DBObject
copy
public Object copy()