1 /*
2 * Copyright 2009 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 1.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/ecl1.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.student.contract.model.test.source;
17
18 import java.util.List;
19
20 /**
21 * Criteria for a generic query
22 */
23 public interface Criteria {
24
25 /**
26 * The list of comparisons to be applied
27 * TODO: Decide if null or empty list is ok? I.e. can you get ALL?
28 * @name List of Comparisons
29 * @impl These are implementation notes you should see
30 * that they go on for a while and a while and a while
31 * and never really stop
32 * @return list of comparisons
33 */
34 public List<? extends Comparison> getComparisons();
35
36 /**
37 * Name: Maximum Results
38 *
39 * Get the maximum number of results to be returned
40 *
41 * Specify Null if do not want to limit the results
42 */
43 public Integer getMaxResults();
44 }