org.objectweb.jonas_ejb.container.jorm.Collection Class Reference

Inherits org.objectweb.jonas_ejb.container.jorm.GenClassImpl.

Inheritance diagram for org.objectweb.jonas_ejb.container.jorm.Collection:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.jorm.Collection:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Collection (PClassMapping gcm)
PIndexedElem createPIndexedElem ()
Object[] toArray ()
Object[] toArray (Object[] objects)
boolean addAll (java.util.Collection collection)
boolean removeAll (java.util.Collection collection)
boolean retainAll (java.util.Collection collection)
void clear ()

Detailed Description

This class is a basic implementation of the java.util.Collection based on the generic class implementation (GenClassImpl). This class can be used to represent a relation between bean.

Author:
S.Chassande-Barrioz : Initial developer

Helene Joanin : fix bugs in the toArray(...) methods

Definition at line 43 of file Collection.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.jorm.Collection.Collection PClassMapping  gcm  ) 
 

Called from bean template (.vm)

Definition at line 50 of file Collection.java.


Member Function Documentation

boolean org.objectweb.jonas_ejb.container.jorm.Collection.addAll java.util.Collection  collection  ) 
 

It iterates over the collection parameter to add each element in the collection.

Definition at line 179 of file Collection.java.

void org.objectweb.jonas_ejb.container.jorm.Collection.clear  ) 
 

It removes all elements.

Definition at line 233 of file Collection.java.

References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcClear().

Referenced by org.objectweb.jonas_ejb.container.jorm.Collection.retainAll().

Here is the call graph for this function:

PIndexedElem org.objectweb.jonas_ejb.container.jorm.Collection.createPIndexedElem  ) 
 

The default implementation of the PIndexedElem is GenClassElement. This method may be redefined for different GenClass implementations.

Reimplemented from org.objectweb.jonas_ejb.container.jorm.GenClassImpl.

Definition at line 61 of file Collection.java.

boolean org.objectweb.jonas_ejb.container.jorm.Collection.removeAll java.util.Collection  collection  ) 
 

It iterates over the collection parameter to remove each element in the collection.

Definition at line 194 of file Collection.java.

References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcRemove().

Here is the call graph for this function:

boolean org.objectweb.jonas_ejb.container.jorm.Collection.retainAll java.util.Collection  collection  ) 
 

For each element of the current collection, it checks if it exist into the collection parameter. If it does not found then it is removed from the current collection.

Definition at line 213 of file Collection.java.

References org.objectweb.jonas_ejb.container.jorm.Collection.clear(), and org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcRemove().

Here is the call graph for this function:

Object [] org.objectweb.jonas_ejb.container.jorm.Collection.toArray Object[]  objects  ) 
 

It returns an array of the elements. It is built by an iteration over the existing elements.

Parameters:
objects the array into which the elements of this collection are to be stored
Returns:
array of the elements

Definition at line 111 of file Collection.java.

References org.objectweb.jonas_ejb.container.jorm.GenClassImpl.gcIterator().

Here is the call graph for this function:

Object [] org.objectweb.jonas_ejb.container.jorm.Collection.toArray  ) 
 

It returns an array of the elements.

Returns:
array of the elements

Definition at line 101 of file Collection.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:10:58 2005 for JOnAS by  doxygen 1.3.9.1