S - The type of the builder subclass.public static class TableDTO.Builder<S extends TableDTO.Builder>
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected AuditDTO | auditThe audit information for the table. | 
| protected ColumnDTO[] | columnsThe columns of the table. | 
| protected java.lang.String | commentThe comment associated with the table. | 
| protected DistributionDTO | distributionDTOThe distribution of the table. | 
| protected IndexDTO[] | indexesThe indexes of the table. | 
| protected java.lang.String | nameThe name of the table. | 
| protected Partitioning[] | PartitioningThe partitioning of the table. | 
| protected java.util.Map<java.lang.String,java.lang.String> | propertiesThe properties associated with the table. | 
| protected SortOrderDTO[] | sortOrderDTOsThe distribution of the table. | 
| Modifier and Type | Method and Description | 
|---|---|
| TableDTO | build()Builds a Table DTO based on the provided builder parameters. | 
| static TableDTO.Builder | builder()Creates a new instance of  TableDTO.Builder. | 
| S | withAudit(AuditDTO audit)Sets the audit information for the table. | 
| S | withColumns(ColumnDTO[] columns)Sets the columns of the table. | 
| S | withComment(java.lang.String comment)Sets the comment associated with the table. | 
| S | withDistribution(DistributionDTO distributionDTO)Sets the distribution of the table. | 
| S | withIndex(IndexDTO[] indexes)Sets the indexes of the table. | 
| S | withName(java.lang.String name)Sets the name of the table. | 
| S | withPartitioning(Partitioning[] Partitioning)Sets the partitioning of the table. | 
| S | withProperties(java.util.Map<java.lang.String,java.lang.String> properties)Sets the properties associated with the table. | 
| S | withSortOrders(SortOrderDTO[] sortOrderDTOs)Sets the sort orders of the table. | 
protected java.lang.String name
protected java.lang.String comment
protected ColumnDTO[] columns
protected java.util.Map<java.lang.String,java.lang.String> properties
protected AuditDTO audit
protected SortOrderDTO[] sortOrderDTOs
protected DistributionDTO distributionDTO
protected Partitioning[] Partitioning
protected IndexDTO[] indexes
public S withName(java.lang.String name)
name - The name of the table.public S withComment(java.lang.String comment)
comment - The comment associated with the table.public S withColumns(ColumnDTO[] columns)
columns - The columns of the table.public S withProperties(java.util.Map<java.lang.String,java.lang.String> properties)
properties - The properties associated with the table.public S withAudit(AuditDTO audit)
audit - The audit information for the table.public S withDistribution(DistributionDTO distributionDTO)
distributionDTO - The distribution of the table.public S withSortOrders(SortOrderDTO[] sortOrderDTOs)
sortOrderDTOs - The sort orders of the table.public S withPartitioning(Partitioning[] Partitioning)
Partitioning - The partitioning of the table.public S withIndex(IndexDTO[] indexes)
indexes - The indexes of the table.public TableDTO build()
java.lang.IllegalArgumentException - If required fields name, columns and audit are not set.public static TableDTO.Builder builder()
TableDTO.Builder.