com.mongodb
Class BasicDBList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<java.lang.Object>
              extended by org.bson.types.BasicBSONList
                  extended by com.mongodb.BasicDBList
All Implemented Interfaces:
DBObject, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.Object>, java.util.Collection<java.lang.Object>, java.util.List<java.lang.Object>, java.util.RandomAccess, BSONObject

public class BasicDBList
extends BasicBSONList
implements DBObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
BasicDBList()
           
 
Method Summary
 boolean isPartialObject()
          whether markAsPartialObject was ever called only matters if you are going to upsert and dont' want to risk losing fields
 void markAsPartialObject()
          if this object was loaded with only some fields (using a field filter) this method will be called to notify
 java.lang.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, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll
 
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
 

Constructor Detail

BasicDBList

public BasicDBList()
Method Detail

toString

public java.lang.String toString()
Returns a JSON serialization of this object

Overrides:
toString in class java.util.AbstractCollection<java.lang.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 dont' want to risk losing fields

Specified by:
isPartialObject in interface DBObject

markAsPartialObject

public void markAsPartialObject()
Description copied from interface: DBObject
if this object was loaded with only some fields (using a field filter) this method will be called to notify

Specified by:
markAsPartialObject in interface DBObject