View Javadoc

1   /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10   * software distributed under the License is distributed on an "AS IS"
11   * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12   * or implied. See the License for the specific language governing
13   * permissions and limitations under the License.
14   */
15  
16  package org.kuali.student.r1.common.search.dto;
17  
18  import java.io.Serializable;
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  import javax.xml.bind.annotation.XmlAccessType;
23  import javax.xml.bind.annotation.XmlAccessorType;
24  @Deprecated
25  @XmlAccessorType(XmlAccessType.FIELD)
26  public class JoinCriteriaInfo implements Serializable {
27  	private static final long serialVersionUID = 1L;
28  	public enum JoinType {AND,OR,NOT};
29  	
30  	private JoinType joinType;
31  	private List<JoinCriteriaInfo> joinCriteria;
32  	private List<JoinComparisonInfo> comparisons;
33  	public JoinType getJoinType() {
34  		return joinType;
35  	}
36  	public void setJoinType(JoinType joinType) {
37  		this.joinType = joinType;
38  	}
39  	public List<JoinComparisonInfo> getComparisons() {
40  		if(comparisons==null){
41  			comparisons = new ArrayList<JoinComparisonInfo>();
42  		}
43  		return comparisons;
44  	}
45  	public void setComparisons(List<JoinComparisonInfo> comparisons) {
46  		this.comparisons = comparisons;
47  	}
48  	public List<JoinCriteriaInfo> getJoinCriteria() {
49  		if(joinCriteria==null){
50  			joinCriteria = new ArrayList<JoinCriteriaInfo>();
51  		}
52  		return joinCriteria;
53  	}
54  	public void setJoinCriteria(List<JoinCriteriaInfo> joinCriteria) {
55  		this.joinCriteria = joinCriteria;
56  	}
57  	
58  }