@Description(value="Executes the received string object as an SQL statement.") @In(value=java.lang.String.class) public final class SqlStatementSink extends org.culturegraph.mf.framework.helpers.DefaultObjectReceiver<String>
Use SqlStatementPipe
if access to the result sets is required.
In many situations it can be preferable to use prepared statements instead of
raw SQL statements. Use SqlStreamSink
in such situations.
SqlStatementPipe
,
SqlStreamSink
Constructor and Description |
---|
SqlStatementSink(Connection connection) |
SqlStatementSink(String dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
closeStream() |
void |
process(String sql) |
public SqlStatementSink(String dataSource)
public SqlStatementSink(Connection connection)
public void process(String sql)
public void closeStream()
closeStream
in interface org.culturegraph.mf.framework.LifeCycle
closeStream
in class org.culturegraph.mf.framework.helpers.DefaultLifeCycle
Copyright © 2017. All rights reserved.