org.exolab.castor.persist

Class RelationCollection

Implemented Interfaces:
Collection, Lazy, TxSynchronizable

public class RelationCollection
extends java.lang.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

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()
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)

Constructor Details

RelationCollection

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

Method Details

add

public boolean add(Object o)

addAll

public boolean addAll(Collection c)

clear

public void clear()

committed

public void committed(TransactionContext tx)
Called at the end of a transaction after commit.
Specified by:
committed in interface TxSynchronizable

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)
Called at the end of a transaction after rollback.
Specified by:
rolledback in interface TxSynchronizable

size

public int size()

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[] a)

Intalio Inc. (C) 1999-2003. All rights reserved http://www.intalio.com