1 22 23 package org.xquark.mediator.plan ; 24 25 import org.xquark.mediator.runtime.MediatorException; 26 27 public abstract class UnResultSet extends ResultSet { 28 private static final String RCSRevision = "$Revision: 1.6 $"; 32 private static final String RCSName = "$Name: $"; 33 protected ResultSet resultset = null ; 37 38 44 public UnResultSet(Operator operator, DynamicContext context, OperatorRunnable child) throws MediatorException { 45 super(operator, context); 46 if (child != null) 48 resultset = child.getResultSet() ; 49 } 50 51 54 protected void setFinishedWhenEmpty() throws MediatorException { 55 super.setFinishedWhenEmpty() ; 56 if (resultset != null) { 57 resultset.getOperator().terminate(); 58 resultset.close() ; 59 } 60 } 61 62 65 public void close() throws MediatorException { 66 super.close() ; 67 if (resultset != null) 69 resultset.close() ; 70 } 71 72 77 protected void evaluate(boolean non_blocking) throws MediatorException { 78 } 79 80 } 81 | Popular Tags |