JavaScript is disabled on your browser.
Method Summary
All Methods Static Methods Instance Methods Abstract Methods
Method Details
primaryKey
Returns a new
ColumnDefinition.Builder
instance, with the primary key index 0.
Note that this renders this column non-null and non-updatable by default, this can be
reverted by setting it as updatable and/or nullable after defining a primary key column.
...
.primaryKey()
.nullable(true)
.updatable(true)
Type Parameters:
B
- the builder type
Returns:
a new ColumnDefinition.Builder
with primary key index 0
See Also:
primaryKey
Returns a new
ColumnDefinition.Builder
instance, with the given primary key index.
Note that this renders this column non-null and non-updatable by default, this can be
reverted by setting it as updatable and/or nullable after defining a primary key column.
...
.primaryKey()
.nullable(true)
.updatable(true)
Type Parameters:
B
- the builder type
Parameters:
index
- the zero-based index of this column in the primary key
Returns:
a new ColumnDefinition.Builder
with the given primary key index
Throws:
IllegalArgumentException
- in case index is a negative number
See Also:
subquery
Type Parameters:
B
- the builder type
Parameters:
subquery
- the sql query
Returns:
a new ColumnDefinition.Builder
booleanColumn
Type Parameters:
C
- the column type
B
- the builder type
Parameters:
columnClass
- the underlying column data type class
trueValue
- the value representing 'true' in the underlying column
falseValue
- the value representing 'false' in the underlying column
Returns:
a new ColumnDefinition.Builder
Throws:
NullPointerException
- in case either the true or false value is null
IllegalStateException
- in case this column is not a boolean column
IllegalArgumentException
- in case the values representing true and false are equal
booleanConverter
Type Parameters:
C
- the actual column type
Parameters:
trueValue
- the true value
falseValue
- the false value
Returns:
a boolean value converter
Throws:
NullPointerException
- in case either the true or false value is null
IllegalArgumentException
- in case the values representing true and false are equal