View Javadoc

1   /*
2    * SymmetricDS is an open source database synchronization solution.
3    *   
4    * Copyright (C) Keith Naas <knaas@users.sourceforge.net>
5    *
6    * This library is free software; you can redistribute it and/or
7    * modify it under the terms of the GNU Lesser General Public
8    * License as published by the Free Software Foundation; either
9    * version 3 of the License, or (at your option) any later version.
10   *
11   * This library is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14   * Lesser General Public License for more details.
15   *
16   * You should have received a copy of the GNU Lesser General Public
17   * License along with this library; if not, see
18   * <http://www.gnu.org/licenses/>.
19   */
20  
21  package org.jumpmind.symmetric.service.mock;
22  
23  import java.io.BufferedReader;
24  import java.io.IOException;
25  import java.io.InputStream;
26  import java.io.OutputStream;
27  import java.util.List;
28  
29  import org.jumpmind.symmetric.load.IBatchListener;
30  import org.jumpmind.symmetric.load.IColumnFilter;
31  import org.jumpmind.symmetric.load.IDataLoader;
32  import org.jumpmind.symmetric.load.IDataLoaderFilter;
33  import org.jumpmind.symmetric.load.IDataLoaderStatistics;
34  import org.jumpmind.symmetric.model.Node;
35  import org.jumpmind.symmetric.service.IDataLoaderService;
36  import org.jumpmind.symmetric.transport.IIncomingTransport;
37  import org.jumpmind.symmetric.transport.ITransportManager;
38  
39  public class MockDataLoaderService implements IDataLoaderService {
40  
41      public void addColumnFilter(String tableName, IColumnFilter filter) {
42  
43      }
44  
45      public IDataLoaderStatistics loadDataBatch(String batchData) throws IOException {
46          return null;
47      }
48  
49      public IDataLoader openDataLoader(BufferedReader reader) throws IOException {
50          return null;
51      }
52  
53      public void addDataLoaderFilter(IDataLoaderFilter filter) {
54  
55      }
56  
57      public boolean loadData(Node remote, Node local) throws IOException {
58          return true;
59      }
60  
61      public boolean loadData(IIncomingTransport reader) {
62  
63          return false;
64      }
65  
66      public void loadData(InputStream in, OutputStream out) throws IOException {
67  
68      }
69  
70      public void removeDataLoaderFilter(IDataLoaderFilter filter) {
71  
72      }
73  
74      public void setDataLoaderFilters(List<IDataLoaderFilter> filters) {
75  
76      }
77  
78      public void setTransportManager(ITransportManager transportManager) {
79  
80      }
81  
82      public void addBatchListener(IBatchListener listener) {
83  
84      }
85  
86  }