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 StructPersistentNode extends AbstractPersistentNode 35 { 36 private static final String RCSRevision = "$Revision: 1.1 $"; 37 private static final String RCSName = "$Name: $"; 38 39 protected long last = -1; 40 protected short path = -2; protected UOIDManager manager = null; 42 43 public StructPersistentNode(TableInfo tableInfo, UOIDManager manager) 44 { 45 super(tableInfo); 46 this.manager = manager; 47 } 48 49 public long getLast() 50 { 51 return last; 52 } 53 54 public short getPath() 55 { 56 return path; 57 } 58 59 public void reset() throws SQLException 60 { 61 super.reset(); 62 last = -1; 63 path = -2; 64 } 65 66 public boolean isInRange(long first, long last, short path) 67 { 68 return (uoid >= first) && (uoid <= last) && (this.path == path); 69 } 70 71 public boolean isInRange(long first, long last) 72 { 73 return (uoid >= first) && (uoid <= last); 74 } 75 } 76 | Popular Tags |