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.core.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  
25  @XmlAccessorType(XmlAccessType.FIELD)
26  public class SearchResult implements Serializable {
27  	private static final long serialVersionUID = 1L;
28  	private Integer startAt;
29  	private Integer totalResults;
30  	private List<SearchResultRow> rows;
31  	private String sortColumn;
32  	private SortDirection sortDirection;
33  	public Integer getStartAt() {
34  		return startAt;
35  	}
36  	public void setStartAt(Integer startAt) {
37  		this.startAt = startAt;
38  	}
39  	public Integer getTotalResults() {
40  		return totalResults;
41  	}
42  	public void setTotalResults(Integer totalResults) {
43  		this.totalResults = totalResults;
44  	}
45  	public List<SearchResultRow> getRows() {
46  		if (rows == null) {
47  			rows = new ArrayList<SearchResultRow>(0);
48  		}
49  		return rows;
50  	}
51  	public void setRows(List<SearchResultRow> rows) {
52  		this.rows = rows;
53  	}
54  	public String getSortColumn() {
55  		return sortColumn;
56  	}
57  	public void setSortColumn(String sortColumn) {
58  		this.sortColumn = sortColumn;
59  	}
60  	public SortDirection getSortDirection() {
61  		return sortDirection;
62  	}
63  	public void setSortDirection(SortDirection sortDirection) {
64  		this.sortDirection = sortDirection;
65  	}
66  }