1 21 package com.db4o; 22 23 import com.db4o.foundation.*; 24 25 28 class QPending extends Tree{ 29 30 final QConJoin _join; 31 QCon _constraint; 32 33 int _result; 34 35 static final int FALSE = -4; 37 static final int BOTH = 1; 38 static final int TRUE = 2; 39 40 QPending(QConJoin a_join, QCon a_constraint, boolean a_firstResult){ 41 _join = a_join; 42 _constraint = a_constraint; 43 44 _result = a_firstResult ? TRUE : FALSE; 45 } 46 47 public int compare(Tree a_to) { 48 return _constraint.i_id - ((QPending)a_to)._constraint.i_id; 49 } 50 51 void changeConstraint(){ 52 _constraint = _join.getOtherConstraint(_constraint); 53 } 54 55 public Object shallowClone() { 56 QPending pending = new QPending(_join, _constraint, false); 57 pending._result=_result; 58 super.shallowCloneInternal(pending); 59 return pending; 60 } 61 62 public Object key(){ 63 throw new NotImplementedException(); 64 } 65 66 } 67 68 | Popular Tags |