Sha256: 45a45ebbe4c88f37c16b5293d435378ef12618161476a4b6bedc6158425d346a

Contents?: true

Size: 736 Bytes

Versions: 1

Compression:

Stored size: 736 Bytes

Contents

package org.embulk.output.oracle.oci;

import java.util.List;

public class TableDefinition
{
    private final String tableName;
    private final ColumnDefinition[] columns;


    public TableDefinition(String tableName, ColumnDefinition... columns)
    {
        this.tableName = tableName;
        this.columns = columns;
    }

    public TableDefinition(String tableName, List<ColumnDefinition> columns)
    {
        this(tableName, columns.toArray(new ColumnDefinition[columns.size()]));
    }

    public String getTableName()
    {
    	return tableName;
    }

    public int getColumnCount()
    {
    	return columns.length;
    }

    public ColumnDefinition getColumn(int index)
    {
    	return columns[index];
    }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
embulk-output-oracle-0.5.0 src/main/java/org/embulk/output/oracle/oci/TableDefinition.java