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