public int size() { assertOpen(); if (_size != -1) return _size; try { _size = _rop.size(); return _size; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return -1; } }
public void close() { if (_state != CLOSED) { free(); _state = CLOSED; } }
public Object writeReplace() throws ObjectStreamException { if (_state != OPEN) return this; // load results into list List list = new ArrayList(); for (Iterator itr = iterator(); itr.hasNext();) list.add(itr.next()); return list; } }
public ResultList<?> newResultList(ResultObjectProvider rop) { if (rop instanceof ListResultObjectProvider) return new SimpleResultList(rop); if (_state.fetchBatchSize < 0) return new EagerResultList(rop); if (rop.supportsRandomAccess()) return new SimpleResultList(rop); return new WindowResultList(rop); }
public WindowResultList(ResultObjectProvider rop, int windowSize) { _rop = rop; if (windowSize <= 0) windowSize = 10; _window = new Object[windowSize]; try { _rop.open(); _random = _rop.supportsRandomAccess(); } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); } }
public ResultList<?> newResultList(ResultObjectProvider rop) { if (rop instanceof ListResultObjectProvider) return new SimpleResultList(rop); if (_state.fetchBatchSize < 0) return new EagerResultList(rop); if (rop.supportsRandomAccess()) return new SimpleResultList(rop); return new WindowResultList(rop); }
public WindowResultList(ResultObjectProvider rop, int windowSize) { _rop = rop; if (windowSize <= 0) windowSize = 10; _window = new Object[windowSize]; try { _rop.open(); _random = _rop.supportsRandomAccess(); } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); } }
public ResultList<?> newResultList(ResultObjectProvider rop) { if (rop instanceof ListResultObjectProvider) return new SimpleResultList(rop); if (_state.fetchBatchSize < 0) return new EagerResultList(rop); if (rop.supportsRandomAccess()) return new SimpleResultList(rop); return new WindowResultList(rop); }
public int size() { assertOpen(); if (_size != -1) return _size; try { _size = _rop.size(); return _size; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return -1; } }
public void close() { if (_state != CLOSED) { free(); _state = CLOSED; } }
public Object writeReplace() throws ObjectStreamException { if (_state != OPEN) return this; // load results into list List list = new ArrayList(); for (Iterator itr = iterator(); itr.hasNext();) list.add(itr.next()); return list; } }
public WindowResultList(ResultObjectProvider rop, int windowSize) { _rop = rop; if (windowSize <= 0) windowSize = 10; _window = new Object[windowSize]; try { _rop.open(); _random = _rop.supportsRandomAccess(); } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); } }
public ResultList<?> newResultList(ResultObjectProvider rop) { if (rop instanceof ListResultObjectProvider) return new SimpleResultList(rop); if (_state.fetchBatchSize < 0) return new EagerResultList(rop); if (rop.supportsRandomAccess()) return new SimpleResultList(rop); return new WindowResultList(rop); }
public int size() { assertOpen(); if (_size != -1) return _size; try { _size = _rop.size(); return _size; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return -1; } }
public void close() { if (_state != CLOSED) { free(); _state = CLOSED; } }
public Object writeReplace() throws ObjectStreamException { if (_state != OPEN) return this; // load results into list List list = new ArrayList(); for (Iterator itr = iterator(); itr.hasNext();) list.add(itr.next()); return list; } }