public void close() { if (_state != CLOSED) { free(); _state = CLOSED; } }
protected Object getInternal(int index) { if (_full != null) { if (index >= _full.length) return PAST_END; return _full[index]; } Integer i = index; Object ret = _rows.get(i); if (ret != null) { if (ret instanceof Null) return null; return ret; } ret = instantiateRow(i); return (ret == null) ? PAST_END : ret; }
public int size() { assertOpen(); if (_size != -1) return _size; if (_full != null) return _full.length; try { _size = _rop.size(); return _size; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return -1; } }
/** * Instantiate the row object at the specified index. */ private Object instantiateRow(Integer i) { _requests++; try { if (!_rop.absolute(i.intValue())) return PAST_END; Object ob = _rop.getResultObject(); if (ob == null) ob = new Null(); // cache the result _rows.put(i, ob); // check to see if our map is full checkComplete(); return ob; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return null; } }
public Object writeReplace() throws ObjectStreamException { if (_full != null) return new ListResultList(Arrays.asList(_full)); ArrayList list = new ArrayList(); for (Iterator itr = iterator(); itr.hasNext();) list.add(itr.next()); return list; }
public int size() { assertOpen(); if (_size != -1) return _size; if (_full != null) return _full.length; try { _size = _rop.size(); return _size; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return -1; } }
/** * Instantiate the row object at the specified index. */ private Object instantiateRow(Integer i) { _requests++; try { if (!_rop.absolute(i.intValue())) return PAST_END; Object ob = _rop.getResultObject(); if (ob == null) ob = new Null(); // cache the result _rows.put(i, ob); // check to see if our map is full checkComplete(); return ob; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return null; } }
public Object writeReplace() throws ObjectStreamException { if (_full != null) return new ListResultList(Arrays.asList(_full)); ArrayList list = new ArrayList(); for (Iterator itr = iterator(); itr.hasNext();) list.add(itr.next()); return list; }
public int size() { assertOpen(); if (_size != -1) return _size; if (_full != null) return _full.length; try { _size = _rop.size(); return _size; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return -1; } }
/** * Instantiate the row object at the specified index. */ private Object instantiateRow(Integer i) { _requests++; try { if (!_rop.absolute(i.intValue())) return PAST_END; Object ob = _rop.getResultObject(); if (ob == null) ob = new Null(); // cache the result _rows.put(i, ob); // check to see if our map is full checkComplete(); return ob; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return null; } }
public void close() { if (_state != CLOSED) { free(); _state = CLOSED; } }
public Object writeReplace() throws ObjectStreamException { if (_full != null) return new ListResultList(Arrays.asList(_full)); ArrayList list = new ArrayList(); for (Iterator itr = iterator(); itr.hasNext();) list.add(itr.next()); return list; }
protected Object getInternal(int index) { if (_full != null) { if (index >= _full.length) return PAST_END; return _full[index]; } Integer i = index; Object ret = _rows.get(i); if (ret != null) { if (ret instanceof Null) return null; return ret; } ret = instantiateRow(i); return (ret == null) ? PAST_END : ret; }
public int size() { assertOpen(); if (_size != -1) return _size; if (_full != null) return _full.length; try { _size = _rop.size(); return _size; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return -1; } }
/** * Instantiate the row object at the specified index. */ private Object instantiateRow(Integer i) { _requests++; try { if (!_rop.absolute(i.intValue())) return PAST_END; Object ob = _rop.getResultObject(); if (ob == null) ob = new Null(); // cache the result _rows.put(i, ob); // check to see if our map is full checkComplete(); return ob; } catch (RuntimeException re) { close(); throw re; } catch (Exception e) { close(); _rop.handleCheckedException(e); return null; } }
public void close() { if (_state != CLOSED) { free(); _state = CLOSED; } }
public Object writeReplace() throws ObjectStreamException { if (_full != null) return new ListResultList(Arrays.asList(_full)); ArrayList list = new ArrayList(); for (Iterator itr = iterator(); itr.hasNext();) list.add(itr.next()); return list; }