Sha256: 745c9366927f2cddb582e4d8dc6c46586690928f3cd9d284fc252bf646ca245f

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

Contents

package org.embulk.input.jdbc;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class JdbcColumn
{
    private String name;
    private String typeName;
    private int sqlType;
    private int precision;
    private int scale;

    @JsonCreator
    public JdbcColumn(
            @JsonProperty("name") String name,
            @JsonProperty("typeName") String typeName,
            @JsonProperty("sqlType") int sqlType,
            @JsonProperty("precision") int precision,
            @JsonProperty("scale") int scale)
    {
        this.name = name;
        this.typeName = typeName;
        this.sqlType = sqlType;
        this.precision = precision;
        this.scale = scale;
    }

    @JsonProperty("name")
    public String getName()
    {
        return name;
    }

    @JsonProperty("typeName")
    public String getTypeName()
    {
        return typeName;
    }

    @JsonProperty("sqlType")
    public int getSqlType()
    {
        return sqlType;
    }


    @JsonProperty("precision")
    public int getPrecision()
    {
        return precision;
    }

    @JsonProperty("scale")
    public int getScale()
    {
        return scale;
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
embulk-input-jdbc-0.7.2 src/main/java/org/embulk/input/jdbc/JdbcColumn.java
embulk-input-jdbc-0.7.1 src/main/java/org/embulk/input/jdbc/JdbcColumn.java
embulk-input-jdbc-0.7.0 src/main/java/org/embulk/input/jdbc/JdbcColumn.java
embulk-input-jdbc-0.6.4 src/main/java/org/embulk/input/jdbc/JdbcColumn.java
embulk-input-jdbc-0.6.3 src/main/java/org/embulk/input/jdbc/JdbcColumn.java
embulk-input-jdbc-0.6.2 src/main/java/org/embulk/input/jdbc/JdbcColumn.java
embulk-input-jdbc-0.6.1 src/main/java/org/embulk/input/jdbc/JdbcColumn.java