1 21 package com.db4o; 22 23 28 public class P1ListElement extends P1Object{ 29 30 public P1ListElement i_next; 31 public Object i_object; 32 33 public P1ListElement(){ 34 } 35 36 public P1ListElement(Transaction a_trans, P1ListElement a_next, Object a_object){ 37 super(a_trans); 38 i_next = a_next; 39 i_object = a_object; 40 } 41 42 public int adjustReadDepth(int a_depth) { 43 if(a_depth >= 1){ 44 return 1; 45 } 46 return 0; 47 } 48 49 Object activatedObject(int a_depth){ 50 51 checkActive(); 53 54 55 activate(i_object, a_depth); 56 return i_object; 57 } 58 59 public Object createDefault(Transaction a_trans) { 60 P1ListElement elem4 = new P1ListElement(); 61 elem4.setTrans(a_trans); 62 return elem4; 63 } 64 65 void delete(boolean a_deleteRemoved){ 66 if(a_deleteRemoved){ 67 delete(i_object); 68 } 69 delete(); 70 } 71 72 73 } 74 | Popular Tags |