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) ThePatternLayoutpattern 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, waitMethods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:BuilderBuilds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
buildin 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!=nullandliteral!=null.- Returns:
- this.
-
setLiteral
The literal value to insert into the column as-is without any quoting or escaping. Mutually exclusive withpattern!=nullandeventTimestamp=true.- Returns:
- this.
-
setName
The name of the database column as it exists within the database table.- Returns:
- this.
-
setPattern
ThePatternLayoutpattern to insert in this column. Mutually exclusive withliteral!=nullandeventTimestamp=true- Returns:
- this.
-
setUnicode
If"true", indicates that the column is a Unicode String.- Returns:
- this.
-