1 21 package com.db4o.inside.query; 22 23 import com.db4o.ext.*; 24 import com.db4o.query.*; 25 26 30 public class ObjectSetFacade implements ExtObjectSet { 31 32 public final StatefulQueryResult _delegate; 34 35 public ObjectSetFacade(QueryResult queryResult){ 36 _delegate = new StatefulQueryResult(queryResult); 37 } 38 39 public Object get(int index) { 40 return _delegate.get(index); 41 } 42 43 public long[] getIDs() { 44 return _delegate.getIDs(); 45 } 46 47 public ExtObjectSet ext() { 48 return this; 49 } 50 51 public boolean hasNext() { 52 return _delegate.hasNext(); 53 } 54 55 public Object next() { 56 return _delegate.next(); 57 } 58 59 public void reset() { 60 _delegate.reset(); 61 } 62 63 public int size() { 64 return _delegate.size(); 65 } 66 67 public void sort(QueryComparator cmp) { 68 _delegate.sort(cmp); 69 } 70 } 71 | Popular Tags |