01: /*
02: * Copyright 2006-2007 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.financial.dao;
17:
18: import java.util.List;
19:
20: import org.kuali.module.financial.bo.Check;
21:
22: /**
23: * The data access interface for persisting Check objects.
24: */
25: public interface CheckDao {
26: /**
27: * Saves a Check to the DB.
28: *
29: * @param check
30: * @return the Check that was just saved
31: */
32: public Check save(Check check);
33:
34: /**
35: * Delete a check from the DB.
36: *
37: * @param line
38: */
39: public void deleteCheck(Check check);
40:
41: /**
42: * Retrieves a list of checks associated with a given document.
43: *
44: * @param documentHeaderId
45: * @return List of checks
46: */
47: public List findByDocumentHeaderId(String documentHeaderId);
48: }
|