1 /*
2 * SymmetricDS is an open source database synchronization solution.
3 *
4 * Copyright (C) Eric Long <erilong@users.sourceforge.net>,
5 * Chris Henson <chenson42@users.sourceforge.net>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 3 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, see
19 * <http://www.gnu.org/licenses/>.
20 */
21
22 package org.jumpmind.symmetric.service;
23
24 import java.util.List;
25
26 import org.jumpmind.symmetric.model.IncomingBatch;
27 import org.jumpmind.symmetric.model.IncomingBatchHistory;
28 import org.springframework.transaction.annotation.Transactional;
29
30 public interface IIncomingBatchService {
31
32 public IncomingBatch findIncomingBatch(long batchId, String nodeId);
33
34 public List<IncomingBatch> findIncomingBatchErrors(int maxRows);
35
36 public List<IncomingBatchHistory> findIncomingBatchHistory(long batchId, String nodeId);
37
38 @Transactional
39 public boolean acquireIncomingBatch(IncomingBatch status);
40
41 @Transactional
42 public void insertIncomingBatch(IncomingBatch status);
43
44 @Transactional
45 public void insertIncomingBatchHistory(IncomingBatchHistory history);
46
47 @Transactional
48 public int updateIncomingBatch(IncomingBatch status);
49
50 }