org.iternine.jeppetto.dao.mongodb.enhance
Class DirtyableDBObjectSet
java.lang.Object
org.iternine.jeppetto.dao.mongodb.enhance.DirtyableDBObjectList
org.iternine.jeppetto.dao.mongodb.enhance.DirtyableDBObjectSet
- All Implemented Interfaces:
- com.mongodb.DBObject, Iterable, Collection, List, Set, org.bson.BSONObject, DirtyableDBObject
public class DirtyableDBObjectSet
- extends DirtyableDBObjectList
- implements Set
A DirtyableDBObjectSet uses two underlying collection objects to manage the semantics of this class. The
first is a Set object which is used to ensure Set semantics are followed, the second is an underlying List,
provided by the base class, to ensure ordering and provide the lookup by index methods that DBObject
implementations require.
| Methods inherited from class org.iternine.jeppetto.dao.mongodb.enhance.DirtyableDBObjectList |
add, addAll, containsField, containsKey, get, get, getDirtyKeys, indexOf, isDirty, isPartialObject, isPersisted, isRewrite, keySet, lastIndexOf, listIterator, listIterator, markAsPartialObject, markPersisted, put, putAll, putAll, remove, set, subList, toMap |
DirtyableDBObjectSet
public DirtyableDBObjectSet()
DirtyableDBObjectSet
public DirtyableDBObjectSet(Set delegate,
boolean modifiableDelegate)
- Parameters:
delegate - Set instance this object should delegate responsibility tomodifiableDelegate - true if access is possible to the delegate by non-Jeppetto code
size
public int size()
- Specified by:
size in interface Collection- Specified by:
size in interface List- Specified by:
size in interface Set- Overrides:
size in class DirtyableDBObjectList
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface Collection- Specified by:
isEmpty in interface List- Specified by:
isEmpty in interface Set- Overrides:
isEmpty in class DirtyableDBObjectList
contains
public boolean contains(Object element)
- Specified by:
contains in interface Collection- Specified by:
contains in interface List- Specified by:
contains in interface Set- Overrides:
contains in class DirtyableDBObjectList
iterator
public Iterator iterator()
- Specified by:
iterator in interface Iterable- Specified by:
iterator in interface Collection- Specified by:
iterator in interface List- Specified by:
iterator in interface Set- Overrides:
iterator in class DirtyableDBObjectList
toArray
public Object[] toArray()
- Specified by:
toArray in interface Collection- Specified by:
toArray in interface List- Specified by:
toArray in interface Set- Overrides:
toArray in class DirtyableDBObjectList
toArray
public Object[] toArray(Object[] objects)
- Specified by:
toArray in interface Collection- Specified by:
toArray in interface List- Specified by:
toArray in interface Set- Overrides:
toArray in class DirtyableDBObjectList
add
public boolean add(Object element)
- Specified by:
add in interface Collection- Specified by:
add in interface List- Specified by:
add in interface Set- Overrides:
add in class DirtyableDBObjectList
remove
public boolean remove(Object element)
- Specified by:
remove in interface Collection- Specified by:
remove in interface List- Specified by:
remove in interface Set- Overrides:
remove in class DirtyableDBObjectList
containsAll
public boolean containsAll(Collection collection)
- Specified by:
containsAll in interface Collection- Specified by:
containsAll in interface List- Specified by:
containsAll in interface Set- Overrides:
containsAll in class DirtyableDBObjectList
addAll
public boolean addAll(Collection elements)
- Specified by:
addAll in interface Collection- Specified by:
addAll in interface List- Specified by:
addAll in interface Set- Overrides:
addAll in class DirtyableDBObjectList
retainAll
public boolean retainAll(Collection elements)
- Specified by:
retainAll in interface Collection- Specified by:
retainAll in interface List- Specified by:
retainAll in interface Set- Overrides:
retainAll in class DirtyableDBObjectList
removeAll
public boolean removeAll(Collection elements)
- Specified by:
removeAll in interface Collection- Specified by:
removeAll in interface List- Specified by:
removeAll in interface Set- Overrides:
removeAll in class DirtyableDBObjectList
clear
public void clear()
- Specified by:
clear in interface Collection- Specified by:
clear in interface List- Specified by:
clear in interface Set- Overrides:
clear in class DirtyableDBObjectList
getDelegate
public Object getDelegate()
- Specified by:
getDelegate in interface DirtyableDBObject- Overrides:
getDelegate in class DirtyableDBObjectList
- Returns:
- The object this DirtyableDBObject is delegating to, or null if it is managing everything itself
removeField
public Object removeField(String s)
- Specified by:
removeField in interface org.bson.BSONObject- Overrides:
removeField in class DirtyableDBObjectList
getDecodingTransformer
public org.bson.Transformer getDecodingTransformer()
equals
public boolean equals(Object o)
- Specified by:
equals in interface Collection- Specified by:
equals in interface List- Specified by:
equals in interface Set- Overrides:
equals in class DirtyableDBObjectList
hashCode
public int hashCode()
- Specified by:
hashCode in interface Collection- Specified by:
hashCode in interface List- Specified by:
hashCode in interface Set- Overrides:
hashCode in class DirtyableDBObjectList
Copyright © 2012. All Rights Reserved.