1 21 package com.db4o; 22 23 27 public class P1HashElement extends P1ListElement { 28 29 public Object i_key; 30 public int i_hashCode; 31 public int i_position; 32 33 public P1HashElement(){ 34 } 35 36 public P1HashElement(Transaction a_trans, P1ListElement a_next, Object a_key, int a_hashCode, Object a_object){ 37 super(a_trans, a_next, a_object); 38 i_hashCode = a_hashCode; 39 i_key = a_key; 40 } 41 42 public int adjustReadDepth(int a_depth) { 43 return 1; 44 } 45 46 Object activatedKey(int a_depth){ 47 48 checkActive(); 50 51 52 57 if(a_depth < 0){ 60 Transaction trans = getTrans(); 61 if(trans != null){ 62 if(trans.stream().configImpl().activationDepth() < 1){ 63 a_depth = 1; 64 } 65 } 66 } 67 68 activate(i_key, a_depth); 69 return i_key; 70 } 71 72 void delete(boolean a_deleteRemoved){ 73 if(a_deleteRemoved){ 74 delete(i_key); 75 } 76 super.delete(a_deleteRemoved); 77 } 78 } 79 | Popular Tags |