1 22 23 28 29 package org.xquark.mapper.storage; 30 31 import java.sql.SQLException ; 32 33 import org.xquark.mapper.RepositoryException; 34 import org.xquark.xml.xdbc.XMLDBCException; 35 36 43 public class BatchQueryBuilder extends QueryBuilder 44 { 45 private static final String RCSRevision = "$Revision: 1.1 $"; 46 private static final String RCSName = "$Name: $"; 47 48 49 public BatchQueryBuilder(_RepositoryCollection collection, VarInfoSet varInfo) throws XMLDBCException 50 { 51 super(collection, varInfo); 52 try 53 { 54 55 tuplePool = qTuplePool = new BatchQueryExplorer(collection); 56 qTuplePool.initExploration(varInfo, collection.getRepositoryConnection().getConnection()); 58 qTuplePool.lookup(); 60 } 61 catch (SQLException e) 62 { 63 throw new RepositoryException(RepositoryException.DB_ERROR, 64 "JDBC error while initializing tuple explorer.", e); 65 } 66 } 67 68 protected void initNewResult(int rank) throws XMLDBCException 69 { 70 ((BatchQueryExplorer)qTuplePool).setCurrentRank(rank); 71 } 72 73 } 74 | Popular Tags |