All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.bytefish.pgbulkinsert.model.ColumnDefinition Maven / Gradle / Ivy

There is a newer version: 7.0.1
Show newest version
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

package de.bytefish.pgbulkinsert.model;

import java.util.function.BiConsumer;

import de.bytefish.pgbulkinsert.pgsql.PgBinaryWriter;

public class ColumnDefinition
{
    private final String columnName;

    private final BiConsumer write;

    public ColumnDefinition(String columnName, BiConsumer write) {
        this.columnName = columnName;
        this.write = write;
    }

    public String getColumnName() {
        return columnName;
    }

    public BiConsumer getWrite() {
        return write;
    }

    @Override
    public String toString()
    {
        return String.format("ColumnDefinition (ColumnName = {%1$s}, Serialize = {%2$s})", columnName, write);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy