001 /*
002 * Copyright 2005-2007 The Kuali Foundation
003 *
004 *
005 * Licensed under the Educational Community License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.opensource.org/licenses/ecl2.php
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.kuali.rice.kew.docsearch;
018
019 public class QueryComponent {
020
021 private String selectSql = "";
022 private String fromSql = "";
023 private String whereSql = "";
024
025 public QueryComponent() {
026 super();
027 }
028
029 /**
030 * @param selectSql
031 * @param fromSql
032 * @param whereSql
033 */
034 public QueryComponent(String selectSql, String fromSql, String whereSql) {
035 super();
036 this.selectSql = selectSql;
037 this.fromSql = fromSql;
038 this.whereSql = whereSql;
039 }
040
041 /**
042 * @return Returns the tables.
043 */
044 public String getFromSql() {
045 return fromSql;
046 }
047
048 /**
049 * @return Returns the sql.
050 */
051 public String getSelectSql() {
052 return selectSql;
053 }
054
055 /**
056 * @return Returns the tempSql.
057 */
058 public String getWhereSql() {
059 return whereSql;
060 }
061
062 /**
063 * @param tables The tables to set.
064 */
065 public void setFromSql(String tables) {
066 this.fromSql = tables;
067 }
068
069 /**
070 * @param sql The sql to set.
071 */
072 public void setSelectSql(String sql) {
073 this.selectSql = sql;
074 }
075
076 /**
077 * @param tempSql The tempSql to set.
078 */
079 public void setWhereSql(String tempSql) {
080 this.whereSql = tempSql;
081 }
082
083 }