Sha256: 102c6318e5b4ce72a6ccdfd8928b330d8ec97d2c1b1a5fd6a15a89d9b28d53fd

Contents?: true

Size: 1.22 KB

Versions: 6

Compression:

Stored size: 1.22 KB

Contents

package org.embulk.output.jdbc.setter;

import java.io.IOException;
import java.sql.SQLException;
import org.embulk.spi.time.Timestamp;
import org.embulk.output.jdbc.JdbcColumn;
import org.embulk.output.jdbc.BatchInsert;

public abstract class ColumnSetter
{
    protected final BatchInsert batch;
    protected final JdbcColumn column;
    protected final DefaultValueSetter defaultValue;

    public ColumnSetter(BatchInsert batch, JdbcColumn column,
            DefaultValueSetter defaultValue)
    {
        this.batch = batch;
        this.column = column;
        this.defaultValue = defaultValue;
    }

    public JdbcColumn getColumn()
    {
        return column;
    }

    public int getSqlType()
    {
        return column.getSqlType();
    }

    public abstract void nullValue() throws IOException, SQLException;

    public abstract void booleanValue(boolean v) throws IOException, SQLException;

    public abstract void longValue(long v) throws IOException, SQLException;

    public abstract void doubleValue(double v) throws IOException, SQLException;

    public abstract void stringValue(String v) throws IOException, SQLException;

    public abstract void timestampValue(Timestamp v) throws IOException, SQLException;
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
embulk-output-jdbc-0.5.1 src/main/java/org/embulk/output/jdbc/setter/ColumnSetter.java
embulk-output-jdbc-0.5.0 src/main/java/org/embulk/output/jdbc/setter/ColumnSetter.java
embulk-output-jdbc-0.4.5 src/main/java/org/embulk/output/jdbc/setter/ColumnSetter.java
embulk-output-jdbc-0.4.4 src/main/java/org/embulk/output/jdbc/setter/ColumnSetter.java
embulk-output-jdbc-0.4.3 src/main/java/org/embulk/output/jdbc/setter/ColumnSetter.java
embulk-output-jdbc-0.4.2 src/main/java/org/embulk/output/jdbc/setter/ColumnSetter.java