Package com.atlan.model.contracts
Class DataContractSpec.DCColumn.DCColumnBuilder<C extends DataContractSpec.DCColumn,B extends DataContractSpec.DCColumn.DCColumnBuilder<C,B>>
java.lang.Object
com.atlan.model.contracts.DataContractSpec.DCColumn.DCColumnBuilder<C,B>
- Enclosing class:
- DataContractSpec.DCColumn
public abstract static class DataContractSpec.DCColumn.DCColumnBuilder<C extends DataContractSpec.DCColumn,B extends DataContractSpec.DCColumn.DCColumnBuilder<C,B>>
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected B
$fillValuesFrom
(C instance) abstract C
build()
Physical data type of values in this column (e.g.description
(String description) Description of this column, for documentation purposes.displayName
(String displayName) Alias for the column, to make its name more readable.invalidFormat
(String invalidFormat) Format of data to consider invalid.invalidRegex
(String invalidRegex) Regular expression to match invalid values.invalidValue
(String invalidValue) invalidValues
(Collection<? extends String> invalidValues) When true, this column is the primary key for the table.logicalType
(String logicalType) Logical data type of values in this column (e.g.missingRegex
(String missingRegex) Regular expression to match missing values.missingValue
(String missingValue) missingValues
(Collection<? extends String> missingValues) Name of the column as it is defined in the source system (often technical).When true, this column cannot be empty (without values).protected abstract B
self()
toString()
When true, this column must have unique values.validFormat
(String validFormat) Format of data to consider valid.validLength
(Long validLength) Fixed length for a string to be considered valid.Maximum numeric value considered valid.validMaxLength
(Long validMaxLength) Maximum length for a string to be considered valid.Minimum numeric value considered valid.validMinLength
(Long validMinLength) Minimum length for a string to be considered valid.validRegex
(String validRegex) Regular expression to match valid values.validValue
(String validValue) validValues
(Collection<? extends String> validValues)
-
Constructor Details
-
DCColumnBuilder
public DCColumnBuilder()
-
-
Method Details
-
$fillValuesFrom
-
name
Name of the column as it is defined in the source system (often technical).- Returns:
this
.
-
displayName
Alias for the column, to make its name more readable.- Returns:
this
.
-
description
Description of this column, for documentation purposes.- Returns:
this
.
-
isPrimary
When true, this column is the primary key for the table.- Returns:
this
.
-
dataType
Physical data type of values in this column (e.g.varchar(20)
).- Returns:
this
.
-
logicalType
Logical data type of values in this column (e.g.string
).- Returns:
this
.
-
invalidFormat
Format of data to consider invalid.- Returns:
this
.
-
validFormat
Format of data to consider valid.- Returns:
this
.
-
invalidRegex
Regular expression to match invalid values.- Returns:
this
.
-
validRegex
Regular expression to match valid values.- Returns:
this
.
-
missingRegex
Regular expression to match missing values.- Returns:
this
.
-
invalidValue
-
invalidValues
-
clearInvalidValues
-
validValue
-
validValues
-
clearValidValues
-
missingValue
-
missingValues
-
clearMissingValues
-
notNull
When true, this column cannot be empty (without values).- Returns:
this
.
-
validLength
Fixed length for a string to be considered valid.- Returns:
this
.
-
validMaxLength
Maximum length for a string to be considered valid.- Returns:
this
.
-
validMin
Minimum numeric value considered valid.- Returns:
this
.
-
validMax
Maximum numeric value considered valid.- Returns:
this
.
-
validMinLength
Minimum length for a string to be considered valid.- Returns:
this
.
-
unique
When true, this column must have unique values.- Returns:
this
.
-
self
-
build
-
toString
-