@Description(value="Executes the received string object as an SQL statement.") @In(value=java.lang.String.class) @Out(value=org.culturegraph.mf.framework.StreamReceiver.class) public final class SqlStatementPipe extends org.culturegraph.mf.framework.helpers.DefaultObjectPipe<String,org.culturegraph.mf.framework.StreamReceiver>
Use SqlStatementPipe
for SQL statements which do not produce any
result sets.
In many situations it can be preferable to use prepared statements instead of
hand-crafted SQL. Use SqlStreamPipe
in such situations.
SqlStatementSink
,
SqlStreamPipe
Constructor and Description |
---|
SqlStatementPipe(Connection connection) |
SqlStatementPipe(String dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
process(String sql) |
void |
setIdColumnLabel(String idColumnLabel) |
closeStream, isClosed, resetStream, setReceiver
public SqlStatementPipe(String dataSource)
public SqlStatementPipe(Connection connection)
public void setIdColumnLabel(String idColumnLabel)
Copyright © 2017. All rights reserved.