de.jaggl.sqlbuilder.queries.CreateTable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlbuilder-core Show documentation
Show all versions of sqlbuilder-core Show documentation
A Java-Library to build SQL-Statements
package de.jaggl.sqlbuilder.queries;
import de.jaggl.sqlbuilder.dialect.Dialect;
import de.jaggl.sqlbuilder.schema.Table;
import de.jaggl.sqlbuilder.utils.Indentation;
import lombok.Getter;
@Getter
public class CreateTable implements ExecutableQuery
{
private Table table;
CreateTable(CreateTable createTable)
{
table = createTable.table;
}
CreateTable(Table table)
{
this.table = table;
}
@Override
public String build(Dialect dialect, Indentation indentation)
{
return dialect.build(this, indentation);
}
public static CreateTable copy(CreateTable createTable)
{
return new CreateTable(createTable);
}
}