Package de.bytefish.pgbulkinsert.row
Class SimpleRowWriter
- java.lang.Object
-
- de.bytefish.pgbulkinsert.row.SimpleRowWriter
-
- All Implemented Interfaces:
AutoCloseable
public class SimpleRowWriter extends Object implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleRowWriter.Table
-
Constructor Summary
Constructors Constructor Description SimpleRowWriter(SimpleRowWriter.Table table, org.postgresql.PGConnection connection)SimpleRowWriter(SimpleRowWriter.Table table, org.postgresql.PGConnection connection, boolean usePostgresQuoting)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidenableNullCharacterHandler()voidsetNullCharacterHandler(Function<String,String> nullCharacterHandler)voidstartRow(Consumer<SimpleRow> consumer)
-
-
-
Constructor Detail
-
SimpleRowWriter
public SimpleRowWriter(SimpleRowWriter.Table table, org.postgresql.PGConnection connection) throws SQLException
- Throws:
SQLException
-
SimpleRowWriter
public SimpleRowWriter(SimpleRowWriter.Table table, org.postgresql.PGConnection connection, boolean usePostgresQuoting) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
enableNullCharacterHandler
public void enableNullCharacterHandler()
-
-