Class ColumnConfig.Builder
java.lang.Object
org.apache.logging.log4j.core.appender.db.jdbc.ColumnConfig.Builder
- All Implemented Interfaces:
Builder<ColumnConfig>
- Enclosing class:
- ColumnConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the object after all configuration has been set.setClob
(boolean clob) If"true"
, indicates that the column is a character LOB (CLOB).setConfiguration
(Configuration configuration) The configuration object.setEventTimestamp
(boolean eventTimestamp) If"true"
, indicates that this column is a date-time column in which the event timestamp should be inserted.setLiteral
(String literal) The literal value to insert into the column as-is without any quoting or escaping.The name of the database column as it exists within the database table.setPattern
(String pattern) ThePatternLayout
pattern to insert in this column.setUnicode
(boolean unicode) If"true"
, indicates that the column is a Unicode String.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<ColumnConfig>
- Returns:
- the configured instance.
-
setClob
If"true"
, indicates that the column is a character LOB (CLOB).- Returns:
- this.
-
setConfiguration
The configuration object.- Returns:
- this.
-
setEventTimestamp
If"true"
, indicates that this column is a date-time column in which the event timestamp should be inserted. Mutually exclusive withpattern!=null
andliteral!=null
.- Returns:
- this.
-
setLiteral
The literal value to insert into the column as-is without any quoting or escaping. Mutually exclusive withpattern!=null
andeventTimestamp=true
.- Returns:
- this.
-
setName
The name of the database column as it exists within the database table.- Returns:
- this.
-
setPattern
ThePatternLayout
pattern to insert in this column. Mutually exclusive withliteral!=null
andeventTimestamp=true
- Returns:
- this.
-
setUnicode
If"true"
, indicates that the column is a Unicode String.- Returns:
- this.
-