View Javadoc

1   /*
2    * SymmetricDS is an open source database synchronization solution.
3    *   
4    * Copyright (C) Andrew Wilcox <andrewbwilcox@users.sourceforge.net>
5    *               Chris Henson <chenson42@users.sourceforge.net>
6    *               Eric Long <erilong@users.sourceforge.net>
7    *
8    * This library is free software; you can redistribute it and/or
9    * modify it under the terms of the GNU Lesser General Public
10   * License as published by the Free Software Foundation; either
11   * version 3 of the License, or (at your option) any later version.
12   *
13   * This library is distributed in the hope that it will be useful,
14   * but WITHOUT ANY WARRANTY; without even the implied warranty of
15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16   * Lesser General Public License for more details.
17   *
18   * You should have received a copy of the GNU Lesser General Public
19   * License along with this library; if not, see
20   * <http://www.gnu.org/licenses/>.
21   */
22  
23  package org.jumpmind.symmetric.extract.csv;
24  
25  import java.io.BufferedWriter;
26  import java.io.IOException;
27  
28  import org.jumpmind.symmetric.extract.DataExtractorContext;
29  import org.jumpmind.symmetric.model.Data;
30  
31  class StreamSQLDataCommand extends AbstractStreamDataCommand {
32  
33      public void execute(BufferedWriter writer, Data data, DataExtractorContext context) throws IOException {
34          Util.writeSql(data.getRowData(), writer);
35      }
36      
37  
38  }