1 22 23 package org.xquark.mediator.plan ; 24 25 import org.xquark.mediator.runtime.MediatorException; 26 import org.xquark.xml.xdbc.XMLDBCException; 27 28 public class FakeResultSet extends ResultSet { 29 private static final String RCSRevision = "$Revision: 1.3 $"; 33 private static final String RCSName = "$Name: $"; 34 35 private boolean first = true; 36 42 public FakeResultSet(Operator algebra, DynamicContext context) throws XMLDBCException { 43 super(algebra, context); 44 first = true; 45 } 46 47 53 protected void evaluate(boolean non_blocking) throws MediatorException {} 54 55 59 public boolean hasNext() throws MediatorException { 60 if (first) { 61 first = false; 62 return true; 63 } 64 return false; 65 } 66 67 } 68 | Popular Tags |