org.knime.base.node.io.database
Class DBWriterConnection
java.lang.Object
org.knime.base.node.io.database.DBWriterConnection
final class DBWriterConnection
- extends Object
Creates a connection to write to database.
- Author:
- Thomas Gabriel, University of Konstanz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
writeData
static final String writeData(DatabaseConnectionSettings dbConn,
String table,
BufferedDataTable data,
boolean appendData,
ExecutionMonitor exec,
Map<String,String> sqlTypes)
throws Exception
- Create connection to write into database.
- Parameters:
dbConn
- a database connection objectdata
- The data to write.table
- name of table to writeappendData
- if checked the data is appended to an existing tableexec
- Used the cancel writing.sqlTypes
- A mapping from column name to SQL-type.
- Returns:
- error string or null, if non
- Throws:
Exception
- if connection could not be established
Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display,
or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the
copyright owner or as specified in the license file distributed with this product.