com.mongodb
Class BasicDBList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Object>
              extended by org.bson.types.BasicBSONList
                  extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
BasicDBList()
           
 
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 org.bson.types.BasicBSONList
containsField, containsKey, get, keySet, put, put, putAll, putAll, removeField, toMap
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.bson.BSONObject
containsField, containsKey, get, keySet, put, putAll, putAll, removeField, toMap
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

BasicDBList

public BasicDBList()
Method Detail

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()