|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.util.RelationshipFault
org.apache.cayenne.util.PersistentObjectSet
public class PersistentObjectSet
| Field Summary | |
|---|---|
protected Set |
addedToUnresolved
|
protected Set |
objectSet
|
protected Set |
removedFromUnresolved
|
| Fields inherited from class org.apache.cayenne.util.RelationshipFault |
|---|
relationshipName, relationshipOwner |
| Constructor Summary | |
|---|---|
PersistentObjectSet(Persistent relationshipOwner,
String relationshipName)
|
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
boolean |
equals(Object o)
|
Object |
getValue()
Returns an object stored by this ValueHolder. |
Object |
getValueDirectly()
Retrieves ValueHolder value without triggering fault resolution. |
int |
hashCode()
|
void |
invalidate()
Turns itself into a fault, thus forcing a refresh on the next access. |
boolean |
isEmpty()
|
boolean |
isFault()
Returns whether this list is not yet resolved and requires a fetch. |
Iterator |
iterator()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
protected Set |
resolvedObjectSet()
Returns internal objects list resolving it if needed. |
boolean |
retainAll(Collection c)
|
void |
setObjectSet(Set objectSet)
|
Object |
setValue(Object value)
Sets an object stored by this ValueHolder. |
Object |
setValueDirectly(Object value)
Sets ValueHolder vaue without triggering fault resolution. |
int |
size()
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
String |
toString()
|
| Methods inherited from class org.apache.cayenne.util.RelationshipFault |
|---|
getRelationshipName, getRelationshipOwner, isTransientParent, isUncommittedParent, resolveFromDB |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Set objectSet
protected Set addedToUnresolved
protected Set removedFromUnresolved
| Constructor Detail |
|---|
public PersistentObjectSet(Persistent relationshipOwner,
String relationshipName)
| Method Detail |
|---|
public boolean isFault()
isFault in interface ValueHolderpublic void invalidate()
invalidate in interface ValueHolder
public Object setValueDirectly(Object value)
throws CayenneRuntimeException
ValueHolder
setValueDirectly in interface ValueHolderCayenneRuntimeException
public Object getValue()
throws CayenneRuntimeException
ValueHolder
getValue in interface ValueHolderCayenneRuntimeException
public Object getValueDirectly()
throws CayenneRuntimeException
ValueHolder
getValueDirectly in interface ValueHolderCayenneRuntimeException
public Object setValue(Object value)
throws CayenneRuntimeException
ValueHolder
setValue in interface ValueHoldervalue - a new value of the ValueHolder.
CayenneRuntimeExceptionpublic void setObjectSet(Set objectSet)
public boolean add(Object o)
add in interface Collectionadd in interface Setpublic boolean addAll(Collection c)
addAll in interface CollectionaddAll in interface Setpublic void clear()
clear in interface Collectionclear in interface Setpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setpublic boolean containsAll(Collection c)
containsAll in interface CollectioncontainsAll in interface Setpublic boolean equals(Object o)
equals in interface Collectionequals in interface Setequals in class Objectpublic int hashCode()
hashCode in interface CollectionhashCode in interface SethashCode in class Objectpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Setpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setpublic boolean remove(Object o)
remove in interface Collectionremove in interface Setpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface Setpublic boolean retainAll(Collection c)
retainAll in interface CollectionretainAll in interface Setpublic int size()
size in interface Collectionsize in interface Setpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Setpublic Object[] toArray(Object[] a)
toArray in interface CollectiontoArray in interface Setprotected Set resolvedObjectSet()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||