|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.io.DataRecordSink
com.partnersoft.sql.SqlDataRecordInsertSink
public class SqlDataRecordInsertSink
DataRecordSink for inserting records into a Sql database.
Copyright 2009 Partner Software, Inc.
| Constructor Summary | |
|---|---|
SqlDataRecordInsertSink(SqlConnection connection,
java.lang.String tableName,
boolean closeWhenDone,
java.util.List<java.lang.String> fieldNames)
Creates a new SqlDataRecordInsertSink for inserting records to a given database. |
|
SqlDataRecordInsertSink(SqlConnection connection,
java.lang.String tableName,
boolean closeWhenDone,
java.lang.String... fieldNames)
Creates a new SqlDataRecordInsertSink for inserting records to a given database. |
|
| Method Summary | |
|---|---|
void |
closeImp()
|
void |
openImp()
|
void |
writeImp(java.util.List<java.lang.Object> payload)
|
void |
writeImp(Naming<java.lang.Object> payload)
|
void |
writeImp(java.lang.Object... payload)
|
| Methods inherited from class com.partnersoft.io.DataRecordSink |
|---|
close, getException, getFieldNames, open, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SqlDataRecordInsertSink(SqlConnection connection,
java.lang.String tableName,
boolean closeWhenDone,
java.util.List<java.lang.String> fieldNames)
connection - - SqlConnection for the database to insert to.fieldNames - - String list of field names to insert, in order.tableName - - Name of table to insert to.closeWhenDone - - if true, connection will be closed when close() is called.
public SqlDataRecordInsertSink(SqlConnection connection,
java.lang.String tableName,
boolean closeWhenDone,
java.lang.String... fieldNames)
connection - - SqlConnection for the database to insert to.tableName - - Name of table to insert to.closeWhenDone - - if true, connection will be closed when close() is called.fieldNames - - String array of field names to insert, in order.| Method Detail |
|---|
public void closeImp()
throws java.lang.Exception
closeImp in class DataRecordSinkjava.lang.Exception
public void openImp()
throws java.lang.Exception
openImp in class DataRecordSinkjava.lang.Exception
public void writeImp(Naming<java.lang.Object> payload)
throws java.lang.Exception
writeImp in class DataRecordSinkjava.lang.Exception
public void writeImp(java.lang.Object... payload)
throws java.lang.Exception
writeImp in class DataRecordSinkjava.lang.Exception
public void writeImp(java.util.List<java.lang.Object> payload)
throws java.lang.Exception
writeImp in class DataRecordSinkjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||