View Javadoc
1   /*
2    * Copyright 2007 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  /*
17   * Created on Aug 11, 2004
18   *
19   */
20  package org.kuali.ole.pdp.dataaccess;
21  
22  import java.util.List;
23  
24  /**
25   * This class has methods for batch maintenance.
26   */
27  public interface BatchMaintenanceDao {
28      /**
29       * This method checks if all payments in this batch have open status.
30       * 
31       * @param batchId the batch id
32       * @param batchPayments a list of payments for the given batch
33       * @param statusList a list of payment statuses
34       * @return true if all payments have open status, false otherwise
35       */
36      public boolean doBatchPaymentsHaveOpenStatus(Integer batchId, List batchPayments, List statusList);
37  
38      /**
39       * This method checks if all payments in this batch have held status.
40       * 
41       * @param batchId
42       * @param batchPayments a list of payments for the given batch
43       * @param statusList a list of payment statuses
44       * @return true if all payments have held status, false otherwise
45       */
46      public boolean doBatchPaymentsHaveHeldStatus(Integer batchId, List batchPayments, List statusList);
47  }