1 21 package com.db4o; 22 23 26 public class QEIdentity extends QEEqual 27 { 28 public int i_objectID; 29 30 public boolean identity(){ 31 return true; 32 } 33 34 boolean evaluate(QConObject a_constraint, QCandidate a_candidate, Object a_value){ 35 if(i_objectID == 0){ 36 i_objectID = a_constraint.getObjectID(); 37 } 38 return a_candidate._key == i_objectID; 39 } 40 } 41 | Popular Tags |