org.exolab.castor.persist

Class RelationCollection

public class RelationCollection extends Object implements Collection, Lazy, TxSynchronizable

RelationCollection implements java.util.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".

Author: Thomas Yip

Constructor Summary
RelationCollection(TransactionContext tx, OID enclosing, LockEngine engine, ClassMolder molder, AccessMode amode, ArrayList ids)
Constructor
Method Summary
booleanadd(Object o)
booleanaddAll(Collection c)
voidclear()
voidcommitted(TransactionContext tx)
booleancontains(Object o)
booleancontainsAll(Collection c)
booleanequals(Object o)
Objectfind(Object ids)
ArrayListgetAdded()
ArrayListgetDeleted()
ArrayListgetIdentitiesList()
booleanisEmpty()
Iteratoriterator()
booleanremove(Object o)
booleanremoveAll(Collection c)
booleanretainAll(Collection c)
voidrolledback(TransactionContext tx)
intsize()
Object[]toArray()
Object[]toArray(Object[] a)

Constructor Detail

RelationCollection

public RelationCollection(TransactionContext tx, OID enclosing, LockEngine engine, ClassMolder molder, AccessMode amode, ArrayList ids)
Constructor

Method Detail

add

public boolean add(Object o)

addAll

public boolean addAll(Collection c)

clear

public void clear()

committed

public void committed(TransactionContext tx)

contains

public boolean contains(Object o)

containsAll

public boolean containsAll(Collection c)

equals

public boolean equals(Object o)

find

public Object find(Object ids)

getAdded

public ArrayList getAdded()

getDeleted

public ArrayList getDeleted()

getIdentitiesList

public ArrayList getIdentitiesList()

isEmpty

public boolean isEmpty()

iterator

public Iterator iterator()

remove

public boolean remove(Object o)

removeAll

public boolean removeAll(Collection c)

retainAll

public boolean retainAll(Collection c)

rolledback

public void rolledback(TransactionContext tx)

size

public int size()

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[] a)
Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com