1 /**
2 * Copyright 2005-2012 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.rice.kew.docsearch;
17
18 public class QueryComponent {
19
20 private String selectSql = "";
21 private String fromSql = "";
22 private String whereSql = "";
23
24 public QueryComponent() {
25 super();
26 }
27
28 /**
29 * @param selectSql
30 * @param fromSql
31 * @param whereSql
32 */
33 public QueryComponent(String selectSql, String fromSql, String whereSql) {
34 super();
35 this.selectSql = selectSql;
36 this.fromSql = fromSql;
37 this.whereSql = whereSql;
38 }
39
40 /**
41 * @return Returns the tables.
42 */
43 public String getFromSql() {
44 return fromSql;
45 }
46
47 /**
48 * @return Returns the sql.
49 */
50 public String getSelectSql() {
51 return selectSql;
52 }
53
54 /**
55 * @return Returns the tempSql.
56 */
57 public String getWhereSql() {
58 return whereSql;
59 }
60
61 /**
62 * @param tables The tables to set.
63 */
64 public void setFromSql(String tables) {
65 this.fromSql = tables;
66 }
67
68 /**
69 * @param sql The sql to set.
70 */
71 public void setSelectSql(String sql) {
72 this.selectSql = sql;
73 }
74
75 /**
76 * @param tempSql The tempSql to set.
77 */
78 public void setWhereSql(String tempSql) {
79 this.whereSql = tempSql;
80 }
81
82 }