Package com.exasol.adapter.metadata
Class ColumnMetadata.Builder
- java.lang.Object
-
- com.exasol.adapter.metadata.ColumnMetadata.Builder
-
- Enclosing class:
- ColumnMetadata
public static class ColumnMetadata.Builder extends Object
Builder forColumnMetadata
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnMetadata.BuilderadapterNotes(String adapterNotes)Set the adapter notesColumnMetadatabuild()Build a new instance ofColumnMetadataColumnMetadata.Buildercomment(String comment)Set the column commentColumnMetadata.BuilderdefaultValue(String defaultValue)Set the default value for the columnColumnMetadata.Builderidentity(boolean identity)Define whether the column support auto-incrementingColumnMetadata.Buildername(String name)Set the column nameColumnMetadata.Buildernullable(boolean nullable)Define whether the column can beNULLColumnMetadata.BuilderoriginalTypeName(String originalTypeName)Set the original type nameColumnMetadata.Buildertype(DataType type)Set the column's data type
-
-
-
Method Detail
-
name
public ColumnMetadata.Builder name(String name)
Set the column name- Parameters:
name- column name- Returns:
- builder instance for fluent programming
-
adapterNotes
public ColumnMetadata.Builder adapterNotes(String adapterNotes)
Set the adapter notes- Parameters:
adapterNotes- adapter notes- Returns:
- builder instance for fluent programming
-
type
public ColumnMetadata.Builder type(DataType type)
Set the column's data type- Parameters:
type- data type- Returns:
- builder instance for fluent programming
-
nullable
public ColumnMetadata.Builder nullable(boolean nullable)
Define whether the column can beNULL- Parameters:
nullable-trueif the column is allowed to beNULL- Returns:
- builder instance for fluent programming
-
identity
public ColumnMetadata.Builder identity(boolean identity)
Define whether the column support auto-incrementing- Parameters:
identity-trueif the column is an auto-incrementing ID- Returns:
- builder instance for fluent programming
-
defaultValue
public ColumnMetadata.Builder defaultValue(String defaultValue)
Set the default value for the column- Parameters:
defaultValue- default value inserted when the value is not explicitly specified in theINSERTcommand- Returns:
- builder instance for fluent programming
-
comment
public ColumnMetadata.Builder comment(String comment)
Set the column comment- Parameters:
comment- description of the column- Returns:
- builder instance for fluent programming
-
originalTypeName
public ColumnMetadata.Builder originalTypeName(String originalTypeName)
Set the original type name- Parameters:
originalTypeName- name of the type as used in the JDBC driver of the remote data source- Returns:
- builder instance for fluent programming
-
build
public ColumnMetadata build()
Build a new instance ofColumnMetadata- Returns:
- new instance
-
-