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

de.jaggl.sqlbuilder.columns.ColumnBuilder Maven / Gradle / Ivy

There is a newer version: 2.7.2
Show newest version
package de.jaggl.sqlbuilder.columns;

import static de.jaggl.sqlbuilder.schema.TableBuilderUtil.addColumnToTable;

import de.jaggl.sqlbuilder.schema.Table;
import lombok.AllArgsConstructor;

/**
 * @author Martin Schumacher
 *
 * @since 2.0.0
 */
@AllArgsConstructor
public abstract class ColumnBuilder
{
    protected final Table table;
    protected final String name;

    protected abstract T getColumnInstance();

    public T build()
    {
        T columnInstance = getColumnInstance();
        addColumnToTable(columnInstance, table);
        return columnInstance;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy