001 /**
002 * Copyright 2004-2012 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 package org.kuali.hr.time.batch.dao;
017
018 import java.util.List;
019 import java.util.Map;
020
021 import org.kuali.hr.time.batch.BatchJobEntry;
022
023 public interface BatchJobEntryDao {
024 /**
025 * Save or update batch job entry
026 * @param batchJobEntry
027 */
028 public void saveOrUpdate(BatchJobEntry batchJobEntry);
029 /**
030 * Get batch job entry by id
031 * @param batchJobEntryId
032 * @return
033 */
034 public BatchJobEntry getBatchJobEntry(Long batchJobEntryId);
035 /**
036 * Get batch job entry by batch job id
037 * @param batchJobEntryId
038 * @return
039 */
040 public List<BatchJobEntry> getBatchJobEntries(Long batchJobEntryId);
041 /**
042 * Get batch job entries for ip and status
043 * @param ip
044 * @param status
045 * @return
046 */
047 public List<BatchJobEntry> getBatchJobEntries(String ip, String status);
048 List<BatchJobEntry> getBatchJobEntries(Map<String, Object> criteria);
049 }