public boolean absolute(int pos) throws SQLException { _pos = pos; if (inPage()) return _page[_pos - _pagePos] != null; return super.absolute(pos); }
public void open() throws SQLException { super.open(); _pos = -1; }
public boolean next() throws SQLException { _pos++; if (inPage()) return _page[_pos - _pagePos] != null; if (!super.next()) { setSize(_pos); return false; } return true; }
public int size() throws SQLException { if (_size == -1) { // if res is null, don't cache size if (_res == null) return Integer.MAX_VALUE; switch (_fetch.getLRSSize()) { case LRSSizes.SIZE_UNKNOWN: _size = Integer.MAX_VALUE; break; case LRSSizes.SIZE_LAST: if (supportsRandomAccess()) _size = _res.size(); else _size = Integer.MAX_VALUE; break; default: // query _size = _sel.getCount(_store); } } return _size; }
return new Object[]{((SelectResultObjectProvider)provider).getSelect(), null};
public boolean absolute(int pos) throws SQLException { _pos = pos; if (inPage()) return _page[_pos - _pagePos] != null; return super.absolute(pos); }
public void open() throws SQLException { super.open(); _pos = -1; }
public boolean next() throws SQLException { _pos++; if (inPage()) return _page[_pos - _pagePos] != null; if (!super.next()) { setSize(_pos); return false; } return true; }
public int size() throws SQLException { if (_size == -1) { // if res is null, don't cache size if (_res == null) return Integer.MAX_VALUE; switch (_fetch.getLRSSize()) { case LRSSizes.SIZE_UNKNOWN: _size = Integer.MAX_VALUE; break; case LRSSizes.SIZE_LAST: if (supportsRandomAccess()) _size = _res.size(); else _size = Integer.MAX_VALUE; break; default: // query _size = _sel.getCount(_store); } } return _size; }
return new Object[]{((SelectResultObjectProvider)provider).getSelect(), null};
public boolean absolute(int pos) throws SQLException { _pos = pos; if (inPage()) return _page[_pos - _pagePos] != null; return super.absolute(pos); }
public void open() throws SQLException { super.open(); _pos = -1; }
public boolean next() throws SQLException { _pos++; if (inPage()) return _page[_pos - _pagePos] != null; if (!super.next()) { setSize(_pos); return false; } return true; }
public int size() throws SQLException { if (_size == -1) { // if res is null, don't cache size if (_res == null) return Integer.MAX_VALUE; switch (_fetch.getLRSSize()) { case LRSSizes.SIZE_UNKNOWN: _size = Integer.MAX_VALUE; break; case LRSSizes.SIZE_LAST: if (supportsRandomAccess()) _size = _res.size(); else _size = Integer.MAX_VALUE; break; default: // query _size = _sel.getCount(_store); } } return _size; }
return new Object[]{((SelectResultObjectProvider)provider).getSelect(), null};
public boolean absolute(int pos) throws SQLException { _pos = pos; if (inPage()) return _page[_pos - _pagePos] != null; return super.absolute(pos); }
public void open() throws SQLException { super.open(); _pos = -1; }