1 21 package com.db4o.inside.ix; 22 23 import com.db4o.*; 24 import com.db4o.foundation.*; 25 import com.db4o.inside.freespace.*; 26 27 30 public class IxRemove extends IxPatch { 31 32 public IxRemove(IndexTransaction a_ft, int a_parentID, Object a_value) { 33 super(a_ft, a_parentID, a_value); 34 _size = 0; 35 } 36 37 public int ownSize() { 38 return 0; 39 } 40 41 public String toString() { 42 if(! Debug4.prettyToStrings){ 43 return super.toString(); 44 } 45 String str = "IxRemove " + _parentID + "\n " + handler().comparableObject(trans(), _value); 46 return str; 47 } 48 49 public void freespaceVisit(FreespaceVisitor visitor, int index){ 50 } 52 53 public void visit(Object obj){ 54 } 56 57 public void visit(Visitor4 visitor, int[] lowerAndUpperMatch){ 58 } 60 61 public int write(Indexable4 a_handler, YapWriter a_writer) { 62 return 0; 64 } 65 66 public void visitAll(IntObjectVisitor visitor) { 67 } 69 70 public Object shallowClone() { 71 IxRemove remove=new IxRemove(_fieldTransaction,_parentID,_value); 72 super.shallowCloneInternal(remove); 73 return remove; 74 } 75 } 76 | Popular Tags |