|
|||||||||
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,
java.util.ArrayList ids)
Creates an instance of RelationCollection. |
Method Summary | |
---|---|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
void |
clear()
|
void |
committed(TransactionContext tx)
Called at the end of a transaction after commit. |
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
find(java.lang.Object ids)
|
java.util.ArrayList |
getAdded()
|
java.util.ArrayList |
getDeleted()
|
java.util.ArrayList |
getIdentitiesList()
|
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
void |
rolledback(TransactionContext tx)
Called at the end of a transaction after rollback. |
int |
size()
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.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, java.util.ArrayList ids)
tx
- Current transaction contextenclosing
- Enclosing OIDmolder
- Associated ClassMolderamode
- Access modeids
- Set of identifiers.Method Detail |
---|
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
public void clear()
clear
in interface java.util.Collection
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface java.util.Collection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
public int size()
size
in interface java.util.Collection
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
public java.util.ArrayList getIdentitiesList()
public java.lang.Object find(java.lang.Object ids)
public java.util.ArrayList getDeleted()
public java.util.ArrayList getAdded()
public void committed(TransactionContext tx)
TxSynchronizable
committed
in interface TxSynchronizable
public 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 |