Sha256: 16e8c5d1900a7380926c8ac9f33265fe04425121fb1b81d4c54154c9e8a2db7d

Contents?: true

Size: 1.74 KB

Versions: 3

Compression:

Stored size: 1.74 KB

Contents

package org.embulk.output.jdbc;

import java.math.BigDecimal;
import java.util.Calendar;
import java.io.IOException;
import java.sql.SQLException;
import org.embulk.spi.time.Timestamp;

public interface BatchInsert
{
    public void prepare(TableIdentifier loadTable, JdbcSchema insertSchema) throws SQLException;

    public int getBatchWeight();

    public void add() throws IOException, SQLException;

    public void close() throws IOException, SQLException;

    public void flush() throws IOException, SQLException;

    // should be implemented for retry
    public int[] getLastUpdateCounts();

    public void finish() throws IOException, SQLException;

    public void setNull(int sqlType) throws IOException, SQLException;

    public void setBoolean(boolean v) throws IOException, SQLException;

    public void setByte(byte v) throws IOException, SQLException;

    public void setShort(short v) throws IOException, SQLException;

    public void setInt(int v) throws IOException, SQLException;

    public void setLong(long v) throws IOException, SQLException;

    public void setFloat(float v) throws IOException, SQLException;

    public void setDouble(double v) throws IOException, SQLException;

    public void setBigDecimal(BigDecimal v) throws IOException, SQLException;

    public void setString(String v) throws IOException, SQLException;

    public void setNString(String v) throws IOException, SQLException;

    public void setBytes(byte[] v) throws IOException, SQLException;

    public void setSqlDate(Timestamp v, Calendar cal) throws IOException, SQLException;

    public void setSqlTime(Timestamp v, Calendar cal) throws IOException, SQLException;

    public void setSqlTimestamp(Timestamp v, Calendar cal) throws IOException, SQLException;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
embulk-output-jdbc-0.8.7 src/main/java/org/embulk/output/jdbc/BatchInsert.java
embulk-output-jdbc-0.8.5 src/main/java/org/embulk/output/jdbc/BatchInsert.java
embulk-output-jdbc-0.8.4 src/main/java/org/embulk/output/jdbc/BatchInsert.java