001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 /*
017 * Created on Jul 18, 2004
018 *
019 */
020 package org.kuali.kfs.pdp.dataaccess;
021
022 import java.math.BigDecimal;
023 import java.sql.Timestamp;
024
025 import org.kuali.kfs.pdp.businessobject.Batch;
026 import org.kuali.kfs.pdp.businessobject.CustomerProfile;
027 import org.kuali.kfs.pdp.businessobject.PaymentAccountHistory;
028 import org.kuali.kfs.pdp.businessobject.PaymentGroup;
029
030
031 /**
032 * Data access methods for payment load process.
033 */
034 public interface PaymentFileLoadDao {
035
036 /**
037 * Checks whether a <code>Batch</code> record already exists for the given key.
038 *
039 * @param customer payment file customer
040 * @param count payment total count
041 * @param totalAmount payment total amount
042 * @param createDate payment file create datetime
043 * @return true if the batch already exists
044 */
045 public boolean isDuplicateBatch(CustomerProfile customer, Integer count, BigDecimal totalAmount, Timestamp createDate);
046 }