public EJBObject [ ] loadEntireCollection ( ) { EJBObject [ ] result = null ; try { result = ( EJBObject [ ] ) allRemainingElements ( ) ; } catch ( NoMoreElementsException e ) { // FFDCFilter.processException(e, CLASS_NAME + ".loadEntireCollection", // "270", this); return elements ; } catch ( EnumeratorException e ) { // FFDCFilter.processException(e, CLASS_NAME + ".loadEntireCollection", // "276", this); throw new RuntimeException ( e . toString ( ) ) ; } catch ( RemoteException e ) { // FFDCFilter.processException(e, CLASS_NAME + ".loadEntireCollection", // "282", this); throw new RuntimeException ( e . toString ( ) ) ; } elements = result ; return result ; }
Load the entire result set in a greedy fashion . This is required to support methods on the Collection interface