Package com.basiscomponents.db.export
Class ColumnConfigurationBuilder
- java.lang.Object
-
- com.basiscomponents.db.export.ColumnConfigurationBuilder
-
public class ColumnConfigurationBuilder extends Object
Builder pattern implementation for class ColumnConfiguration
-
-
Constructor Summary
Constructors Constructor Description ColumnConfigurationBuilder()
Initializes ColumnConfigurationBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColumnConfiguration
build()
Builds the ColumnConfiguration objectColumnConfigurationBuilder
setFieldName(String fieldName)
Sets the field nameColumnConfigurationBuilder
setHeader(String header)
Sets headerColumnConfigurationBuilder
setWidth(int width)
Sets width
-
-
-
Method Detail
-
setHeader
public ColumnConfigurationBuilder setHeader(String header)
Sets header- Parameters:
header
- : Label String of the column- Returns:
- ColumnConfigurationBuilder object to allow chaining
-
setWidth
public ColumnConfigurationBuilder setWidth(int width)
Sets width- Parameters:
width
- : width of the column in unit: 1/256th of character width- Returns:
- ColumnConfigurationBuilder object to allow chaining
-
setFieldName
public ColumnConfigurationBuilder setFieldName(String fieldName)
Sets the field name- Parameters:
fieldName
- name of the field- Returns:
- ColumnConfigurationBuilder object to allow chaining
-
build
public ColumnConfiguration build() throws InvalidAttributeValueException
Builds the ColumnConfiguration object- Returns:
- ColumnConfiguration constructed
- Throws:
Exception
- when build() is called without setting a mandatory parameterInvalidAttributeValueException
-
-