org.iternine.jeppetto.dao.mongodb.enhance
Class DirtyableDBObjectSet

java.lang.Object
  extended by org.iternine.jeppetto.dao.mongodb.enhance.DirtyableDBObjectSet
All Implemented Interfaces:
com.mongodb.DBObject, Iterable, Collection, Set, org.bson.BSONObject, DirtyableDBObject

public class DirtyableDBObjectSet
extends Object
implements Set, DirtyableDBObject


Constructor Summary
DirtyableDBObjectSet()
           
DirtyableDBObjectSet(Set delegate)
           
 
Method Summary
 boolean add(Object o)
           
 boolean addAll(Collection collection)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection collection)
           
 boolean containsField(String s)
           
 boolean containsKey(String s)
           
 Object get(String s)
           
 boolean isDirty()
           
 boolean isEmpty()
           
 boolean isPartialObject()
           
 boolean isPersisted()
           
 Iterator iterator()
           
 Set<String> keySet()
           
 void markAsPartialObject()
           
 void markPersisted()
          Consider the current state of the object to be in sync with the persisted state.
 Object put(String s, Object v)
           
 void putAll(org.bson.BSONObject o)
           
 void putAll(Map m)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection collection)
           
 Object removeField(String s)
           
 boolean retainAll(Collection collection)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] objects)
           
 Map toMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Constructor Detail

DirtyableDBObjectSet

public DirtyableDBObjectSet()

DirtyableDBObjectSet

public DirtyableDBObjectSet(Set delegate)
Method Detail

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface Set

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection
Specified by:
isEmpty in interface Set

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection
Specified by:
contains in interface Set

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in interface Set

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection
Specified by:
toArray in interface Set

toArray

public Object[] toArray(Object[] objects)
Specified by:
toArray in interface Collection
Specified by:
toArray in interface Set

add

public boolean add(Object o)
Specified by:
add in interface Collection
Specified by:
add in interface Set

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection
Specified by:
remove in interface Set

containsAll

public boolean containsAll(Collection collection)
Specified by:
containsAll in interface Collection
Specified by:
containsAll in interface Set

addAll

public boolean addAll(Collection collection)
Specified by:
addAll in interface Collection
Specified by:
addAll in interface Set

retainAll

public boolean retainAll(Collection collection)
Specified by:
retainAll in interface Collection
Specified by:
retainAll in interface Set

removeAll

public boolean removeAll(Collection collection)
Specified by:
removeAll in interface Collection
Specified by:
removeAll in interface Set

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface Set

isDirty

public boolean isDirty()
Specified by:
isDirty in interface DirtyableDBObject
Returns:
true if this object is dirtied from it's persisted state

markPersisted

public void markPersisted()
Description copied from interface: DirtyableDBObject
Consider the current state of the object to be in sync with the persisted state.

Specified by:
markPersisted in interface DirtyableDBObject

isPersisted

public boolean isPersisted()
Specified by:
isPersisted in interface DirtyableDBObject
Returns:
true if this object has a representation in the underlying store.

markAsPartialObject

public void markAsPartialObject()
Specified by:
markAsPartialObject in interface com.mongodb.DBObject

isPartialObject

public boolean isPartialObject()
Specified by:
isPartialObject in interface com.mongodb.DBObject

keySet

public Set<String> keySet()
Specified by:
keySet in interface org.bson.BSONObject

containsField

public boolean containsField(String s)
Specified by:
containsField in interface org.bson.BSONObject

containsKey

public boolean containsKey(String s)
Specified by:
containsKey in interface org.bson.BSONObject

removeField

public Object removeField(String s)
Specified by:
removeField in interface org.bson.BSONObject

toMap

public Map toMap()
Specified by:
toMap in interface org.bson.BSONObject

get

public Object get(String s)
Specified by:
get in interface org.bson.BSONObject

putAll

public void putAll(Map m)
Specified by:
putAll in interface org.bson.BSONObject

putAll

public void putAll(org.bson.BSONObject o)
Specified by:
putAll in interface org.bson.BSONObject

put

public Object put(String s,
                  Object v)
Specified by:
put in interface org.bson.BSONObject


Copyright © 2012. All Rights Reserved.