1 package org.apache.ojb.broker.query; 2 3 17 18 24 public class ExistsCriteria extends SelectionCriteria 25 { 26 private boolean m_negative = false; 27 32 ExistsCriteria(Query subQuery, boolean negative) 33 { 34 super("", subQuery, (String )null); 35 m_negative = negative; 36 } 37 38 41 public String getClause() 42 { 43 if (m_negative) 44 { 45 return " NOT EXISTS"; 46 } 47 else 48 { 49 return " EXISTS"; 50 } 51 } 52 } 53 | Popular Tags |