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.Builder
adapterNotes(String adapterNotes)
Set the adapter notesColumnMetadata
build()
Build a new instance ofColumnMetadata
ColumnMetadata.Builder
comment(String comment)
Set the column commentColumnMetadata.Builder
defaultValue(String defaultValue)
Set the default value for the columnColumnMetadata.Builder
identity(boolean identity)
Define whether the column support auto-incrementingColumnMetadata.Builder
name(String name)
Set the column nameColumnMetadata.Builder
nullable(boolean nullable)
Define whether the column can beNULL
ColumnMetadata.Builder
originalTypeName(String originalTypeName)
Set the original type nameColumnMetadata.Builder
type(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
-true
if 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
-true
if 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 theINSERT
command- 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
-
-