Package guru.mikelue.jdut.datagrain
Class SchemaColumn.Builder
- java.lang.Object
-
- guru.mikelue.jdut.datagrain.SchemaColumn.Builder
-
- Enclosing class:
- SchemaColumn
public class SchemaColumn.Builder extends Object
This object is used withConsumer
bySchemaColumn.build(java.util.function.Consumer<guru.mikelue.jdut.datagrain.SchemaColumn.Builder>)
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaColumn.Builder
autoIncremental(Boolean newAutoIncremental)
Sets whether or not this columns is auto-incremental.SchemaColumn.Builder
defaultValue(String newDefaultValue)
Sets the default value of column.SchemaColumn.Builder
jdbcType(JDBCType newJdbcType)
Sets the sql type of column.SchemaColumn.Builder
name(String newName)
Sets the name of column.SchemaColumn.Builder
nullable(boolean newNullable)
Sets whether or not this column is nullable
-
-
-
Method Detail
-
name
public SchemaColumn.Builder name(String newName)
Sets the name of column.- Parameters:
newName
- The name of table- Returns:
- cascading self
-
jdbcType
public SchemaColumn.Builder jdbcType(JDBCType newJdbcType)
Sets the sql type of column.
-
nullable
public SchemaColumn.Builder nullable(boolean newNullable)
Sets whether or not this column is nullable- Parameters:
newNullable
- The value of nullable- Returns:
- cascading self
-
autoIncremental
public SchemaColumn.Builder autoIncremental(Boolean newAutoIncremental)
Sets whether or not this columns is auto-incremental.- Parameters:
newAutoIncremental
- The value of auto-incremental- Returns:
- cascading self
-
defaultValue
public SchemaColumn.Builder defaultValue(String newDefaultValue)
Sets the default value of column.- Parameters:
newDefaultValue
- the flag of having default value- Returns:
- cascading self
-
-