1 22 23 package org.xquark.mediator.runtime; 24 25 import java.util.ArrayList ; 26 27 import org.xquark.xml.xdbc.XMLDBCException; 28 import org.xquark.xml.xdbc.XMLStatement; 29 import org.xquark.xquery.parser.XQueryException; 30 import org.xquark.xquery.parser.XQueryExpression; 31 import org.xquark.xquery.xdbc.XDBCResultSetInterface; 32 import org.xquark.xquery.xdbc.XResultSetImpl; 33 34 35 public class MediatorResultSet extends XResultSetImpl { 36 37 boolean isClosed = false; 38 45 public MediatorResultSet(XDBCResultSetInterface xdbcResulSet, XQueryExpression reconstructExpression, ArrayList varList, XMLStatement statement) throws XQueryException { 46 super(xdbcResulSet, reconstructExpression, varList, statement); 47 } 48 49 50 public void close() throws XMLDBCException { 51 if (!isClosed) { 52 isClosed = true; 53 super.close(); 54 ((MediatorStatement)statement).closePreparedStatements(); 55 } 56 } 57 } 58 | Popular Tags |