| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| QueryComponent |
|
| 1.0;1 |
| 1 | /** | |
| 2 | * Copyright 2005-2011 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 | 0 | private String selectSql = ""; |
| 21 | 0 | private String fromSql = ""; |
| 22 | 0 | private String whereSql = ""; |
| 23 | ||
| 24 | public QueryComponent() { | |
| 25 | 0 | super(); |
| 26 | 0 | } |
| 27 | ||
| 28 | /** | |
| 29 | * @param selectSql | |
| 30 | * @param fromSql | |
| 31 | * @param whereSql | |
| 32 | */ | |
| 33 | public QueryComponent(String selectSql, String fromSql, String whereSql) { | |
| 34 | 0 | super(); |
| 35 | 0 | this.selectSql = selectSql; |
| 36 | 0 | this.fromSql = fromSql; |
| 37 | 0 | this.whereSql = whereSql; |
| 38 | 0 | } |
| 39 | ||
| 40 | /** | |
| 41 | * @return Returns the tables. | |
| 42 | */ | |
| 43 | public String getFromSql() { | |
| 44 | 0 | return fromSql; |
| 45 | } | |
| 46 | ||
| 47 | /** | |
| 48 | * @return Returns the sql. | |
| 49 | */ | |
| 50 | public String getSelectSql() { | |
| 51 | 0 | return selectSql; |
| 52 | } | |
| 53 | ||
| 54 | /** | |
| 55 | * @return Returns the tempSql. | |
| 56 | */ | |
| 57 | public String getWhereSql() { | |
| 58 | 0 | return whereSql; |
| 59 | } | |
| 60 | ||
| 61 | /** | |
| 62 | * @param tables The tables to set. | |
| 63 | */ | |
| 64 | public void setFromSql(String tables) { | |
| 65 | 0 | this.fromSql = tables; |
| 66 | 0 | } |
| 67 | ||
| 68 | /** | |
| 69 | * @param sql The sql to set. | |
| 70 | */ | |
| 71 | public void setSelectSql(String sql) { | |
| 72 | 0 | this.selectSql = sql; |
| 73 | 0 | } |
| 74 | ||
| 75 | /** | |
| 76 | * @param tempSql The tempSql to set. | |
| 77 | */ | |
| 78 | public void setWhereSql(String tempSql) { | |
| 79 | 0 | this.whereSql = tempSql; |
| 80 | 0 | } |
| 81 | ||
| 82 | } |