1 package org.apache.ojb.broker.query; 2 3 17 18 19 36 37 public class QueryByMtoNCriteria extends QueryByCriteria implements MtoNQuery 38 { 39 private String indirectionTable; 40 41 44 public String getIndirectionTable() 45 { 46 return indirectionTable; 47 } 48 49 53 public QueryByMtoNCriteria(Class targetClass, String indirectionTable, Criteria criteria) 54 { 55 this(targetClass, indirectionTable, criteria, false); 56 } 57 58 62 public QueryByMtoNCriteria(Class targetClass, String indirectionTable, Criteria criteria, boolean distinct) 63 { 64 super(targetClass , criteria, distinct); 65 this.indirectionTable = indirectionTable; 66 } 67 68 73 public String toString() 74 { 75 return "Query from " + indirectionTable + " where " + getCriteria(); 76 } 77 78 } 79 | Popular Tags |