01: /*
02: * Copyright 2006 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.module.gl.dao;
17:
18: import java.util.Collection;
19:
20: import org.kuali.module.gl.bo.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: * Saves a Correction Group to the database
28: *
29: * @param group the group to save
30: */
31: void save(CorrectionChangeGroup group);
32:
33: /**
34: * Deletes a CorrectionChangeGroup from the database
35: *
36: * @param group the group to delete
37: */
38: void delete(CorrectionChangeGroup group);
39:
40: /**
41: * Finds all CorrectionChange groups associated with a document
42: *
43: * @param documentNumber the document number of a GLCP document
44: * @return a Collection of CorrectionChangeGroup records
45: */
46: Collection findByDocumentNumber(String documentNumber);
47:
48: /**
49: * Finds a correction change group, based on GLCP document number and the group number
50: *
51: * @param documentNumber the document number of the correction change group to retrieve
52: * @param CorrectionChangeGroupNumber the number of the group to retrieve
53: * @return the found CorrectionChangeGroup, or null if not found
54: */
55: CorrectionChangeGroup findByDocumentNumberAndCorrectionChangeGroupNumber(
56: String documentNumber, Integer CorrectionChangeGroupNumber);
57: }
|