1 22 23 package org.xquark.mapper.storage; 24 25 import java.sql.SQLException ; 26 27 import org.xquark.mapper.dbms.TableInfo; 28 import org.xquark.mapper.metadata.UOIDManager; 29 30 34 public abstract class StructExplorer extends StructPersistentNode 35 { 36 private static final String RCSRevision = "$Revision: 1.1 $"; 37 private static final String RCSName = "$Name: $"; 38 39 protected boolean notExhausted = false; 40 41 public StructExplorer(TableInfo tableInfo, UOIDManager manager) 42 { 43 super(tableInfo, manager); 44 } 45 46 49 public abstract boolean fetchNextRow() throws SQLException ; 50 51 boolean queryPending() 52 { 53 return notExhausted; 54 } 55 56 57 boolean resultActive() 58 { 59 return notExhausted; 60 } 61 62 public void reset() throws SQLException 63 { 64 super.reset(); 65 notExhausted = false; 66 } 67 68 public boolean isInRange(long first, long last, short path) 69 { 70 return resultActive() && super.isInRange(first, last, path); 71 } 72 73 public boolean isInRange(long first, long last) 74 { 75 return resultActive() && super.isInRange(first, last); 76 } 77 } 78 | Popular Tags |