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.util.List;
24  import java.util.Map;
25  
26  import org.jumpmind.symmetric.load.IReloadListener;
27  import org.jumpmind.symmetric.model.Data;
28  import org.jumpmind.symmetric.model.DataEvent;
29  import org.jumpmind.symmetric.model.Node;
30  import org.jumpmind.symmetric.model.Trigger;
31  import org.jumpmind.symmetric.service.IDataService;
32  
33  public class MockDataService implements IDataService {
34  
35      public void addReloadListener(IReloadListener listener) {
36  
37      }
38  
39      public Data createData(String tableName) {
40          return null;
41      }
42  
43      public Data createData(String tableName, String whereClause) {
44          return null;
45      }
46  
47      public Map<String, String> getRowDataAsMap(Data data) {
48          return null;
49      }
50  
51      public void insertCreateEvent(Node targetNode, Trigger trigger, String xml) {
52  
53      }
54  
55      public long insertData(Data data) {
56          return 0;
57      }
58  
59      public void insertDataEvent(DataEvent dataEvent) {
60  
61      }
62  
63      public void insertDataEvent(Data data, String channelId, List<Node> nodes) {
64  
65      }
66  
67      public void insertDataEvent(Data data, String channelId, String transactionId, List<Node> nodes) {
68  
69      }
70  
71      public void insertDataEvent(Data data, String channelId, String nodeId) {
72  
73      }
74  
75      public void insertHeartbeatEvent(Node node) {
76  
77      }
78  
79      public void insertPurgeEvent(Node targetNode, Trigger trigger) {
80  
81      }
82  
83      public void insertReloadEvent(Node targetNode) {
84  
85      }
86  
87      public void insertReloadEvent(Node targetNode, Trigger trigger) {
88  
89      }
90  
91      public void insertSqlEvent(Node targetNode, Trigger trigger, String sql) {
92  
93      }
94  
95      public void insertSqlEvent(Node targetNode, String sql) {
96          
97      }
98      
99      public String reloadNode(String nodeId) {
100 
101         return null;
102     }
103 
104     public String reloadTable(String nodeId, String tableName) {
105 
106         return null;
107     }
108 
109     public void removeReloadListener(IReloadListener listener) {
110 
111     }
112 
113     public void setReloadListeners(List<IReloadListener> listeners) {
114 
115     }
116 
117     public void setRowDataFromMap(Data data, Map<String, String> map) {
118 
119     }
120 
121     public String[] tokenizeCsvData(String csvData) {
122 
123         return null;
124     }
125 
126     public String reloadTable(String nodeId, String tableName, String overrideInitialLoadSelect) {
127         return null;
128     }
129 
130     public String sendSQL(String nodeId, String tableName, String sql) {
131         return null;
132     }
133     
134     public void insertResendConfigEvent(Node targetNode) {
135     }
136 
137 }