public class DirtyableDBObjectList extends Object implements List, DirtyableDBObject
| Constructor and Description |
|---|
DirtyableDBObjectList()
Default constructor that uses an ArrayList as the delegate and expects no non-Jeppetto
access.
|
DirtyableDBObjectList(List delegate,
boolean modifiableDelegate)
Constructor that takes is passed the delegate list along w/ an indication as to
whether the delegate is modifiable by code outside of Jeppetto.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Object element) |
boolean |
add(Object element) |
boolean |
addAll(Collection elements) |
boolean |
addAll(int index,
Collection elements) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection objects) |
boolean |
containsField(String s) |
boolean |
containsKey(String s) |
boolean |
equals(Object o) |
Object |
get(int index) |
Object |
get(String s) |
Object |
getDelegate() |
Iterator<String> |
getDirtyKeys() |
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isDirty() |
boolean |
isEmpty() |
boolean |
isPartialObject() |
boolean |
isPersisted(com.mongodb.DBCollection dbCollection) |
boolean |
isRewrite() |
Iterator |
iterator() |
Set<String> |
keySet() |
int |
lastIndexOf(Object o) |
ListIterator |
listIterator() |
ListIterator |
listIterator(int index) |
void |
markAsPartialObject() |
void |
markPersisted(com.mongodb.DBCollection dbCollection)
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 fromIndex,
int toIndex) |
Object[] |
toArray() |
Object[] |
toArray(Object[] objects) |
Map |
toMap() |
public DirtyableDBObjectList()
public DirtyableDBObjectList(List delegate, boolean modifiableDelegate)
delegate - the underlying List implementationmodifiableDelegate - true if access is possible to the delegate by non-Jeppetto codepublic boolean addAll(int index,
Collection elements)
public boolean removeAll(Collection collection)
removeAll in interface CollectionremoveAll in interface Listpublic boolean add(Object element)
add in interface Collectionadd in interface Listpublic boolean remove(Object object)
remove in interface Collectionremove in interface Listpublic boolean addAll(Collection elements)
addAll in interface CollectionaddAll in interface Listpublic boolean retainAll(Collection collection)
retainAll in interface CollectionretainAll in interface Listpublic void clear()
clear in interface Collectionclear in interface Listpublic int size()
size in interface Collectionsize in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listpublic Iterator iterator()
public Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic Object[] toArray(Object[] objects)
toArray in interface CollectiontoArray in interface Listpublic boolean containsAll(Collection objects)
containsAll in interface CollectioncontainsAll in interface Listpublic int lastIndexOf(Object o)
lastIndexOf in interface Listpublic ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int index)
listIterator in interface Listpublic boolean isDirty()
isDirty in interface DirtyableDBObjectpublic void markPersisted(com.mongodb.DBCollection dbCollection)
DirtyableDBObjectmarkPersisted in interface DirtyableDBObjectpublic boolean isPersisted(com.mongodb.DBCollection dbCollection)
isPersisted in interface DirtyableDBObjectpublic Iterator<String> getDirtyKeys()
getDirtyKeys in interface DirtyableDBObjectpublic Object getDelegate()
getDelegate in interface DirtyableDBObjectpublic void markAsPartialObject()
markAsPartialObject in interface com.mongodb.DBObjectpublic boolean isPartialObject()
isPartialObject in interface com.mongodb.DBObjectpublic boolean containsField(String s)
containsField in interface org.bson.BSONObjectpublic boolean containsKey(String s)
containsKey in interface org.bson.BSONObjectpublic Object removeField(String s)
removeField in interface org.bson.BSONObjectpublic Map toMap()
toMap in interface org.bson.BSONObjectpublic void putAll(Map m)
putAll in interface org.bson.BSONObjectpublic void putAll(org.bson.BSONObject o)
putAll in interface org.bson.BSONObjectpublic boolean isRewrite()
public boolean equals(Object o)
Copyright © 2014. All Rights Reserved.