public static class ColumnConfig.Builder extends Object implements Builder<ColumnConfig>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ColumnConfig |
build()
Builds the object after all configuration has been set.
|
ColumnConfig.Builder |
setClob(boolean clob)
If
"true" , indicates that the column is a character LOB (CLOB). |
ColumnConfig.Builder |
setConfiguration(Configuration configuration)
The configuration object.
|
ColumnConfig.Builder |
setEventTimestamp(boolean eventTimestamp)
If
"true" , indicates that this column is a date-time column in which the event timestamp should be
inserted. |
ColumnConfig.Builder |
setLiteral(String literal)
The literal value to insert into the column as-is without any quoting or escaping.
|
ColumnConfig.Builder |
setName(String name)
The name of the database column as it exists within the database table.
|
ColumnConfig.Builder |
setPattern(String pattern)
The
PatternLayout pattern to insert in this column. |
ColumnConfig.Builder |
setUnicode(boolean unicode)
If
"true" , indicates that the column is a Unicode String. |
public ColumnConfig.Builder setConfiguration(Configuration configuration)
public ColumnConfig.Builder setName(String name)
public ColumnConfig.Builder setPattern(String pattern)
PatternLayout
pattern to insert in this column. Mutually exclusive with
literal!=null
and eventTimestamp=true
public ColumnConfig.Builder setLiteral(String literal)
pattern!=null
and eventTimestamp=true
.public ColumnConfig.Builder setEventTimestamp(boolean eventTimestamp)
"true"
, indicates that this column is a date-time column in which the event timestamp should be
inserted. Mutually exclusive with pattern!=null
and literal!=null
.public ColumnConfig.Builder setUnicode(boolean unicode)
"true"
, indicates that the column is a Unicode String.public ColumnConfig.Builder setClob(boolean clob)
"true"
, indicates that the column is a character LOB (CLOB).public ColumnConfig build()
Builder
build
in interface Builder<ColumnConfig>
Copyright © 1999-2017. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.