1 /*
2 * Copyright 2006 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.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/ecl2.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.ole.gl.dataaccess;
17
18 import java.util.Collection;
19
20 import org.kuali.ole.gl.businessobject.CorrectionChangeGroup;
21
22 /**
23 * a DAO interface that declares methods needed for CorrectionChangeGroups to deal with the database
24 */
25 public interface CorrectionChangeGroupDao {
26
27 /**
28 * Deletes a CorrectionChangeGroup from the database
29 *
30 * @param group the group to delete
31 */
32 void delete(CorrectionChangeGroup group);
33
34 /**
35 * Finds all CorrectionChange groups associated with a document
36 *
37 * @param documentNumber the document number of a GLCP document
38 * @return a Collection of CorrectionChangeGroup records
39 */
40 Collection findByDocumentNumber(String documentNumber);
41
42 /**
43 * Finds a correction change group, based on GLCP document number and the group number
44 *
45 * @param documentNumber the document number of the correction change group to retrieve
46 * @param CorrectionChangeGroupNumber the number of the group to retrieve
47 * @return the found CorrectionChangeGroup, or null if not found
48 */
49 CorrectionChangeGroup findByDocumentNumberAndCorrectionChangeGroupNumber(String documentNumber, Integer CorrectionChangeGroupNumber);
50 }