public class SqlDataRecordUpdateSink extends DataRecordSink
Copyright 2009 Partner Software, Inc.
| Constructor and Description |
|---|
SqlDataRecordUpdateSink(SqlConnection connection,
java.lang.String tableName,
java.lang.String keyFieldName,
boolean closeWhenDone,
java.util.List<java.lang.String> fieldNames)
Creates a new SqlDataRecordUpdateSink.
|
SqlDataRecordUpdateSink(SqlConnection connection,
java.lang.String tableName,
java.lang.String keyFieldName,
boolean closeWhenDone,
java.lang.String... fieldNames)
Creates a new SqlDataRecordUpdateSink.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeImp() |
protected void |
openImp() |
protected void |
writeImp(java.util.List<java.lang.Object> payload) |
protected void |
writeImp(Naming<java.lang.Object> payload) |
protected void |
writeImp(java.lang.Object... payload) |
close, getException, getFieldNames, open, write, write, writepublic SqlDataRecordUpdateSink(SqlConnection connection, java.lang.String tableName, java.lang.String keyFieldName, boolean closeWhenDone, java.util.List<java.lang.String> fieldNames)
Note, the fieldNames list must end with the keyFieldName as this is set last in the prepared statement.
connection - - SqlConnection to the database to update.tableName - - Table name in database to update.keyFieldName - - Field name to use to find what to update.closeWhenDone - - If true, the SqlConnection will be closed when the update completes.fieldNames - - List of names to insert, must end with the key field name.public SqlDataRecordUpdateSink(SqlConnection connection, java.lang.String tableName, java.lang.String keyFieldName, boolean closeWhenDone, java.lang.String... fieldNames)
Note, the fieldNames array must end with the keyFieldName as this is set last in the prepared statement.
connection - - SqlConnection to the database to update.tableName - - Table name in database to update.keyFieldName - - Field name to use to find what to update.closeWhenDone - - If true, the SqlConnection will be closed when the update completes.fieldNames - - Array of names to insert, must end with the key field name.protected void closeImp()
throws java.lang.Exception
closeImp in class DataRecordSinkjava.lang.Exceptionprotected void openImp()
throws java.lang.Exception
openImp in class DataRecordSinkjava.lang.Exceptionprotected void writeImp(Naming<java.lang.Object> payload) throws java.lang.Exception
writeImp in class DataRecordSinkjava.lang.Exceptionprotected void writeImp(java.lang.Object... payload)
throws java.lang.Exception
writeImp in class DataRecordSinkjava.lang.Exceptionprotected void writeImp(java.util.List<java.lang.Object> payload)
throws java.lang.Exception
writeImp in class DataRecordSinkjava.lang.Exception