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

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

public class DirtyableDBObjectList
extends Object
implements List, DirtyableDBObject


Constructor Summary
DirtyableDBObjectList()
           
DirtyableDBObjectList(List delegate)
           
 
Method Summary
 void add(int index, Object element)
           
 boolean add(Object element)
           
 boolean addAll(Collection ts)
           
 boolean addAll(int index, Collection elements)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection objects)
           
 boolean containsField(String s)
           
 boolean containsKey(String s)
           
 Object get(int i)
           
 Object get(String s)
           
 int indexOf(Object o)
           
 boolean isDirty()
           
 boolean isEmpty()
           
 boolean isPartialObject()
           
 boolean isPersisted()
           
 Iterator iterator()
           
 Set<String> keySet()
           
 int lastIndexOf(Object o)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int i)
           
 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)
           
 Object remove(int index)
           
 boolean remove(Object object)
           
 boolean removeAll(Collection collection)
           
 Object removeField(String s)
           
 boolean retainAll(Collection collection)
           
 Object set(int index, Object element)
           
 int size()
           
 List subList(int i, int i1)
           
 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.List
equals, hashCode
 

Constructor Detail

DirtyableDBObjectList

public DirtyableDBObjectList()

DirtyableDBObjectList

public DirtyableDBObjectList(List delegate)
Method Detail

add

public void add(int index,
                Object element)
Specified by:
add in interface List

addAll

public boolean addAll(int index,
                      Collection elements)
Specified by:
addAll in interface List

remove

public Object remove(int index)
Specified by:
remove in interface List

removeAll

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

set

public Object set(int index,
                  Object element)
Specified by:
set in interface List

add

public boolean add(Object element)
Specified by:
add in interface Collection
Specified by:
add in interface List

remove

public boolean remove(Object object)
Specified by:
remove in interface Collection
Specified by:
remove in interface List

addAll

public boolean addAll(Collection ts)
Specified by:
addAll in interface Collection
Specified by:
addAll in interface List

retainAll

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

clear

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

size

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

isEmpty

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

contains

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

iterator

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

toArray

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

toArray

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

containsAll

public boolean containsAll(Collection objects)
Specified by:
containsAll in interface Collection
Specified by:
containsAll in interface List

get

public Object get(int i)
Specified by:
get in interface List

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator(int i)
Specified by:
listIterator in interface List

subList

public List subList(int i,
                    int i1)
Specified by:
subList in interface List

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 © 2011. All Rights Reserved.