java.lang.Object
com.github.tadukoo.database.mysql.syntax.ColumnDefinition.Builder
-
Field Summary
Fields
protected boolean
Whether to auto-increment the column or not
The name to use for the column
The number of digits after the decimal
The precision for fractional seconds
protected boolean
Whether this column allows null (false) or not (true)
protected boolean
Whether this column is the primary key or not
The length of the column or total number of digits
protected boolean
Whether this column is unsigned (true) or signed (false)
The possible values for the column
-
Constructor Summary
Constructors
-
Method Summary
void
Checks for any errors in the set parameters and throws an error if any are found
Sets this column to not allow null values
Sets this column as the primary key
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
columnName
protected final String columnName
The name to use for the column
-
-
size
protected final Long size
The length of the column or total number of digits
-
values
The possible values for the column
-
digits
The number of digits after the decimal
-
fractionalSecondsPrecision
protected final Integer fractionalSecondsPrecision
The precision for fractional seconds
-
notNull
protected boolean notNull
Whether this column allows null (false) or not (true)
-
unsigned
protected boolean unsigned
Whether this column is unsigned (true) or signed (false)
-
autoIncrement
protected boolean autoIncrement
Whether to auto-increment the column or not
-
primaryKey
protected boolean primaryKey
Whether this column is the primary key or not
-
-
Method Details
-
-
-
checkForErrors
public void checkForErrors()
Checks for any errors in the set parameters and throws an error if any are found
-