oracle.toplink.ejb.cmp.wls11
Class EnumeratorImpl
java.lang.Object
oracle.toplink.ejb.cmp.wls11.EnumeratorImpl
- All Implemented Interfaces:
- java.util.Enumeration, java.io.Serializable
- public class EnumeratorImpl
- extends java.lang.Object
- implements java.io.Serializable, java.util.Enumeration
Although Vectors are Serializable, their Enumerations (obtained by the .elements() method) are not.When a finder query returns an Enumeration it cannot simply return a regular VectorEnumerator since this class will not marshal properly. EnumeratorImpl implements Serializable, and hence can be sent across from the server to the client. EnumeratorImpl has a Vector whose Enumeration (elements) are lazily initialized once the client invokes methods on it. There are no serialization problems since the elements are stored in a transient attribute.
- See Also:
- Serialized Form
Constructor Summary |
EnumeratorImpl(java.util.Vector vect)
Creates an EnumeratorImpl for a given vector. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumeratorImpl
public EnumeratorImpl(java.util.Vector vect)
- Creates an EnumeratorImpl for a given vector. You shouldn't access the vector once it is wrapped.
hasMoreElements
public boolean hasMoreElements()
-
- Specified by:
hasMoreElements
in interface java.util.Enumeration
nextElement
public java.lang.Object nextElement()
-
- Specified by:
nextElement
in interface java.util.Enumeration