|
Oracle Application Server TopLink API Reference 10g (9.0.4) B10491-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.toplink.ejb.cmp.wls11.EnumeratorImpl
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.
Constructor Summary | |
EnumeratorImpl(java.util.Vector vect) Creates an EnumeratorImpl for a given vector. |
Method Summary | |
boolean |
hasMoreElements() |
java.lang.Object |
nextElement() |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnumeratorImpl(java.util.Vector vect)
Method Detail |
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
|
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |