public static class ColumnMetadata.Builder extends Object
ColumnMetadata| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ColumnMetadata.Builder |
adapterNotes(String adapterNotes)
Set the adapter notes
|
ColumnMetadata |
build()
Build a new instance of
ColumnMetadata |
ColumnMetadata.Builder |
comment(String comment)
Set the column comment
|
ColumnMetadata.Builder |
defaultValue(String defaultValue)
Set the default value for the column
|
ColumnMetadata.Builder |
identity(boolean identity)
Define whether the column support auto-incrementing
|
ColumnMetadata.Builder |
name(String name)
Set the column name
|
ColumnMetadata.Builder |
nullable(boolean nullable)
Define whether the column can be
NULL |
ColumnMetadata.Builder |
originalTypeName(String originalTypeName)
Set the original type name
|
ColumnMetadata.Builder |
type(DataType type)
Set the column's data type
|
public ColumnMetadata.Builder name(String name)
name - column namepublic ColumnMetadata.Builder adapterNotes(String adapterNotes)
adapterNotes - adapter notespublic ColumnMetadata.Builder type(DataType type)
type - data typepublic ColumnMetadata.Builder nullable(boolean nullable)
NULLnullable - true if the column is allowed to be NULLpublic ColumnMetadata.Builder identity(boolean identity)
identity - true if the column is an auto-incrementing IDpublic ColumnMetadata.Builder defaultValue(String defaultValue)
defaultValue - default value inserted when the value is not explicitly specified in the
INSERT commandpublic ColumnMetadata.Builder comment(String comment)
comment - description of the columnpublic ColumnMetadata.Builder originalTypeName(String originalTypeName)
originalTypeName - name of the type as used in the JDBC driver of the remote data sourcepublic ColumnMetadata build()
ColumnMetadataCopyright © 2019. All rights reserved.