1 15 package org.josql; 16 17 import java.util.List ; 18 import java.util.ArrayList ; 19 import java.util.Map ; 20 import java.util.HashMap ; 21 import java.util.LinkedHashMap ; 22 23 35 public class QueryResults 36 { 37 38 Map saveValues = new HashMap (); 40 Map timings = null; 41 List results = null; 42 List whereResults = null; 43 List havingResults = null; 44 Map groupByResults = null; 45 46 Map groupBySaveValues = null; 47 48 public QueryResults () 49 { 50 51 } 52 53 public Map getGroupBySaveValues (List k) 54 { 55 56 if (this.groupBySaveValues == null) 57 { 58 59 return null; 60 61 } 62 63 return (Map ) this.groupBySaveValues.get (k); 64 65 } 66 67 72 public Map getSaveValues () 73 { 74 75 return this.saveValues; 76 77 } 78 79 85 public Object getSaveValue (Object id) 86 { 87 88 if (this.saveValues == null) 89 { 90 91 return null; 92 93 } 94 95 if (id instanceof String ) 96 { 97 98 id = ((String ) id).toLowerCase (); 99 100 } 101 102 return this.saveValues.get (id); 103 104 } 105 106 112 public List getResults () 113 { 114 115 return this.results; 116 117 } 118 119 124 public Map getTimings () 125 { 126 127 return this.timings; 128 129 } 130 131 136 public Map getGroupByResults () 137 { 138 139 return this.groupByResults; 140 141 } 142 143 148 public List getHavingResults () 149 { 150 151 return this.havingResults; 152 153 } 154 155 160 public List getWhereResults () 161 { 162 163 return this.whereResults; 164 165 } 166 167 } 168 | Popular Tags |