|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.persist.proxy.RelationCollection
public final class RelationCollection
RelationCollection implements Collection
It is a lazy Colllection. The collection initially contains only the
identities of elements of one type. If any element is needed, it will
be fetched "on the fly".
| Constructor Summary | |
|---|---|
RelationCollection(TransactionContext tx,
OID enclosing,
ClassMolder molder,
AccessMode amode,
ArrayList ids)
Creates an instance of RelationCollection. |
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
|
boolean |
addAll(Collection c)
|
void |
clear()
|
void |
committed(TransactionContext tx)
Called at the end of a transaction after commit. |
boolean |
contains(Object o)
|
boolean |
containsAll(Collection c)
|
boolean |
equals(Object o)
|
Object |
find(Object ids)
|
ArrayList |
getAdded()
|
ArrayList |
getDeleted()
|
ArrayList |
getIdentitiesList()
|
int |
hashCode()
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
void |
rolledback(TransactionContext tx)
Called at the end of a transaction after rollback. |
int |
size()
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RelationCollection(TransactionContext tx,
OID enclosing,
ClassMolder molder,
AccessMode amode,
ArrayList ids)
tx - Current transaction contextenclosing - Enclosing OIDmolder - Associated ClassMolderamode - Access modeids - Set of identifiers.| Method Detail |
|---|
public boolean add(Object o)
add in interface Collectionpublic boolean addAll(Collection c)
addAll in interface Collectionpublic void clear()
clear in interface Collectionpublic boolean contains(Object o)
contains in interface Collectionpublic boolean containsAll(Collection c)
containsAll in interface Collectionpublic boolean equals(Object o)
equals in interface Collectionequals in class Objectpublic int hashCode()
hashCode in interface CollectionhashCode in class Objectpublic boolean isEmpty()
isEmpty in interface Collectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectionpublic boolean remove(Object o)
remove in interface Collectionpublic boolean removeAll(Collection c)
removeAll in interface Collectionpublic boolean retainAll(Collection c)
retainAll in interface Collectionpublic int size()
size in interface Collectionpublic Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] a)
toArray in interface Collectionpublic ArrayList getIdentitiesList()
public Object find(Object ids)
public ArrayList getDeleted()
public ArrayList getAdded()
public void committed(TransactionContext tx)
TxSynchronizable
committed in interface TxSynchronizablepublic void rolledback(TransactionContext tx)
TxSynchronizable
rolledback in interface TxSynchronizable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||