de.jaggl.sqlbuilder.columns.number.NumberColumnBuilder 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.columns.number;
import de.jaggl.sqlbuilder.columns.ColumnBuilder;
import de.jaggl.sqlbuilder.schema.Table;
/**
* @author Martin Schumacher
*
* @since 2.0.0
*/
public abstract class NumberColumnBuilder, N extends Number, C extends NumberColumn> extends ColumnBuilder
{
protected boolean isUnsigned;
public NumberColumnBuilder(Table table, String name)
{
super(table, name);
}
@SuppressWarnings("unchecked")
public T unsigned(boolean unsigned)
{
isUnsigned = unsigned;
return (T) this;
}
public T unsigned()
{
return unsigned(true);
}
}