1 16 package com.blandware.atleap.common.util; 17 18 import java.io.Serializable ; 19 import java.util.Collections ; 20 import java.util.HashMap ; 21 import java.util.Map ; 22 23 30 public class QueryInfo implements Serializable { 31 32 35 private String whereClause = new String (); 36 37 40 private String orderByClause = new String (); 41 42 45 private Integer limit; 46 47 50 private Integer offset; 51 52 55 private Map queryParameters = Collections.synchronizedMap(new HashMap ()); 56 57 60 public QueryInfo() { 61 } 62 63 71 public QueryInfo(String whereClause, String orderByClause, Integer limit, Integer offset) { 72 this.whereClause = whereClause; 73 this.orderByClause = orderByClause; 74 this.limit = limit; 75 this.offset = offset; 76 queryParameters = Collections.synchronizedMap(new HashMap ()); 77 } 78 79 84 public String getWhereClause() { 85 return whereClause; 86 } 87 88 93 public void setWhereClause(String whereClause) { 94 this.whereClause = whereClause; 95 } 96 97 102 public String getOrderByClause() { 103 return orderByClause; 104 } 105 106 111 public void setOrderByClause(String orderByClause) { 112 this.orderByClause = orderByClause; 113 } 114 115 120 public Integer getLimit() { 121 return limit; 122 } 123 124 129 public void setLimit(Integer limit) { 130 this.limit = limit; 131 } 132 133 138 public Integer getOffset() { 139 return offset; 140 } 141 142 147 public void setOffset(Integer offset) { 148 this.offset = offset; 149 } 150 151 156 public Map getQueryParameters() { 157 return queryParameters; 158 } 159 160 165 public void setQueryParameters(Map queryParameters) { 166 this.queryParameters = queryParameters; 167 } 168 169 } 170 | Popular Tags |