| Constructor and Description |
|---|
Builder(String name,
Method getMethod,
Integer length)
Constructs this String type CColumn from the supplied name, getMethod
and length.
|
Builder(String name,
Method getMethod,
Integer scale,
Integer precision)
Constructs this numeric type CColumn from the supplied name,
getMethod, scale and precision.
|
| Modifier and Type | Method and Description |
|---|---|
CColumn |
build()
Creates a new CColumn from this Builder.
|
CColumn.Builder |
nullable(boolean nullable)
Sets the CColumn to be nullable or not.
|
CColumn.Builder |
unique(boolean unique)
Sets the CColumn to be unique or not.
|
public Builder(String name, Method getMethod, Integer length)
name - The name of this CColumn.getMethod - The getter that will get this CColumn's value.length - The length of this CColumn.IllegalArgumentException - When the supplied name is empty or
when the supplied length is smaller than 1.NullPointerException - When either the supplied name or
getMethod is null.public Builder(String name, Method getMethod, Integer scale, Integer precision)
name - The name of this CColumn.getMethod - The getter that will get this CColumn's value.scale - The scale of this CColumn.precision - The precision of this CColumn.IllegalArgumentException - When the supplied name is empty.NullPointerException - When either the supplied name or
getMethod is null.public CColumn.Builder nullable(boolean nullable)
nullable - True when nullable, otherwise false.public CColumn.Builder unique(boolean unique)
unique - True when unique, otherwise false.Copyright © 2008–2017. All rights reserved.