1 package com.jofti.parser; 2 3 import java.util.Map ; 4 import java.util.Stack ; 5 6 import com.jofti.api.IndexQuery; 7 import com.jofti.core.INameSpaceAware; 8 import com.jofti.core.IParsedQuery; 9 import com.jofti.core.QueryId; 10 import com.jofti.core.QueryType; 11 import com.jofti.util.CompositeComparator; 12 13 public class ConvenienceQueryWrapper implements IParsedQuery,INameSpaceAware, QueryId{ 14 15 private IndexQuery query =null; 16 17 public ConvenienceQueryWrapper(IndexQuery query){ 18 this.query =query; 19 } 20 21 public IndexQuery getQuery(){ 22 return query; 23 } 24 public Map getAliasMap() { 25 return null; 27 } 28 29 public Class getClassName() { 30 return null; 32 } 33 34 public int getFirstResult() { 35 return 0; 37 } 38 39 public int getMaxResults() { 40 return 0; 42 } 43 44 public Object getNameSpace() { 45 if (query instanceof INameSpaceAware){ 46 return ((INameSpaceAware)query).getNameSpace(); 47 } else{ 48 return null; 49 } 50 } 51 52 public Map getNamedValueMap() { 53 return null; 55 } 56 57 public CompositeComparator getOrderingComparator() { 58 return null; 60 } 61 62 public Stack getPredicates() { 63 return null; 65 } 66 67 public Map getResultFieldsMap() { 68 return null; 70 } 71 72 public IndexQuery setFirstResult(int firstResult) { 73 return null; 75 } 76 77 public IndexQuery setMaxResults(int maxResults) { 78 return null; 80 } 81 82 public IndexQuery setParameter(String name, Object value) { 83 return null; 85 } 86 87 public IndexQuery setParameter(int position, Object value) { 88 return null; 90 } 91 92 public void setNameSpace(Object nameSpace) { 93 95 } 96 97 public QueryType getQueryType() { 98 99 return ((QueryId)query).getQueryType(); 100 } 101 102 } 103 | Popular Tags |