org.objectweb.jonas_ejb.lib
Class CollectionEnum
java.lang.Object
|
+--org.objectweb.jonas_ejb.lib.CollectionEnum
- All Implemented Interfaces:
- java.util.Enumeration, java.io.Serializable
- public class CollectionEnum
- extends java.lang.Object
- implements java.io.Serializable, java.util.Enumeration
This class implements the java.util.Enumeration and the java.io.Serializable interfaces.
This class is used as the return value type of the implementation of the finder methods
which return a collection.
Indeed, the EJB spec. tells that the type for a collection is the java.util.Enumeration.
In addition the return value type must be legal type for Java RMI (ie. serializable type).
- See Also:
- Serialized Form
Constructor Summary |
CollectionEnum()
Create an empty CollectionEnum |
CollectionEnum(java.util.Vector v)
Create a CollectionEnum from a vector |
Method Summary |
void |
addElement(java.lang.Object obj)
Add an element |
boolean |
hasMoreElements()
Implements Enumeration.hasMoreElements() |
java.lang.Object |
nextElement()
Implements Enumeration.nextElement() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionEnum
public CollectionEnum()
- Create an empty CollectionEnum
CollectionEnum
public CollectionEnum(java.util.Vector v)
- Create a CollectionEnum from a vector
addElement
public void addElement(java.lang.Object obj)
- Add an element
hasMoreElements
public boolean hasMoreElements()
- Implements Enumeration.hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration
nextElement
public java.lang.Object nextElement()
throws java.util.NoSuchElementException
- Implements Enumeration.nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration