1 package org.apache.ojb.broker.query; 2 3 17 18 import java.util.Collection ; 19 20 26 public class InCriteria extends ValueCriteria 27 { 28 InCriteria(Object anAttribute, Object aValue, String aClause, String anAlias) 29 { 30 super(anAttribute, aValue, aClause, anAlias); 31 } 32 33 InCriteria(Object anAttribute, Object aValue, String aClause, UserAlias anAlias) 34 { 35 super(anAttribute, aValue, aClause, anAlias); 36 } 37 38 42 protected boolean isBindable() 43 { 44 if (getValue() instanceof Collection ) 45 { 46 Collection coll = (Collection )getValue(); 47 return coll.isEmpty(); 48 } 49 else 50 { 51 return true; 52 } 53 } 54 55 } 56 57 | Popular Tags |